Versions in this module Expand all Collapse all v1 v1.13.1 Mar 11, 2020 Changes in this version + func NewRouter(b Backend) router.Router + type Backend interface + CreateSecret func(s types.SecretSpec) (string, error) + CreateService func(types.ServiceSpec, string) (*basictypes.ServiceCreateResponse, error) + GetNode func(string) (types.Node, error) + GetNodes func(basictypes.NodeListOptions) ([]types.Node, error) + GetSecret func(id string) (types.Secret, error) + GetSecrets func(opts basictypes.SecretListOptions) ([]types.Secret, error) + GetService func(string) (types.Service, error) + GetServices func(basictypes.ServiceListOptions) ([]types.Service, error) + GetTask func(string) (types.Task, error) + GetTasks func(basictypes.TaskListOptions) ([]types.Task, error) + GetUnlockKey func() (string, error) + Init func(req types.InitRequest) (string, error) + Inspect func() (types.Swarm, error) + Join func(req types.JoinRequest) error + Leave func(force bool) error + RemoveNode func(string, bool) error + RemoveSecret func(id string) error + RemoveService func(string) error + ServiceLogs func(context.Context, string, *backend.ContainerLogsConfig, chan struct{}) error + UnlockSwarm func(req types.UnlockRequest) error + Update func(uint64, types.Spec, types.UpdateFlags) error + UpdateNode func(string, uint64, types.NodeSpec) error + UpdateSecret func(id string, version uint64, spec types.SecretSpec) error + UpdateService func(string, uint64, types.ServiceSpec, string, string) (*basictypes.ServiceUpdateResponse, error)