client

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 44

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddImage

func AddImage(client srpc.ClientI, name string, img *image.Image) error

func AddImageTrusted

func AddImageTrusted(client srpc.ClientI, name string, img *image.Image) error

func ChangeImageExpiration

func ChangeImageExpiration(client srpc.ClientI, name string,
	expiresAt time.Time) error

func CheckDirectory

func CheckDirectory(client srpc.ClientI, name string) (bool, error)

func CheckImage

func CheckImage(client srpc.ClientI, name string) (bool, error)

func ChownDirectory

func ChownDirectory(client srpc.ClientI, dirname, ownerGroup string) error

func DeleteImage

func DeleteImage(client srpc.ClientI, name string) error

func DeleteUnreferencedObjects

func DeleteUnreferencedObjects(client srpc.ClientI, percentage uint8,
	bytes uint64) error

func FindLatestImage

func FindLatestImage(client srpc.ClientI, dirname string,
	ignoreExpiring bool) (string, error)

func FindLatestImageReq added in v0.3.3

func FindLatestImageReq(client srpc.ClientI,
	request proto.FindLatestImageRequest) (string, error)

func GetImage

func GetImage(client srpc.ClientI, name string) (*image.Image, error)

func GetImageExpiration

func GetImageExpiration(client srpc.ClientI, name string) (time.Time, error)

func GetImageWithTimeout

func GetImageWithTimeout(client srpc.ClientI, name string,
	timeout time.Duration) (*image.Image, error)

func GetReplicationMaster added in v0.3.4

func GetReplicationMaster(client srpc.ClientI) (string, error)

func ListDirectories

func ListDirectories(client srpc.ClientI) ([]image.Directory, error)

func ListImages

func ListImages(client srpc.ClientI) ([]string, error)

func ListSelectedImages added in v0.3.4

func ListSelectedImages(client srpc.ClientI,
	request proto.ListSelectedImagesRequest) ([]string, error)

func ListUnreferencedObjects

func ListUnreferencedObjects(client srpc.ClientI) (
	map[hash.Hash]uint64, error)

func MakeDirectory

func MakeDirectory(client srpc.ClientI, dirname string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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