Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Defaults = Service{ Context: "default", Aliases: []string{}, Location: gh.Location{ Ref: "master", }, Interceptors: Interceptors{ PreStopSleep: PreStopSleepInterceptor{ Options: prestopsleep.Options{ Seconds: 3, }, }, GHStatusChecker: GHStatusCheckerInterceptor{ Options: statuschecker.DefaultOptions, }, }, } )
Functions ¶
This section is empty.
Types ¶
type GHStatusCheckerInterceptor ¶
type GHStatusCheckerInterceptor struct { Enabled TriState `yaml:"enabled"` Options statuschecker.Options `yaml:"options"` }
type Interceptor ¶
type Interceptor struct {
Enabled TriState `yaml:"enabled"`
}
type Interceptors ¶
type Interceptors struct { PreStopSleep PreStopSleepInterceptor `yaml:"preStopSleep"` RemoveResourceSpecs Interceptor `yaml:"removeResourceSpecs"` RemoveOldJob Interceptor `yaml:"removeOldJob"` Waiter Interceptor `yaml:"waiter"` Annotater Interceptor `yaml:"annotater"` GHStatusChecker GHStatusCheckerInterceptor `yaml:"ghStatusChecker"` }
type PreStopSleepInterceptor ¶
type PreStopSleepInterceptor struct { Enabled TriState `yaml:"enabled"` Options prestopsleep.Options `yaml:"options"` }
type Service ¶
type Service struct { Name string `yaml:"name,omitempty"` Aliases []string `yaml:"aliases,omitempty"` Context string `yaml:"context,omitempty"` Location gh.Location `yaml:",inline,omitempty"` Variables templates.Variables `yaml:"variables,omitempty"` Interceptors Interceptors `yaml:"interceptors,omitempty"` }
type Settings ¶
type Settings struct { Defaults Service `yaml:"defaults"` Services Services `yaml:"services"` Contexts Contexts `yaml:"contexts"` // contains filtered or unexported fields }
func ReadFromFile ¶
func (*Settings) CurrentContext ¶
Click to show internal directories.
Click to hide internal directories.