Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct { // Sequence is a list to order the dependencies Sequence []string `json:"sequence,omitempty" mapstructure:"sequence"` // Requires is a list of bundles required by this bundle Requires map[string]Dependency `json:"requires,omitempty" mapstructure:"requires"` }
Dependencies describes the set of custom extension metadata associated with the dependencies spec https://github.com/cnabio/cnab-spec/blob/master/500-CNAB-dependencies.md
func (Dependencies) ListBySequence ¶
func (d Dependencies) ListBySequence() []Dependency
ListBySequence returns the dependencies by the defined sequence, if none is specified, they are unsorted.
type Dependency ¶
type Dependency struct { // Name of the dependency // This is used internally but isn't persisted to bundle.json Name string `json:"-" mapstructure:"-"` // Bundle is the location of the bundle in a registry, for example REGISTRY/NAME:TAG Bundle string `json:"bundle" mapstructure:"bundle"` // Version is a set of allowed versions Version *DependencyVersion `json:"version,omitempty" mapstructure:"version"` }
Dependency describes a dependency on another bundle
type DependencyVersion ¶
type DependencyVersion struct { // Ranges of semantic versions, with or without the leading v prefix, allowed by the dependency Ranges []string `json:"ranges,omitempty" mapstructure:"ranges"` // AllowPrereleases specifies if prerelease versions can satisfy the dependency AllowPrereleases bool `json:"prereleases" mapstructure:"prereleases"` }
DependencyVersion is a set of allowed versions for a dependency
Click to show internal directories.
Click to hide internal directories.