Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildModelRepresentation ¶
func BuildModelRepresentation( status *params.FullStatus, modelExtractor ModelExtractor, useExistingMachines bool, bundleMachines map[string]string, ) (*bundlechanges.Model, error)
BuildModelRepresentation creates a buildchanges.Model, representing the existing deployment, to be used while deploying or diffing a bundle.
func ComposeAndVerifyBundle ¶
func ComposeAndVerifyBundle(base BundleDataSource, pathToOverlays []string) (*charm.BundleData, []error, error)
ComposeAndVerifyBundle merges base and overlays then verifies the combined bundle data. Returns a slice of errors encountered while processing the bundle. They are for informational purposes and do not require failing the bundle deployment.
Types ¶
type BundleDataSource ¶
type BundleDataSource interface { Parts() []*charm.BundleDataPart BasePath() string ResolveInclude(path string) ([]byte, error) }
BundleDataSource is implemented by types that can parse bundle data into a list of composable parts.
type ModelExtractor ¶
type ModelExtractor interface { GetAnnotations(tags []string) ([]params.AnnotationsGetResult, error) GetConstraints(applications ...string) ([]constraints.Value, error) GetConfig(branchName string, applications ...string) ([]map[string]interface{}, error) Sequences() (map[string]int, error) }
ModelExtractor provides everything we need to build a bundlechanges.Model from a model API connection.
Click to show internal directories.
Click to hide internal directories.