Documentation ¶
Index ¶
- Variables
- type HyperClient
- func (cli *HyperClient) Cmd(args ...string) error
- func (cli *HyperClient) ConvertYamlToJson(yamlBody []byte) ([]byte, error)
- func (cli *HyperClient) CreatePod(jsonbody string) (string, error)
- func (cli *HyperClient) GetContainerByPod(podId string) (string, error)
- func (cli *HyperClient) GetPodInfo(podName string) (string, error)
- func (cli *HyperClient) GetTag() string
- func (cli *HyperClient) HTTPClient() *http.Client
- func (cli *HyperClient) HyperCmdAttach(args ...string) error
- func (cli *HyperClient) HyperCmdCreate(args ...string) error
- func (cli *HyperClient) HyperCmdExec(args ...string) error
- func (cli *HyperClient) HyperCmdHelp(args ...string) error
- func (cli *HyperClient) HyperCmdInfo(args ...string) error
- func (cli *HyperClient) HyperCmdKill(args ...string) error
- func (cli *HyperClient) HyperCmdList(args ...string) error
- func (cli *HyperClient) HyperCmdPod(args ...string) error
- func (cli *HyperClient) HyperCmdPull(args ...string) error
- func (cli *HyperClient) HyperCmdReplace(args ...string) error
- func (cli *HyperClient) HyperCmdRm(args ...string) error
- func (cli *HyperClient) HyperCmdRun(args ...string) error
- func (cli *HyperClient) HyperCmdStart(args ...string) error
- func (cli *HyperClient) HyperCmdStop(args ...string) error
- func (cli *HyperClient) HyperCmdVersion(args ...string) error
- func (cli *HyperClient) HyperCmdVm(args ...string) error
- func (cli *HyperClient) RunPod(podstring string) (string, error)
- func (cli *HyperClient) StartPod(podId, vmId string) (string, error)
- func (cli *HyperClient) StopPod(podId, stopVm string) (int, string, error)
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) 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
Click to show internal directories.
Click to hide internal directories.