Documentation ¶
Index ¶
- Constants
- func ImageAccessible(img *v1.Image, proj *identityv1.Project) bool
- func NewService(client api.Interface, tm auth.TokenManager, imagerepo string, serverID string, ...) rest.Service
- type ImageCreateReq
- type ImageInfo
- type ImageListRes
- type ImagePatchChange
- type ImagePatchReq
- type IndexRes
- type SchemaImageShowRes
- type SchemaPropInfo
- type SchemaPropItems
- type VersionInfo
Constants ¶
View Source
const TEN_GB = 10 * 1024 * 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func ImageAccessible ¶
func ImageAccessible(img *v1.Image, proj *identityv1.Project) bool
Types ¶
type ImageCreateReq ¶
type ImageCreateReq struct { ID string `json:"id"` Name *string `json:"name"` ContainerFormat *string `json:"container_format"` DiskFormat *string `json:"disk_format"` Visibility *string `json:"visibility"` Protected *bool `json:"protected"` MinDisk uint64 `json:"min_disk"` MinRam uint64 `json:"min_ram"` Tags []string `json:"tags"` Metadata map[string]string `json:"-"` }
func (*ImageCreateReq) UnmarshalJSON ¶
func (info *ImageCreateReq) UnmarshalJSON(b []byte) error
type ImageInfo ¶
type ImageInfo struct { ID string `json:"id"` Name *string `json:"name"` File string `json:"file"` Schema string `json:"schema"` 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:"-"` }
func (ImageInfo) MarshalJSON ¶
type ImageListRes ¶
type ImageListRes struct {
Images []ImageInfo `json:"images"`
}
type ImagePatchChange ¶
type ImagePatchReq ¶
type ImagePatchReq []ImagePatchChange
type IndexRes ¶
type IndexRes struct {
Versions []VersionInfo `json:"versions"`
}
type SchemaImageShowRes ¶
type SchemaPropInfo ¶
type SchemaPropInfo struct { Description string `json:"description"` Type interface{} `json:"type"` ReadOnly *bool `json:"readonly,omitempty"` Enum []*string `json:"enum,omitempty"` Pattern string `json:"pattern,omitempty"` IsBase *bool `json:"is_base,omitempty"` MaxLength uint `json:"maxLength,omitempty"` Items *SchemaPropItems `json:"items,omitempty"` }
type SchemaPropItems ¶
type SchemaPropItems struct { Properties map[string]SchemaPropInfo `json:"properties,omitempty"` Required []string `json:"required,omitempty"` MaxLength uint `json:"maxLength,omitempty"` Type string `json:"type"` }
Click to show internal directories.
Click to hide internal directories.