clients

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudsYamlFile = "/etc/ibmcloud/clouds.yaml"

	// TODO: make the timeout to be configurable
	WaitReadyRetryInterval = 5 * time.Second
	WaitReadyTimeout       = 600 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GuestService

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

func NewGuestService

func NewGuestService(sess *session.Session) *GuestService

func NewInstanceServiceFromMachine

func NewInstanceServiceFromMachine(kubeClient kubernetes.Interface, machine *clusterv1.Machine) (*GuestService, error)

func (*GuestService) CreateGuest

func (gs *GuestService) CreateGuest(clusterName, hostName string, machineSpec *ibmcloudv1.IbmcloudMachineProviderSpec, userScript string)

func (*GuestService) DeleteGuest

func (gs *GuestService) DeleteGuest(Id int) error

func (*GuestService) GetGuest

func (gs *GuestService) GetGuest(name string) (*datatypes.Virtual_Guest, error)

FIXME: use API layer query instead of query all then compare here

type IBMCloudConfig

type IBMCloudConfig struct {
	UserName string `yaml:"userName,omitempty"`
	APIKey   string `yaml:"apiKey,omitempty"`
}

Jump to

Keyboard shortcuts

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