Documentation
¶
Index ¶
- func PackageURL(reference oci.Reference) string
- func ParseURL(u string) (string, string, string, string, bool)
- type Client
- func (c *Client) GetDescription(ctx context.Context, owner string, repository string) (string, error)
- func (c *Client) GetPackage(ctx context.Context, reference oci.Reference) (*Package, error)
- func (c *Client) GetREADME(ctx context.Context, url string) (string, error)
- func (c *Client) GetRelease(ctx context.Context, owner string, repository string, tag string) (*Release, error)
- type Package
- type Release
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PackageURL ¶ added in v0.19.0
PackageURL returns the URL to a GitHub package, assuming the reference is a valid image hosted on GHCR.
Types ¶
type Client ¶
type Client struct { // Endpoint is the GitHub endpoint. Useful for using an enterprise instance, // for example. Defaults to "https://github.com". Endpoint string Client httputil.Requester }
func (*Client) GetDescription ¶
func (c *Client) GetDescription(ctx context.Context, owner string, repository string) (string, error)
GetDescription returns the description of a repository.
func (*Client) GetPackage ¶
GetPackage returns information about a GHCR package.
Click to show internal directories.
Click to hide internal directories.