github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/charmstore/charmid.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package charmstore
     5  
     6  import (
     7  	"gopkg.in/juju/charm.v6-unstable"
     8  	csparams "gopkg.in/juju/charmrepo.v2-unstable/csclient/params"
     9  )
    10  
    11  // CharmID is a type that encapsulates all the data required to interact with a
    12  // unique charm from the charmstore.
    13  type CharmID struct {
    14  	// URL is the url of the charm.
    15  	URL *charm.URL
    16  
    17  	// Channel is the channel in which the charm was published.
    18  	Channel csparams.Channel
    19  }