Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceModeReplicated = ServiceMode("replicated") ServiceModeGlobal = ServiceMode("global") )
Services modes available
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶ added in v1.8.0
type Cli struct { Version kong.VersionFlag LogLevel string `kong:"name='log-level',env='LOG_LEVEL',default='info',help='Set log level.'"` LogJSON bool `kong:"name='log-json',env='LOG_JSON',default='false',help='Enable JSON logging output.'"` }
Cli holds command line args, flags and cmds
type Job ¶
type Job struct { Name string Enable bool Schedule string SkipRunning bool RegistryAuth bool QueryRegistry *bool Replicas uint64 }
Job holds service job details
type ServiceEvent ¶ added in v1.4.0
type ServiceEvent struct { Service string `mapstructure:"name"` UpdateState struct { Old string `mapstructure:"updatestate.old"` New string `mapstructure:"updatestate.new"` } `mapstructure:",squash"` }
ServiceEvent represents attributes of a service event
type ServiceInfo ¶ added in v1.4.0
type ServiceInfo struct { Raw swarm.Service ID string Name string Image string Mode ServiceMode Labels map[string]string Actives uint64 Replicas uint64 Rollback bool UpdatedAt time.Time UpdateStatus string }
ServiceInfo represents attributes of a service
type ServiceListArgs ¶ added in v1.4.0
ServiceListArgs are options to list services
Click to show internal directories.
Click to hide internal directories.