client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RancherVMClient

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

func NewRancherVMClient

func NewRancherVMClient(endpoint, username, password string, insecureSkipVerify bool) *RancherVMClient

func (*RancherVMClient) CredentialCreate

func (c *RancherVMClient) CredentialCreate(name, publicKey string) error

func (*RancherVMClient) CredentialDelete

func (c *RancherVMClient) CredentialDelete(name string) error

func (*RancherVMClient) CredentialGet

func (c *RancherVMClient) CredentialGet(name string) (*vmapi.Credential, error)

func (*RancherVMClient) InstanceCreate

func (c *RancherVMClient) InstanceCreate(i server.Instance, count int32) error

func (*RancherVMClient) InstanceDelete

func (c *RancherVMClient) InstanceDelete(name string) error

func (*RancherVMClient) InstanceGet

func (c *RancherVMClient) InstanceGet(name string) (*vmapi.VirtualMachine, error)

func (*RancherVMClient) InstanceList

func (c *RancherVMClient) InstanceList() ([]*vmapi.VirtualMachine, error)

func (*RancherVMClient) InstanceStart

func (c *RancherVMClient) InstanceStart(name string) error

func (*RancherVMClient) InstanceStop

func (c *RancherVMClient) InstanceStop(name string) error

func (*RancherVMClient) InstanceUpdate

func (c *RancherVMClient) InstanceUpdate(instance *vmapi.VirtualMachine) error

Jump to

Keyboard shortcuts

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