image

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IMAGE_VISIBILITY_PUBLIC    = "public"
	IMAGE_VISIBILITY_COMMUNITY = "community"
	IMAGE_VISIBILITY_SHARED    = "shared"
	IMAGE_VISIBILITY_PRIVATE   = "private"

	IMAGE_CONTAINER_FORMAT_AMI    = "ami"
	IMAGE_CONTAINER_FORMAT_ARI    = "ari"
	IMAGE_CONTAINER_FORMAT_AKI    = "aki"
	IMAGE_CONTAINER_FORMAT_BARE   = "bare"
	IMAGE_CONTAINER_FORMAT_OVF    = "ovf"
	IMAGE_CONTAINER_FORMAT_OVA    = "ova"
	IMAGE_CONTAINER_FORMAT_DOCKER = "docker"

	IMAGE_DISK_FORMAT_AMI   = "ami"
	IMAGE_DISK_FORMAT_ARI   = "ari"
	IMAGE_DISK_FORMAT_AKI   = "aki"
	IMAGE_DISK_FORMAT_VHD   = "vhd"
	IMAGE_DISK_FORMAT_VHDX  = "vhdx"
	IMAGE_DISK_FORMAT_VMDK  = "vmdk"
	IMAGE_DISK_FORMAT_RAW   = "raw"
	IMAGE_DISK_FORMAT_QCOW2 = "qcow2"
	IMAGE_DISK_FORMAT_VDI   = "vdi"
	IMAGE_DISK_FORMAT_PLOOP = "ploop"
	IMAGE_DISK_FORMAT_ISO   = "iso"

	IMAGE_STATUS_QUEUED         = "queued"
	IMAGE_STATUS_SAVING         = "saving"
	IMAGE_STATUS_ACTIVE         = "active"
	IMAGE_STATUS_KILLED         = "killed"
	IMAGE_STATUS_DELETED        = "deleted"
	IMAGE_STATUS_PENDING_DELETE = "pending_delete"
	IMAGE_STATUS_DEACTIVATED    = "deactivated"
)

Functions

func IsValidContainerFormat

func IsValidContainerFormat(fmt string) bool

func IsValidDiskFormat

func IsValidDiskFormat(fmt string) bool

func IsValidVisibility

func IsValidVisibility(vis string) bool

Types

type ImageGetter

type ImageGetter interface {
	Images(namespace string) ImageInterface
}

type ImageInterface

type ImageInterface interface {
	Create(obj *v1.Image) (*v1.Image, error)
	Update(obj *v1.Image) (*v1.Image, error)
	Delete(name string, options *meta_v1.DeleteOptions) error
	Get(name string) (*v1.Image, error)
	GetByID(id string) (*v1.Image, error)
	List() (*v1.ImageList, error)
	NewListWatch() *cache.ListWatch
}

func NewImageClient

func NewImageClient(cl rest.Interface, namespace string) ImageInterface

type Interface

type Interface interface {
	RESTClient() rest.Interface
	ImageGetter
}

func New

func New(c *rest.Config) (Interface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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