imageserver

package
v0.0.0-...-63c3a42 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationAddImage = iota
	OperationDeleteImage
	OperationMakeDirectory
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddImageRequest

type AddImageRequest struct {
	ImageName string
	Image     *image.Image
}

type AddImageResponse

type AddImageResponse struct{}

type ChangeImageExpirationRequest

type ChangeImageExpirationRequest struct {
	ExpiresAt time.Time
	ImageName string
}

type ChangeImageExpirationResponse

type ChangeImageExpirationResponse struct {
	Error string
}

type ChangeOwnerRequest

type ChangeOwnerRequest struct {
	DirectoryName string
	OwnerGroup    string
}

type ChangeOwnerResponse

type ChangeOwnerResponse struct{}

type CheckDirectoryRequest

type CheckDirectoryRequest struct {
	DirectoryName string
}

type CheckDirectoryResponse

type CheckDirectoryResponse struct {
	DirectoryExists bool
}

type CheckImageRequest

type CheckImageRequest struct {
	ImageName string
}

type CheckImageResponse

type CheckImageResponse struct {
	ImageExists bool
}

type DeleteImageRequest

type DeleteImageRequest struct {
	ImageName string
}

type DeleteImageResponse

type DeleteImageResponse struct{}

type DeleteUnreferencedObjectsRequest

type DeleteUnreferencedObjectsRequest struct {
	Percentage uint8
	Bytes      uint64
}

type DeleteUnreferencedObjectsResponse

type DeleteUnreferencedObjectsResponse struct{}

type FindLatestImageRequest

type FindLatestImageRequest struct {
	DirectoryName        string
	IgnoreExpiringImages bool
}

type FindLatestImageResponse

type FindLatestImageResponse struct {
	ImageName string
	Error     string
}

type GetImageExpirationRequest

type GetImageExpirationRequest struct {
	ImageName string
}

type GetImageExpirationResponse

type GetImageExpirationResponse struct {
	Error     string
	ExpiresAt time.Time
}

type GetImageRequest

type GetImageRequest struct {
	ImageName                  string
	IgnoreFilesystem           bool
	IgnoreFilesystemIfExpiring bool
	Timeout                    time.Duration
}

type GetImageResponse

type GetImageResponse struct {
	Image *image.Image
}

type ImageUpdate

type ImageUpdate struct {
	Name      string // "" signifies initial list is sent, changes to follow.
	Directory *image.Directory
	Operation uint
}

type MakeDirectoryRequest

type MakeDirectoryRequest struct {
	DirectoryName string
}

type MakeDirectoryResponse

type MakeDirectoryResponse struct{}

type Object

type Object struct {
	Hash hash.Hash
	Size uint64
}

Jump to

Keyboard shortcuts

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