api

package
v0.0.1-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VM

type VM struct {
	unversioned.TypeMeta
	ObjectMeta api.ObjectMeta
	Spec       VMSpec
	Status     VMStatus
}

func (*VM) GetObjectKind

func (v *VM) GetObjectKind() unversioned.ObjectKind

Required to satisfy Object interface

func (*VM) GetObjectMeta

func (v *VM) GetObjectMeta() meta.Object

Required to satisfy ObjectMetaAccessor interface

type VMCondition

type VMCondition struct {
	Type               VMConditionType     `json:"type"`
	Status             api.ConditionStatus `json:"status"`
	LastProbeTime      unversioned.Time    `json:"lastProbeTime,omitempty"`
	LastTransitionTime unversioned.Time    `json:"lastTransitionTime,omitempty"`
	Reason             string              `json:"reason,omitempty"`
	Message            string              `json:"message,omitempty"`
}

type VMConditionType

type VMConditionType string
const (
	// PodCreated means that the VM request was translated into a Pod which can be scheduled and started by
	// Kubernetes.
	PodCreated VMConditionType = "PodCreated"
	// VMReady means the pod is able to service requests and should be added to the
	// load balancing pools of all matching services.
	VMReady VMConditionType = "Ready"
)

These are valid conditions of VMs.

type VMList

type VMList struct {
	unversioned.TypeMeta
	unversioned.ListMeta
	VMs []VM
}

func (*VMList) GetListMeta

func (vl *VMList) GetListMeta() unversioned.List

Required to satisfy ListMetaAccessor interface

func (*VMList) GetObjectKind

func (vl *VMList) GetObjectKind() unversioned.ObjectKind

Required to satisfy Object interface

type VMPhase

type VMPhase string

type VMSpec

type VMSpec struct {
	NodeSelector map[string]string
}

VMSpec is a description of a pod

type VMStatus

type VMStatus struct {
	NodeName   string
	Conditions []VMCondition
	Phase      VMPhase
}

VMStatus represents information about the status of a VM. Status may trail the actual state of a system.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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