Documentation
¶
Index ¶
- type Blob
- type Client
- func (c *Client) GetBlob(ctx context.Context, href string, includeRaw bool) (*Blob, error)
- func (c *Client) GetRegistryToken(ctx context.Context, repository string) (string, error)
- func (c *Client) GetRepositoryDescription(ctx context.Context, fullPath string) (string, error)
- func (c *Client) GetRepositoryREADMEBlob(ctx context.Context, fullPath string) (*Blob, error)
- func (c *Client) HandleAuth(r *http.Request) error
- type ContainerRepository
- type ContainerRepositoryTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct {
ID string `json:"id"`
Path string `json:"path"`
Name string `json:"name"`
Extension string `json:"extension"`
Size int `json:"size"`
MimeType string `json:"mime_type"`
Binary bool `json:"binary"`
RawPath string `json:"raw_path"`
BlamePath string `json:"blame_path"`
CommitsPath string `json:"commits_path"`
TreePath string `json:"tree_path"`
Permalink string `json:"permalink"`
LastCommitSHA string `json:"last_commit_sha"`
HTML string `json:"html"`
Raw []byte `json:"-"`
}
type Client ¶
func (*Client) GetBlob ¶
GetBlob retrieves the blob at href. Set includeRaw to true to download the blob's contents.
func (*Client) GetRegistryToken ¶
GetRegistryToken returns a token for use with Docker Hub with pull permissions on the specified repository.
func (*Client) GetRepositoryDescription ¶
GetRepositoryDescription retrieves the description of a repository.
func (*Client) GetRepositoryREADMEBlob ¶
GetRepositoryREADMEBlob returns a repository's README blob.
type ContainerRepository ¶
Click to show internal directories.
Click to hide internal directories.