instance

package
v1.3.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NodeAnnotationInstanceID = "node.beta.kubernetes.io/instance-id"
)

Variables

This section is empty.

Functions

func NodeNameToInstanceID

func NodeNameToInstanceID(name string, nodeLister corev1lister.NodeLister) string

Make sure qingcloud instance hostname or override-hostname (if provided) is equal to InstanceId Recommended to use override-hostname

Types

type Instance

type Instance struct {
	Name string

	Status *qcservice.Instance
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance(api *qcservice.InstanceService, nodeLister corev1lister.NodeLister, name string, isApp bool) *Instance

func (*Instance) GetInstanceID

func (i *Instance) GetInstanceID() string

func (*Instance) GetK8sAddress

func (i *Instance) GetK8sAddress() ([]v1.NodeAddress, error)

func (*Instance) LoadQcInstance

func (i *Instance) LoadQcInstance() error

func (*Instance) LoadQcInstanceByID

func (i *Instance) LoadQcInstanceByID(id string) error

type InstanceSpec

type InstanceSpec struct {
}

Jump to

Keyboard shortcuts

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