Documentation
¶
Index ¶
- func OptsAll(smID string, overwriteOps ...opts.ExtraOpts) *opts.Opts
- func OptsNoGenerator(smID string, overwriteOps ...opts.ExtraOpts) *opts.Opts
- type Client
- func (c *Client) Client(userID string, zone *configModels.Zone) (*k8s.Client, error)
- func (c *Client) Create(id string, params *model.SmCreateParams) error
- func (c *Client) Delete(id string) error
- func (c *Client) Generator(sm *model.SM, client *k8s.Client, zone *configModels.Zone) generators.K8sGenerator
- func (c *Client) Get(opts *opts.Opts) (*model.SM, *k8s.Client, generators.K8sGenerator, error)
- func (c *Client) Repair(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { client.BaseClient[Client] // contains filtered or unexported fields }
Client is the client for the Harbor service. It contains a BaseClient, which is used to lazy-load and cache data.
func New ¶
New creates a new Client and injects the cache. If a cache is not supplied it will create a new one.
func (*Client) Create ¶
func (c *Client) Create(id string, params *model.SmCreateParams) error
Create creates the storage manager.
It creates all K8s resources for the storage manager.
func (*Client) Delete ¶
Delete deletes the storage manager.
It deletes all K8s resources for the storage manager.
func (*Client) Generator ¶
func (c *Client) Generator(sm *model.SM, client *k8s.Client, zone *configModels.Zone) generators.K8sGenerator
Generator returns the K8s generator.
Click to show internal directories.
Click to hide internal directories.