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 = "image.dicot.io"

Variables

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

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type Image

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

func (*Image) GetObjectKind

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

func (*Image) GetObjectMeta

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

type ImageList

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

func (*ImageList) GetListMeta

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

func (*ImageList) GetObjectKind

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

type ImageSpec

type ImageSpec struct {
	ID              string            `json:"id"`
	Name            *string           `json:"name"`
	Status          string            `json:"status"`
	ContainerFormat *string           `json:"container_format"`
	DiskFormat      *string           `json:"disk_format"`
	Visibility      string            `json:"visibility"`
	Protected       bool              `json:"protected"`
	Size            *uint64           `json:"size"`
	VirtualSize     *uint64           `json:"virtual_size"`
	Owner           string            `json:"owner"`
	MinDisk         uint64            `json:"min_disk"`
	MinRam          uint64            `json:"min_ram"`
	Checksum        *string           `json:"checksum"`
	CreatedAt       string            `json:"created_at"`
	UpdatedAt       string            `json:"updated_at"`
	Tags            []string          `json:"tags"`
	Metadata        map[string]string `json:"metadata"`
}

Jump to

Keyboard shortcuts

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