model

package
Version: v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Stack     BundleService `json:"Stack"`
	Namespace string        `json:"Namespace"`
}

bundle stores the contents of services and stack name

type BundleService

type BundleService struct {
	Version  string                      `json:"Version"`
	Services map[string]CraneServiceSpec `json:"Services"`
}

BundleService content services spec map and stack version Correspondence docker daemon type BundleFile

type ContainerStatOptions

type ContainerStatOptions struct {
	ID                  string
	Stats               chan *docker.Stats
	Stream              bool
	Timeout             time.Duration
	Done                chan bool
	InactivityTimeout   time.Duration
	CraneContainerStats chan *CraneContainerStat
}

type CraneContainerStat

type CraneContainerStat struct {
	NodeId      string
	ServiceId   string
	ServiceName string
	TaskId      string
	TaskName    string
	ContainerId string
	Stat        *docker.Stats
	ReceiveRate uint64
	SendRate    uint64
}

type CraneService

type CraneService struct {
	ID string `json:"ID"`
	swarm.Meta
	Spec         CraneServiceSpec   `json:"Spec"`
	Endpoint     swarm.Endpoint     `json:"Endpoint"`
	UpdateStatus swarm.UpdateStatus `json:"UpdateStatus"`
}

type CraneServiceSpec

type CraneServiceSpec struct {
	Name         string              `json:"Name"`
	Labels       map[string]string   `json:"Labels"`
	TaskTemplate swarm.TaskSpec      `json:"TaskTemplate"`
	Mode         swarm.ServiceMode   `json:"Mode"`
	UpdateConfig *swarm.UpdateConfig `json:"UpdateConfig"`
	Networks     []string            `json:"Networks"`
	EndpointSpec *swarm.EndpointSpec `json:"EndpointSpec"`
	RegistryAuth string              `json:"RegistryAuth"`
}

Jump to

Keyboard shortcuts

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