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) *reporter.KpmEvent
- func Push(localPath, hostName, repoName, tag string, settings *settings.Settings) *reporter.KpmEvent
- type OciClient
- func (ociClient *OciClient) ContainsTag(tag string) (bool, *reporter.KpmEvent)
- func (ociClient *OciClient) Pull(localPath, tag string) *reporter.KpmEvent
- func (ociClient *OciClient) Push(localPath, tag string) *reporter.KpmEvent
- func (ociClient *OciClient) TheLatestTag() (string, *reporter.KpmEvent)
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) ContainsTag ¶ added in v0.3.4
ContainsTag will check if the tag exists in the repo.
Click to show internal directories.
Click to hide internal directories.