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 ¶
type ImageList ¶
type ImageList struct { metav1.TypeMeta `json:",inline"` ListMeta metav1.ListMeta `json:"metadata,omitempty"` Items []Image `json:"items"` }
func (*ImageList) GetListMeta ¶
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"` }
Click to show internal directories.
Click to hide internal directories.