Documentation ¶
Index ¶
- func ChangelogTypeStrings() []string
- type ChangelogType
- func (i ChangelogType) IsAChangelogType() bool
- func (i ChangelogType) MarshalJSON() ([]byte, error)
- func (i ChangelogType) MarshalYAML() (interface{}, error)
- func (i ChangelogType) String() string
- func (i *ChangelogType) UnmarshalJSON(data []byte) error
- func (i *ChangelogType) UnmarshalYAML(unmarshal func(interface{}) error) error
- type ImagesChangelog
- type Mapping
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangelogTypeStrings ¶
func ChangelogTypeStrings() []string
ChangelogTypeStrings returns a slice of all String values of the enum
Types ¶
type ChangelogType ¶
type ChangelogType int
const ( Plaintext ChangelogType = iota Markdown Asciidoc Html Github )
func ChangelogTypeString ¶
func ChangelogTypeString(s string) (ChangelogType, error)
ChangelogTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ChangelogTypeValues ¶
func ChangelogTypeValues() []ChangelogType
ChangelogTypeValues returns all values of the enum
func (ChangelogType) IsAChangelogType ¶
func (i ChangelogType) IsAChangelogType() bool
IsAChangelogType returns "true" if the value is listed in the enum definition. "false" otherwise
func (ChangelogType) MarshalJSON ¶
func (i ChangelogType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for ChangelogType
func (ChangelogType) MarshalYAML ¶
func (i ChangelogType) MarshalYAML() (interface{}, error)
MarshalYAML implements a YAML Marshaler for ChangelogType
func (ChangelogType) String ¶
func (i ChangelogType) String() string
func (*ChangelogType) UnmarshalJSON ¶
func (i *ChangelogType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for ChangelogType
func (*ChangelogType) UnmarshalYAML ¶
func (i *ChangelogType) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements a YAML Unmarshaler for ChangelogType
type ImagesChangelog ¶
type ImagesChangelog struct { Names []string `yaml:"names"` Url string `yaml:"url"` Type ChangelogType `yaml:"type"` }
func LoadMappings ¶
func LoadMappings(name string) ([]ImagesChangelog, error)
type Mapping ¶
type Mapping struct { Version int `yaml:"version"` Images []ImagesChangelog `yaml:"images"` }
type Settings ¶
type Settings struct { Debug bool Trace bool RemoveVolumes bool IncludeRestarting bool IncludeStopped bool ReviveStopped bool NoPull bool WarnOnHeadFailure string PollInterval int Schedule string EnableLabel bool Scope string StopTimeout time.Duration Cleanup bool }
func LoadConfig ¶
func LoadConfig() Settings
Click to show internal directories.
Click to hide internal directories.