config

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL