client

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddImage

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

func AddImageTrusted

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

func ChangeImageExpiration

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

func CheckDirectory

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

func CheckImage

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

func ChownDirectory

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

func DeleteImage

func DeleteImage(client *srpc.Client, name string) error

func DeleteUnreferencedObjects

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

func FindLatestImage

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

func GetImage

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

func GetImageExpiration

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

func GetImageWithTimeout

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

func ListDirectories

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

func ListImages

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

func ListUnreferencedObjects

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

func MakeDirectory

func MakeDirectory(client *srpc.Client, 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