model

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 3 Imported by: 0

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

type ServiceListArgs struct {
	Name   string
	Labels []string
}

ServiceListArgs are options to list services

type ServiceMode added in v1.4.0

type ServiceMode string

ServiceMode is a service mode

type TaskInfo added in v1.4.0

type TaskInfo struct {
	swarm.Task
	NodeName    string
	ServiceName string
	Image       string
}

TaskInfo represents attributes of a task

Jump to

Keyboard shortcuts

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