swarmkit

package
v0.0.0-...-04ba5ad Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(socketAddr string) (api.ControlClient, error)

Dial establishes a connection and creates a client. It infers connection parameters from CLI options.

func GetCluster

func GetCluster(ctx ct.Context, c api.ControlClient, input string) (*api.Cluster, error)

GetCluster get cluster from swarmkit

func GetNetwork

func GetNetwork(ctx ct.Context, c api.ControlClient, input string) (*api.Network, error)

GetNetwork tries to query for a network as an ID and if it can't be found tries to query as a name. If the name query returns exactly one entry then it is returned to the caller. Otherwise an error is returned.

func GetNode

func GetNode(ctx ct.Context, c api.ControlClient, input string) (*api.Node, error)

GetNode get node with name or id from cluster

func GetService

func GetService(ctx ct.Context, c api.ControlClient, input string) (*api.Service, error)

GetService get service with service id or service name in cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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