Documentation ¶
Index ¶
- Constants
- func Login(hostname, username, password string, setting *settings.Settings) error
- func Logout(hostname string, setting *settings.Settings) error
- func Pull(localPath, hostName, repoName, tag string) error
- func Push(localPath, hostName, repoName, tag string, settings *settings.Settings) error
- type OciClient
Constants ¶
View Source
const DEFAULT_OCI_ARTIFACT_TYPE = "application/vnd.oci.image.layer.v1.tar"
View Source
const OCI_SCHEME = "oci"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OciClient ¶
type OciClient struct {
// contains filtered or unexported fields
}
OciClient is mainly responsible for interacting with OCI registry
func NewOciClient ¶
NewOciClient will new an OciClient. regName is the registry. e.g. ghcr.io or docker.io. repoName is the repo name on registry.
func (*OciClient) TheLatestTag ¶
TheLatestTag will return the latest tag of the kcl packages.
Click to show internal directories.
Click to hide internal directories.