Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultGcrRepo = "k8s.gcr.io" DefaultRetryTimes = 5 DefaultRetryInterval = time.Second * 5 DefaultTimeout = time.Second * 20 DefaultPushTimeout = time.Minute * 15 // LegacyConfigMediaType should be replaced by OCI image spec. // More detail: docker/distribution#1622 LegacyConfigMediaType = "application/octet-stream" )
Variables ¶
View Source
var (
ErrUnsupportedMediaType = errors.New("Unsupported MediaType")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *resty.Client // contains filtered or unexported fields }
func (*Client) AllTagsWithRepo ¶
func (*Client) ManifestCheckSum ¶
type Manifest ¶
type Manifest struct { MediaType string `json:"mediaType"` SchemaVersion int `json:"schemaVersion"` Signatures interface{} `json:"signatures"` Config *ManifestConfig `json:"config""` }
type ManifestConfig ¶
type ManifestConfig struct {
MediaType string `json:"mediaType"`
}
type Options ¶
type Options struct { Username string Password string Token string Repo string Retry int RetryInterval time.Duration ReqTimeout time.Duration PushTimeout time.Duration Ctx context.Context ImageSet *deps.ImageSet AdditionalNS []string }
func NewDefaultOptions ¶
func NewDefaultOptions() *Options
Click to show internal directories.
Click to hide internal directories.