v1

package
v0.0.0-...-f4df827 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "compute.dicot.io"
View Source
const NamespaceSystem = "dicot-system"

Variables

View Source
var GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type Flavor

type Flavor struct {
	metav1.TypeMeta `json:",inline"`
	ObjectMeta      metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec            FlavorSpec        `json:"spec,omitempty" valid:"required"`
}

func (*Flavor) GetObjectKind

func (v *Flavor) GetObjectKind() schema.ObjectKind

func (*Flavor) GetObjectMeta

func (v *Flavor) GetObjectMeta() metav1.Object

type FlavorList

type FlavorList struct {
	metav1.TypeMeta `json:",inline"`
	ListMeta        metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Flavor        `json:"items"`
}

func (*FlavorList) GetListMeta

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

func (*FlavorList) GetObjectKind

func (vl *FlavorList) GetObjectKind() schema.ObjectKind

type FlavorResources

type FlavorResources struct {
	EphemeralDiskMB uint64  `json:"ephemeral_disk_mb"`
	RootDiskMB      uint64  `json:"root_disk_mb"`
	SwapDiskMB      uint64  `json:"swap_disk_mb"`
	MemoryMB        uint64  `json:"memory_mb"`
	CPUCount        uint64  `json:"cpu_count"`
	RxTxFactor      float64 `json:"rxtx_factor"`
}

type FlavorSpec

type FlavorSpec struct {
	ID         string            `json:"id"`
	Disabled   bool              `json:"disabled"`
	Public     bool              `json:"public"`
	Resources  FlavorResources   `json:"resources"`
	ExtraSpecs map[string]string `json:"extra_specs"`
}

type Keypair

type Keypair struct {
	metav1.TypeMeta `json:",inline"`
	ObjectMeta      metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec            KeypairSpec       `json:"spec,omitempty" valid:"required"`
}

func (*Keypair) GetObjectKind

func (v *Keypair) GetObjectKind() schema.ObjectKind

func (*Keypair) GetObjectMeta

func (v *Keypair) GetObjectMeta() metav1.Object

type KeypairList

type KeypairList struct {
	metav1.TypeMeta `json:",inline"`
	ListMeta        metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Keypair       `json:"items"`
}

func (*KeypairList) GetListMeta

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

func (*KeypairList) GetObjectKind

func (vl *KeypairList) GetObjectKind() schema.ObjectKind

type KeypairSpec

type KeypairSpec struct {
	ID          uint64 `json:"id"`
	Fingerprint string `json:"fingerprint"`
	Type        string `json:"type"`
	PublicKey   string `json:"public_key"`
	UserID      string `json:"user_id"`
	CreatedAt   string `json:"created_at"`
}

Jump to

Keyboard shortcuts

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