client

package
v0.0.0-...-282e76a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateContextDirectory

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

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

type CreateOptions

type CreateOptions struct {
	JsonBytes   []byte
	IsContainer bool //true for container, false for Pod
	PodId       string
	Attach      bool
	Remove      bool
}

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, container bool) ([]byte, error)

func (*HyperClient) GetTag

func (cli *HyperClient) GetTag() string

func (*HyperClient) HyperCmdAttach

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

func (*HyperClient) HyperCmdBuild

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

hyperctl build [OPTIONS] PATH

func (*HyperClient) HyperCmdCommit

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

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

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

func (*HyperClient) HyperCmdLogin

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

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

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

func (*HyperClient) HyperCmdPause

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

func (*HyperClient) HyperCmdPull

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

func (*HyperClient) HyperCmdPush

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

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

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

func (*HyperClient) HyperCmdStart

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

func (*HyperClient) HyperCmdStop

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

func (*HyperClient) HyperCmdUnpause

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

func (*HyperClient) HyperCmdVersion

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

func (*HyperClient) JsonFromCmdline

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

func (*HyperClient) JsonFromFile

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

func (*HyperClient) ParseCreateOptions

func (cli *HyperClient) ParseCreateOptions(cmd string, args ...string) (*CreateOptions, error)

func (*HyperClient) PullImage

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

func (*HyperClient) PullImages

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

Directories

Path Synopsis
api
rpc command

Jump to

Keyboard shortcuts

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