Documentation ¶
Index ¶
- type Client
- type RESTClient
- func (c *RESTClient) CreateImmuRule(ctx context.Context, projectNameOrID string, ...) error
- func (c *RESTClient) DeleteImmuRule(ctx context.Context, projectNameOrID string, immutableRuleID int64) error
- func (c *RESTClient) ListImmuRules(ctx context.Context, projectNameOrID string) ([]*model.ImmutableRule, error)
- func (c *RESTClient) UpdateImmuRule(ctx context.Context, projectNameOrID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateImmuRule(ctx context.Context, projectNameOrID string, immutableRule *model.ImmutableRule) error UpdateImmuRule(ctx context.Context, projectNameOrID string, immutableRule *model.ImmutableRule, immutableRuleID int64) error DeleteImmuRule(ctx context.Context, projectNameOrID string, immutableRuleID int64) error ListImmuRules(ctx context.Context, projectNameOrID string) ([]*model.ImmutableRule, error) }
type RESTClient ¶
type RESTClient struct { // Options contains optional configuration when making API calls. Options *config.Options // The new client of the harbor v2 API V2Client *v2client.Harbor // AuthInfo contains the auth information that is provided on API calls. AuthInfo runtime.ClientAuthInfoWriter }
func NewClient ¶
func NewClient(v2Client *v2client.Harbor, opts *config.Options, authInfo runtime.ClientAuthInfoWriter) *RESTClient
func (*RESTClient) CreateImmuRule ¶
func (c *RESTClient) CreateImmuRule(ctx context.Context, projectNameOrID string, immutableRule *model.ImmutableRule) error
func (*RESTClient) DeleteImmuRule ¶
func (*RESTClient) ListImmuRules ¶
func (c *RESTClient) ListImmuRules(ctx context.Context, projectNameOrID string) ([]*model.ImmutableRule, error)
func (*RESTClient) UpdateImmuRule ¶
func (c *RESTClient) UpdateImmuRule(ctx context.Context, projectNameOrID string, immutableRule *model.ImmutableRule, immutableRuleID int64) error
Click to show internal directories.
Click to hide internal directories.