image

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0, Apache-2.0 Imports: 15 Imported by: 29

Documentation

Index

Constants

View Source
const (
	IMAGE_META          = "X-Image-Meta-"
	IMAGE_META_PROPERTY = "X-Image-Meta-Property-"

	IMAGE_METADATA = "X-Image-Meta-Metadata"

	IMAGE_META_COPY_FROM = "x-glance-api-copy-from"
)

Variables

Functions

func FetchImageMeta

func FetchImageMeta(h http.Header) jsonutils.JSONObject

Types

type ImageManager

type ImageManager struct {
	modulebase.ResourceManager
}
var (
	Images ImageManager
)

func (*ImageManager) AddMembership

func (this *ImageManager) AddMembership(s *mcclient.ClientSession, img string, proj string, canShare bool) error

func (*ImageManager) BatchGet

func (this *ImageManager) BatchGet(session *mcclient.ClientSession, idlist []string, params jsonutils.JSONObject) []modulebase.SubmitResult

func (*ImageManager) BatchUpdate

func (this *ImageManager) BatchUpdate(
	session *mcclient.ClientSession, idlist []string, params jsonutils.JSONObject,
) []modulebase.SubmitResult

func (*ImageManager) Create

func (*ImageManager) Download

func (this *ImageManager) Download(s *mcclient.ClientSession, id string, format string, torrent bool) (jsonutils.JSONObject, io.Reader, int64, error)

func (*ImageManager) Download2

func (this *ImageManager) Download2(s *mcclient.ClientSession, id string, format string, torrent bool) (jsonutils.JSONObject, io.ReadCloser, int64, error)

func (*ImageManager) Get

func (*ImageManager) GetById

func (this *ImageManager) GetById(session *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)

func (*ImageManager) GetByName

func (this *ImageManager) GetByName(session *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)

func (*ImageManager) GetId

func (this *ImageManager) GetId(session *mcclient.ClientSession, id string, params jsonutils.JSONObject) (string, error)

func (*ImageManager) GetPrivateImageCount

func (this *ImageManager) GetPrivateImageCount(s *mcclient.ClientSession, ownerId string, isAdmin bool) (int, error)

func (*ImageManager) GetUsage

func (this *ImageManager) GetUsage(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)

func (*ImageManager) List

func (*ImageManager) ListMemberProjectIds

func (this *ImageManager) ListMemberProjectIds(s *mcclient.ClientSession, imageId string) (*modulebase.ListResult, error)

func (*ImageManager) ListMemberProjects

func (this *ImageManager) ListMemberProjects(s *mcclient.ClientSession, imageId string) (*modulebase.ListResult, error)

func (*ImageManager) ListSharedImageIds

func (this *ImageManager) ListSharedImageIds(s *mcclient.ClientSession, projectId string) (*modulebase.ListResult, error)

func (*ImageManager) ListSharedImages

func (this *ImageManager) ListSharedImages(s *mcclient.ClientSession, projectId string) (*modulebase.ListResult, error)

func (*ImageManager) RemoveMembership

func (this *ImageManager) RemoveMembership(s *mcclient.ClientSession, image string, project string) error

func (*ImageManager) Update

func (*ImageManager) Upload

type ImageUsageCount

type ImageUsageCount struct {
	Count int64
	Size  int64
}

type SImageUsageManager

type SImageUsageManager struct {
	modulebase.ResourceManager
}
var (
	ImageUsages SImageUsageManager
)

func (*SImageUsageManager) GetUsage

Jump to

Keyboard shortcuts

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