Versions in this module Expand all Collapse all v0 v0.8.6 Feb 26, 2021 v0.8.3 Sep 11, 2018 Changes in this version type Chart + Metrics []ChartMetric + type ChartMetric struct + Legend string + Query string type ConfigCreateInfo + Base64 bool + Template Driver + type Driver struct + Name string + Options map[string]string type EventAction + const EventActionDeploy + const EventActionRestart + const EventActionShutdown type EventType + const EventTypeStack + type Stack struct + Content string + CreatedAt time.Time + CreatedBy string + Internal bool + Name string + Services []string + UpdatedAt time.Time + UpdatedBy string + type StackListArgs struct + Filter string + Name string v0.7.3 Apr 8, 2018 Changes in this version + const PageSize + const PermNone + const PermReadWrite + const PermWrite + type Archive struct + Content string + CreatedAt time.Time + CreatedBy string + ID string + Name string + UpdatedAt time.Time + UpdatedBy string + type ArchiveListArgs struct + Name string + PageIndex int + PageSize int + type AuthUser struct + func NewAuthUser(user *User, roles []*Role) *AuthUser + func (u *AuthUser) Admin() bool + func (u *AuthUser) Anonymous() bool + func (u *AuthUser) ID() string + func (u *AuthUser) IsAllowed(perm string) bool + func (u *AuthUser) IsInRole(roleID string) bool + func (u *AuthUser) Name() string + type Chart struct + Dashboard string + Description string + Height int32 + Kind string + Legend string + Name string + Options data.Map + Query string + Title string + Type string + Unit string + Width int32 + func NewChart(dashboard, name, title, legend, query, unit string) *Chart + type ChartDashboard struct + Charts []ChartOption + Key string + Name string + Period int32 + RefreshInterval int32 + func (cd *ChartDashboard) ID() string + type ChartLine struct + Data []ChartPoint + Name string + type ChartMatrixData struct + Legend []string + Series []ChartLine + type ChartOption struct + Height int32 + Name string + Width int32 + type ChartPoint struct + X int64 + Y float64 + func (p *ChartPoint) MarshalJSON() ([]byte, error) + type ChartValue struct + Name string + Value float64 + type ChartVectorData struct + Data []ChartValue + Legend []string + type ConfigCreateInfo struct + Data string + Labels Options + Name string + type ConfigInfo struct + FileName string + GID string + ID string + Mode uint32 + Name string + UID string + func NewConfigInfo(ref *swarm.ConfigReference) ConfigInfo + func NewSecretInfo(ref *swarm.SecretReference) ConfigInfo + func (ci ConfigInfo) ToConfig() *swarm.ConfigReference + func (ci ConfigInfo) ToSecret() *swarm.SecretReference + type ConfigUpdateInfo struct + ID string + Version uint64 + type ContainerListArgs struct + Filter string + Name string + PageIndex int + PageSize int + type ContainerListInfo struct + CreatedAt time.Time + func NewContainerListInfo(container types.Container) *ContainerListInfo + type EndpointPort struct + Name string + Protocol swarm.PortConfigProtocol + PublishMode swarm.PortConfigPublishMode + PublishedPort uint32 + TargetPort uint32 + type Event struct + Action EventAction + Code string + ID string + Name string + Time time.Time + Type EventType + UserID string + Username string + func (e *Event) URL(et EventType, code string) string + type EventAction string + const EventActionCreate + const EventActionDelete + const EventActionDisconnect + const EventActionLogin + const EventActionRollback + const EventActionScale + const EventActionUpdate + type EventListArgs struct + Name string + PageIndex int + PageSize int + Type string + type EventType string + const EventTypeAuthentication + const EventTypeConfig + const EventTypeNetwork + const EventTypeNode + const EventTypeRegistry + const EventTypeRole + const EventTypeSecret + const EventTypeService + const EventTypeServiceTemplate + const EventTypeSetting + const EventTypeStackArchive + const EventTypeStackTask + const EventTypeUser + const EventTypeVolume + type ImageListInfo struct + CreatedAt time.Time + func NewImageListInfo(image types.ImageSummary) *ImageListInfo + type Mount struct + Propagation mount.Propagation + ReadOnly bool + Source string + Target string + Type mount.Type + type Network struct + Address string + ID string + Name string + type NetworkCreateInfo struct + Attachable bool + CustomDriver string + Driver string + IPV4 struct{ ... } + IPV6 struct{ ... } + Internal bool + Labels Options + LogDriver struct{ ... } + Name string + Options Options + type NodeListInfo struct + Address string + CPU int64 + ID string + Leader bool + Memory float32 + Name string + Role swarm.NodeRole + Status swarm.NodeState + Version string + func NewNodeListInfo(node swarm.Node) *NodeListInfo + type NodeUpdateInfo struct + Availability swarm.NodeAvailability + Labels Options + Name string + Role swarm.NodeRole + Version uint64 + type Option struct + Name string + Value string + type Options []*Option + func NewOptions(m map[string]string) Options + func (opts Options) Compress() Options + func (opts Options) ToMap() map[string]string + type Pager struct + Count int + MaxPage int + Next int + Page int + Pages []int + Previous int + Size int + URL func(page int) string + func NewPager(uri string, count, size, page int) *Pager + type Perm struct + ResID string + ResType string + Roles []string + Scope int32 + Users []string + type PlacementConstraint struct + Name string + Operator string + Value string + func NewPlacementConstraint(c string) PlacementConstraint + func (pc *PlacementConstraint) ToConstraint() string + type PlacementPreference struct + Spread string + type Registry struct + CreatedAt time.Time + ID string + Name string + Password string + URL string + UpdatedAt time.Time + Username string + func (r *Registry) GetEncodedAuth() string + func (r *Registry) Match(image string) bool + type ResourceInfo struct + CPU float64 + Memory string + func NewResourceInfo(res *swarm.Resources) ResourceInfo + func (r ResourceInfo) IsSet() bool + func (r ResourceInfo) ToResources() (res *swarm.Resources, err error) + type Role struct + CreatedAt time.Time + Description string + ID string + Name string + Perms []string + UpdatedAt time.Time + type ServiceDetailInfo struct + Args string + Command string + Env map[string]string + Networks []Network + Replicas uint64 + func NewServiceDetailInfo(service swarm.Service) *ServiceDetailInfo + type ServiceInfo struct + Args string + Command string + Configs []ConfigInfo + ContainerLabels Options + DNS struct{ ... } + Dir string + Endpoint struct{ ... } + Environments Options + Hostname string + Hosts string + Image string + LogDriver struct{ ... } + Mode string + Mounts []Mount + Name string + Networks []string + Placement struct{ ... } + Registry string + RegistryAuth string + RegistryURL string + Replicas uint64 + Resource struct{ ... } + RestartPolicy struct{ ... } + RollbackPolicy struct{ ... } + Secrets []ConfigInfo + ServiceLabels Options + UpdatePolicy struct{ ... } + User string + Version uint64 + func NewServiceInfo(service swarm.Service) *ServiceInfo + func (si *ServiceInfo) GetDNSConfig() *swarm.DNSConfig + func (si *ServiceInfo) Normalize() + func (si *ServiceInfo) ToServiceSpec() swarm.ServiceSpec + type ServiceListInfo struct + Actives uint64 + Image string + Mode string + Name string + Replicas uint64 + Rollback bool + UpdateStatus string + UpdatedAt time.Time + func NewServiceListInfo(service swarm.Service, actives uint64) *ServiceListInfo + type Session struct + Expires time.Time + Token string + UpdatedAt time.Time + UserID string + type Setting struct + LDAP struct{ ... } + Language string + Metrics struct{ ... } + TimeZone struct{ ... } + UpdatedAt time.Time + UpdatedBy string + Version string + type StackListInfo struct + Name string + Services []string + type TaskInfo struct + Image string + NodeName string + func NewTaskInfo(task swarm.Task, nodeName string) *TaskInfo + type TaskListArgs struct + Name string + Node string + PageIndex int + PageSize int + Service string + State string + type Template struct + Content string + CreatedAt time.Time + CreatedBy string + ID string + Name string + UpdatedAt time.Time + UpdatedBy string + type TemplateListArgs struct + Name string + PageIndex int + PageSize int + type User struct + Admin bool + CreatedAt time.Time + Email string + ID string + LoginName string + Name string + Password string + Roles []string + Salt string + Status UserStatus + Type UserType + UpdatedAt time.Time + type UserListArgs struct + Filter string + PageIndex int + PageSize int + Query string + type UserStatus int32 + const UserStatusActive + const UserStatusBlocked + type UserType string + const UserTypeInternal + const UserTypeLDAP + type VolumeCreateInfo struct + CustomDriver string + Driver string + Labels Options + Name string + Options Options