Documentation
¶
Index ¶
- type Artifact
- type Client
- func (c *Client) DeleteManifest(image string, manifest *image.ImageManifest) error
- func (c *Client) ExistBlob(repository, digest string) (bool, error)
- func (c *Client) GetManifest(image string) (*image.ImageManifest, error)
- func (c *Client) ListRepositories() *image.APIRepositories
- func (c *Client) ListTags(repository string) *image.APIRepository
- func (c *Client) PullBlob(repository, digest string) (string, int64, error)
- func (c *Client) PushBlob(repository, digest, blobPath string, size int64) error
- func (c *Client) PutManifest(image string, manifest *image.ImageManifest) error
- func (c *Client) SetAuth(req *http.Request)
- func (c *Client) Synchronize() error
- type Project
- type Repository
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Name, Namespace string
*cmhttp.HttpClient
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(c client.Client, namespacedName types.NamespacedName, scheme *runtime.Scheme, httpClient *cmhttp.HttpClient) *Client
NewClient is api client of harbor v2 registry
func (*Client) DeleteManifest ¶ added in v0.3.2
func (c *Client) DeleteManifest(image string, manifest *image.ImageManifest) error
DeleteManifest deletes manifest in the registry
func (*Client) GetManifest ¶ added in v0.3.2
func (c *Client) GetManifest(image string) (*image.ImageManifest, error)
GetManifest gets manifests of image in the registry
func (*Client) ListRepositories ¶
func (c *Client) ListRepositories() *image.APIRepositories
ListRepositories get repository list from registry server
func (*Client) ListTags ¶
func (c *Client) ListTags(repository string) *image.APIRepository
ListTags get tag list of repository from registry server
func (*Client) PutManifest ¶ added in v0.3.2
func (c *Client) PutManifest(image string, manifest *image.ImageManifest) error
PutManifest updates manifest in the registry
func (*Client) Synchronize ¶
Synchronize synchronizes repository list between tmax.io.Repository resource and Registry server
type Project ¶
type Project struct { ID int64 `json:"project_id"` Name string `json:"name"` Metadata map[string]interface{} `json:"metadata"` }
Project Metadata:
public: "true" / "false"
type Repository ¶
type Repository struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.