Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) CreateLocation(ctx context.Context, location *goastorage.Location, ...) (*goastorage.Location, error)
- func (c *Client) CreatePackage(ctx context.Context, goapkg *goastorage.Package) (*goastorage.Package, error)
- func (c *Client) ListLocations(ctx context.Context) (goastorage.LocationCollection, error)
- func (c *Client) ListPackages(ctx context.Context) (goastorage.PackageCollection, error)
- func (c *Client) LocationPackages(ctx context.Context, locationID uuid.UUID) (goastorage.PackageCollection, error)
- func (c *Client) ReadLocation(ctx context.Context, locationID uuid.UUID) (*goastorage.Location, error)
- func (c *Client) ReadPackage(ctx context.Context, aipID uuid.UUID) (*goastorage.Package, error)
- func (c *Client) UpdatePackageLocationID(ctx context.Context, aipID, locationID uuid.UUID) error
- func (c *Client) UpdatePackageStatus(ctx context.Context, aipID uuid.UUID, status types.PackageStatus) error
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 (*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 (*Client) ReadPackage ¶
func (*Client) UpdatePackageLocationID ¶
func (*Client) UpdatePackageStatus ¶
Click to show internal directories.
Click to hide internal directories.