Documentation
¶
Overview ¶
Package epoch wraps the epoch registry client behind a SnapshotRegistry interface for testability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client adapts the upstream epoch registry client to SnapshotRegistry.
func New ¶
func New(baseURL, token string, opts ...registryclient.Option) *Client
New creates a Client that talks to the epoch registry at baseURL.
func (*Client) DeleteManifest ¶
DeleteManifest removes the manifest identified by (name, tag).
type SnapshotRegistry ¶
type SnapshotRegistry interface {
// HasManifest reports whether (name, tag) exists. Missing returns (false, nil).
HasManifest(ctx context.Context, name, tag string) (bool, error)
// DeleteManifest removes the manifest at (name, tag).
DeleteManifest(ctx context.Context, name, tag string) error
}
SnapshotRegistry is the subset of epoch's HTTP API the operator needs.
Click to show internal directories.
Click to hide internal directories.