client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateContextDirectory added in v0.6.0

func ValidateContextDirectory(srcPath string, excludes []string) error

validateContextDirectory checks if all the contents of the directory can be read and returns an error if some files can't be read symlinks which point to non-existing files don't trigger an error

Types

type AuthRequest added in v0.6.0

type AuthRequest func(authConfig types.AuthConfig) (io.ReadCloser, string, int, error)

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) GetTag

func (cli *HyperClient) GetTag() string

func (*HyperClient) HyperCmdAttach

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

func (*HyperClient) HyperCmdBuild added in v0.5.0

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

hyperctl build [OPTIONS] PATH

func (*HyperClient) HyperCmdCommit added in v0.5.0

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

-a, --author= Author (e.g., "Hello World <hello@a-team.com>") -c, --change=[] Apply Dockerfile instruction to the created image -m, --message= Commit message -p, --pause Pause container during Commit -h, --help Print usage

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) HyperCmdImages added in v0.5.0

func (cli *HyperClient) HyperCmdImages(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 hyper daemon

func (*HyperClient) HyperCmdKill

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

func (*HyperClient) HyperCmdList

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

func (*HyperClient) HyperCmdLoad added in v0.6.0

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

func (*HyperClient) HyperCmdLogin added in v0.5.0

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

CmdLogin logs in or registers a user to a Docker registry service.

If no server is specified, the user will be logged into or registered to the registry's index server.

Usage: docker login SERVER

func (*HyperClient) HyperCmdLogout added in v0.5.0

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

CmdLogout logs a user out from a Docker registry.

If no server is specified, the user will be logged out from the registry's index server.

Usage: hyperctl logout [SERVER]

func (*HyperClient) HyperCmdLogs added in v0.5.0

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

func (*HyperClient) HyperCmdPause added in v0.5.0

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

func (*HyperClient) HyperCmdPull

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

func (*HyperClient) HyperCmdPush added in v0.5.0

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

CmdPush pushes an image or repository to the registry.

Usage: hyperctl push NAME[:TAG]

func (*HyperClient) HyperCmdRm

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

func (*HyperClient) HyperCmdRmi added in v0.5.0

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

func (*HyperClient) HyperCmdRun

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

hyperctl 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) HyperCmdUnpause added in v0.5.0

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

func (*HyperClient) HyperCmdVersion

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

func (*HyperClient) JsonFromCmdline added in v0.5.0

func (cli *HyperClient) JsonFromCmdline(cmdArgs, cmdEnvs, cmdPortmaps []string, cmdLogDriver string, cmdLogOpts []string,
	cmdName, cmdWorkdir, cmdRestartPolicy string, cpu, memory int, tty bool, cmdLabels []string, entrypoint string) (string, error)

func (*HyperClient) JsonFromFile added in v0.5.0

func (cli *HyperClient) JsonFromFile(filename string, yaml, k8s bool) (string, error)

func (*HyperClient) PullImage added in v0.5.0

func (cli *HyperClient) PullImage(imageName string) error

func (*HyperClient) PullImages added in v0.5.0

func (cli *HyperClient) PullImages(spec *pod.UserPod) error

Directories

Path Synopsis
api
rpc

Jump to

Keyboard shortcuts

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