Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutputChanges ¶
func SplitLines ¶
Types ¶
type ChangeSet ¶
type ChangeSet struct { LastVersion string Changes []CommitData Component *config.ComponentConfig Forced bool }
func (*ChangeSet) HasChanges ¶
type CommitData ¶
type CommitData struct { Commit string Parents []string Author CommitAuthor Committer CommitAuthor Message string Tags []string }
type PartialConfig ¶
type PartialConfig struct { MachComposer config.MachComposer `yaml:"mach_composer"` Components []config.ComponentConfig `yaml:"components"` ComponentsNode *yaml.Node Sops yaml.Node `yaml:"sops"` // contains filtered or unexported fields }
func (*PartialConfig) GetComponent ¶
func (c *PartialConfig) GetComponent(name string) *config.ComponentConfig
type PartialRawConfig ¶
type PartialRawConfig struct { MachComposer config.MachComposer `yaml:"mach_composer"` Components yaml.Node `yaml:"components"` Sops yaml.Node `yaml:"sops"` }
type UpdateError ¶
type UpdateError struct {
// contains filtered or unexported fields
}
func (*UpdateError) Error ¶
func (e *UpdateError) Error() string
type UpdateSet ¶
type UpdateSet struct {
// contains filtered or unexported fields
}
func (*UpdateSet) ComponentChangeLog ¶
func (*UpdateSet) HasChanges ¶
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func NewUpdater ¶
func NewUpdater(ctx context.Context, filename string, useCloud bool, gitFallback bool) (*Updater, error)
NewUpdater creates an update to update the component versions in a config file.
func (*Updater) GetUpdateSet ¶
func (*Updater) UpdateAllComponents ¶
UpdateAllComponents updates all the components in the config file.
func (*Updater) UpdateComponent ¶
UpdateComponent updates a specific component. When the version is empty it will retrieve the last version for the given component.
Click to show internal directories.
Click to hide internal directories.