Documentation
¶
Overview ¶
Package option provides options for a service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Interval string `yaml:"interval,omitempty" json:"interval,omitempty"` // AhBmCs = Sleep A hours, B minutes, and C seconds between queries. SemanticVersioning *bool `yaml:"semantic_versioning,omitempty" json:"semantic_versioning,omitempty"` // Default - true = Version has to follow semantic versioning (https://semver.org/), and be greater than the previous to trigger anything. }
Base is the base struct for Options.
func (*Base) CheckValues ¶
CheckValues validates the fields of the Base struct.
type Defaults ¶
type Defaults struct {
Base `yaml:",inline" json:",inline"`
}
Defaults are the default values for Options.
func NewDefaults ¶
NewDefaults returns a new Defaults.
type Options ¶
type Options struct { Base `yaml:",inline" json:",inline"` Active *bool `yaml:"active,omitempty" json:"active,omitempty"` // Disable the service. Defaults *Defaults `yaml:"-" json:"-"` // Defaults. HardDefaults *Defaults `yaml:"-" json:"-"` // Hard Defaults. }
Options are the options for a Service.
func New ¶
func New( active *bool, interval string, semanticVersioning *bool, defaults, hardDefaults *Defaults, ) *Options
New Options.
func (*Options) GetInterval ¶
GetInterval between queries for the latest/deployed version.
func (*Options) GetIntervalDuration ¶
GetIntervalDuration returns the interval between queries on latest/deployed version.
func (*Options) GetIntervalPointer ¶
GetIntervalPointer returns a pointer to the interval between queries on latest/deployed version.
func (*Options) GetSemanticVersioning ¶
GetSemanticVersioning returns whether the Service uses Semantic Versioning.
Click to show internal directories.
Click to hide internal directories.