Documentation ¶
Index ¶
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) 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) 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.