api

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2017 License: Apache-2.0 Imports: 4 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 {
	metav1.TypeMeta
	ObjectMeta api.ObjectMeta
	Spec       VMSpec
	Status     VMStatus
}

func (*VM) GetObjectKind

func (v *VM) GetObjectKind() schema.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      metav1.Time         `json:"lastProbeTime,omitempty"`
	LastTransitionTime metav1.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 {
	metav1.TypeMeta
	metav1.ListMeta
	VMs []VM
}

func (*VMList) GetListMeta

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

Required to satisfy ListMetaAccessor interface

func (*VMList) GetObjectKind

func (vl *VMList) GetObjectKind() schema.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