Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppMetadata ¶
type AppMetadata struct { Version string Name string Description string Namespace string Maintainers Maintainers Parents Parents }
AppMetadata is the format of the data found inside the metadata.yml file
func From ¶
func From(orig AppMetadata, modifiers ...Modifier) AppMetadata
From returns an AppMetadata instance based on the provided AppMetadata and applicable modifier functions
type Maintainer ¶
Maintainer represents one of the apps's maintainers
func (Maintainer) String ¶
func (m Maintainer) String() string
String gives a string representation of a maintainer
type Maintainers ¶
type Maintainers []Maintainer
Maintainers is a list of maintainers
func (Maintainers) String ¶
func (ms Maintainers) String() string
String gives a string representation of a list of maintainers
type Modifier ¶
type Modifier func(AppMetadata) AppMetadata
Modifier is a function signature that takes and returns an AppMetadata object
func WithMaintainers ¶
func WithMaintainers(maintainers Maintainers) Modifier
WithMaintainers returns a modified AppMetadata with updated maintainers field
func WithNamespace ¶
WithNamespace returns a modified AppMetadata with updated namespace field
type ParentMetadata ¶
type ParentMetadata struct { Name string Namespace string Version string Maintainers Maintainers }
ParentMetadata contains historical data of forked packages