Documentation ¶
Index ¶
- type BundleDir
- type CharmDir
- func (dir *CharmDir) Actions() *charm.Actions
- func (dir *CharmDir) ArchiveTo(w io.Writer) error
- func (dir *CharmDir) ArchiveToPath(path string) error
- func (dir *CharmDir) Config() *charm.Config
- func (dir *CharmDir) LXDProfile() *charm.LXDProfile
- func (dir *CharmDir) Manifest() *charm.Manifest
- func (dir *CharmDir) Meta() *charm.Meta
- func (dir *CharmDir) Revision() int
- func (dir *CharmDir) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleDir ¶
type BundleDir struct { Path string // contains filtered or unexported fields }
BundleDir defines a bundle from a given directory.
func ReadBundleDir ¶
ReadBundleDir returns a BundleDir representing an expanded bundle directory. It does not verify the bundle data.
func (*BundleDir) BundleBytes ¶
BundleBytes implements Bundle.BundleBytes
func (*BundleDir) ContainsOverlays ¶
ContainsOverlays returns true if the bundle contains any overlays.
func (*BundleDir) Data ¶
func (dir *BundleDir) Data() *charm.BundleData
Data returns the contents of the bundle's bundle.yaml file.
type CharmDir ¶
type CharmDir struct { Path string // contains filtered or unexported fields }
CharmDir encapsulates access to data and operations on a charm directory.
func ReadCharmDir ¶
ReadCharmDir returns a CharmDir representing an expanded charm directory.
func (*CharmDir) Actions ¶
Actions returns the Actions representing the actions.yaml file for the charm expanded in dir.
func (*CharmDir) ArchiveTo ¶
ArchiveTo creates a charm file from the charm expanded in dir. By convention a charm archive should have a ".charm" suffix.
func (*CharmDir) ArchiveToPath ¶
func (*CharmDir) Config ¶
Config returns the Config representing the config.yaml file for the charm expanded in dir.
func (*CharmDir) LXDProfile ¶
func (dir *CharmDir) LXDProfile() *charm.LXDProfile
LXDProfile returns the LXDProfile representing the lxd-profile.yaml file for the charm expanded in dir.
func (*CharmDir) Manifest ¶
Manifest returns the Manifest representing the manifest.yaml file for the charm expanded in dir.
func (*CharmDir) Meta ¶
Meta returns the Meta representing the metadata.yaml file for the charm expanded in dir.