Documentation ¶
Index ¶
- Constants
- func DownloadVersion(ctx context.Context, token, tag, dest string, progressCb func(float32, string)) error
- func GetAvailableVersions(ctx context.Context, token string) ([]string, error)
- func GetBlobURL(ctx context.Context, token string, digest string) (string, error)
- func GetToken(repo string) (string, error)
- type Blob
- type RegistryManifest
- type TokenResponse
Constants ¶
View Source
const ( RepoEndpoint = "https://ghcr.io/v2/" Repo = "ngld/knossos/releases" )
Variables ¶
This section is empty.
Functions ¶
func DownloadVersion ¶
func GetAvailableVersions ¶
Types ¶
type RegistryManifest ¶
type TokenResponse ¶
type TokenResponse struct { Token string `json:"token"` Errors []responseError `json:"errors"` }
Click to show internal directories.
Click to hide internal directories.