client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2015 License: Apache-2.0 Imports: 27 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConnectionRefused = errors.New("Cannot connect to the Hyper daemon. Is 'hyperd' running on this host?")
)

Functions

This section is empty.

Types

type HyperClient

type HyperClient struct {
	// contains filtered or unexported fields
}

func NewHyperClient

func NewHyperClient(proto, addr string, tlsConfig *tls.Config) *HyperClient

func (*HyperClient) Cmd

func (cli *HyperClient) Cmd(args ...string) error

Cmd executes the specified command.

func (*HyperClient) ConvertYamlToJson

func (cli *HyperClient) ConvertYamlToJson(yamlBody []byte) ([]byte, error)

func (*HyperClient) CreatePod

func (cli *HyperClient) CreatePod(jsonbody string) (string, error)

func (*HyperClient) GetContainerByPod

func (cli *HyperClient) GetContainerByPod(podId string) (string, error)

func (*HyperClient) GetPodInfo

func (cli *HyperClient) GetPodInfo(podName string) (string, error)

func (*HyperClient) GetTag

func (cli *HyperClient) GetTag() string

func (*HyperClient) HTTPClient

func (cli *HyperClient) HTTPClient() *http.Client

func (*HyperClient) HyperCmdAttach

func (cli *HyperClient) HyperCmdAttach(args ...string) error

func (*HyperClient) HyperCmdCreate

func (cli *HyperClient) HyperCmdCreate(args ...string) error

func (*HyperClient) HyperCmdExec

func (cli *HyperClient) HyperCmdExec(args ...string) error

func (*HyperClient) HyperCmdHelp

func (cli *HyperClient) HyperCmdHelp(args ...string) error

func (*HyperClient) HyperCmdInfo

func (cli *HyperClient) HyperCmdInfo(args ...string) error

we need this *info* function to get the whole status from the docker daemon

func (*HyperClient) HyperCmdKill

func (cli *HyperClient) HyperCmdKill(args ...string) error

func (*HyperClient) HyperCmdList

func (cli *HyperClient) HyperCmdList(args ...string) error

func (*HyperClient) HyperCmdPod

func (cli *HyperClient) HyperCmdPod(args ...string) error

We need to process the POD json data with the given file

func (*HyperClient) HyperCmdPull

func (cli *HyperClient) HyperCmdPull(args ...string) error

func (*HyperClient) HyperCmdReplace

func (cli *HyperClient) HyperCmdReplace(args ...string) error

func (*HyperClient) HyperCmdRm

func (cli *HyperClient) HyperCmdRm(args ...string) error

func (*HyperClient) HyperCmdRun

func (cli *HyperClient) HyperCmdRun(args ...string) error

hyper run [OPTIONS] image [COMMAND] [ARGS...]

func (*HyperClient) HyperCmdStart

func (cli *HyperClient) HyperCmdStart(args ...string) error

func (*HyperClient) HyperCmdStop

func (cli *HyperClient) HyperCmdStop(args ...string) error

func (*HyperClient) HyperCmdVersion

func (cli *HyperClient) HyperCmdVersion(args ...string) error

func (*HyperClient) HyperCmdVm

func (cli *HyperClient) HyperCmdVm(args ...string) error

func (*HyperClient) RunPod

func (cli *HyperClient) RunPod(podstring string) (string, error)

func (*HyperClient) StartPod

func (cli *HyperClient) StartPod(podId, vmId string) (string, error)

func (*HyperClient) StopPod

func (cli *HyperClient) StopPod(podId, stopVm string) (int, string, error)

Jump to

Keyboard shortcuts

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