client

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnexpectedUpdateResults = errors.New("update operation had unexpected results")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c *db.Client) *Client

func (*Client) CreateLocation

func (c *Client) CreateLocation(
	ctx context.Context,
	location *goastorage.Location,
	config *types.LocationConfig,
) (*goastorage.Location, error)

func (*Client) CreatePackage

func (c *Client) CreatePackage(ctx context.Context, goapkg *goastorage.Package) (*goastorage.Package, error)

func (*Client) ListLocations

func (c *Client) ListLocations(ctx context.Context) (goastorage.LocationCollection, error)

func (*Client) ListPackages

func (c *Client) ListPackages(ctx context.Context) (goastorage.PackageCollection, error)

func (*Client) LocationPackages

func (c *Client) LocationPackages(ctx context.Context, locationID uuid.UUID) (goastorage.PackageCollection, error)

func (*Client) ReadLocation

func (c *Client) ReadLocation(ctx context.Context, locationID uuid.UUID) (*goastorage.Location, error)

func (*Client) ReadPackage

func (c *Client) ReadPackage(ctx context.Context, aipID uuid.UUID) (*goastorage.Package, error)

func (*Client) UpdatePackageLocationID

func (c *Client) UpdatePackageLocationID(ctx context.Context, aipID, locationID uuid.UUID) error

func (*Client) UpdatePackageStatus

func (c *Client) UpdatePackageStatus(ctx context.Context, aipID uuid.UUID, status types.PackageStatus) error

Jump to

Keyboard shortcuts

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