Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, id string, ...) error
- func (c *Client) Delete(ctx context.Context, id string, ...) error
- func (c *Client) Get(ctx context.Context, id string, opts ...option.RequestOption) (management.GetHookSecretResponseContent, error)
- func (c *Client) Update(ctx context.Context, id string, ...) error
- type RawClient
- func (r *RawClient) Create(ctx context.Context, id string, ...) (*core.Response[any], error)
- func (r *RawClient) Delete(ctx context.Context, id string, ...) (*core.Response[any], error)
- func (r *RawClient) Get(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[management.GetHookSecretResponseContent], error)
- func (r *RawClient) Update(ctx context.Context, id string, ...) (*core.Response[any], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *core.RequestOptions) *Client
func (*Client) Create ¶
func (c *Client) Create( ctx context.Context, id string, request management.CreateHookSecretRequestContent, opts ...option.RequestOption, ) error
Add one or more secrets to an existing hook. Accepts an object of key-value pairs, where the key is the name of the secret. A hook can have a maximum of 20 secrets.
func (*Client) Delete ¶
func (c *Client) Delete( ctx context.Context, id string, request management.DeleteHookSecretRequestContent, opts ...option.RequestOption, ) error
Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete.
func (*Client) Get ¶
func (c *Client) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (management.GetHookSecretResponseContent, error)
Retrieve a hook's secrets by the ID of the hook.
func (*Client) Update ¶
func (c *Client) Update( ctx context.Context, id string, request management.UpdateHookSecretRequestContent, opts ...option.RequestOption, ) error
Update one or more existing secrets for an existing hook. Accepts an object of key-value pairs, where the key is the name of the existing secret.
type RawClient ¶
type RawClient struct {
// contains filtered or unexported fields
}
func NewRawClient ¶
func NewRawClient(options *core.RequestOptions) *RawClient
func (*RawClient) Create ¶
func (r *RawClient) Create( ctx context.Context, id string, request management.CreateHookSecretRequestContent, opts ...option.RequestOption, ) (*core.Response[any], error)
func (*RawClient) Delete ¶
func (r *RawClient) Delete( ctx context.Context, id string, request management.DeleteHookSecretRequestContent, opts ...option.RequestOption, ) (*core.Response[any], error)
func (*RawClient) Get ¶
func (r *RawClient) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (*core.Response[management.GetHookSecretResponseContent], error)
func (*RawClient) Update ¶
func (r *RawClient) Update( ctx context.Context, id string, request management.UpdateHookSecretRequestContent, opts ...option.RequestOption, ) (*core.Response[any], error)
Click to show internal directories.
Click to hide internal directories.