Documentation
¶
Index ¶
- type Client
- func (c *Client) BaseURL() string
- func (c *Client) BlobExists(ctx context.Context, name, digest string) (bool, error)
- func (c *Client) Delete(ctx context.Context, path string) error
- func (c *Client) GetBlob(ctx context.Context, name, digest string) (io.ReadCloser, error)
- func (c *Client) GetJSON(ctx context.Context, path string, out any) error
- func (c *Client) GetManifest(ctx context.Context, name, tag string) (*manifest.Manifest, error)
- func (c *Client) GetManifestJSON(ctx context.Context, name, tag string) ([]byte, error)
- func (c *Client) PutBlob(ctx context.Context, name, digest string, body io.Reader, size int64) error
- func (c *Client) PutManifestJSON(ctx context.Context, name, tag string, data []byte) error
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 wraps the Epoch HTTP API and registry endpoints.
func (*Client) BlobExists ¶
BlobExists checks whether a blob exists in a repository.
func (*Client) GetManifest ¶
GetManifest downloads and decodes a manifest for name:tag.
func (*Client) GetManifestJSON ¶
GetManifestJSON downloads the raw manifest JSON for name:tag.
Click to show internal directories.
Click to hide internal directories.