model

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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