Documentation
¶
Overview ¶
Secrets provide a secure solution for storing sensitive data like credentials and API keys.
For more details, visit our [Documentation](https://docs.stackguardian.io/docs/connectors/vaults)
Index ¶
- type Client
- func (c *Client) CreateSecret(ctx context.Context, org string, request *sgsdkgo.Secret, ...) (*sgsdkgo.SecretResponse, error)
- func (c *Client) DeleteSecret(ctx context.Context, org string, secret string, opts ...option.RequestOption) (*sgsdkgo.SecretResponse, error)
- func (c *Client) ListAllSecrets(ctx context.Context, org string, opts ...option.RequestOption) (*sgsdkgo.SecretListAllResponse, error)
- func (c *Client) UpdateSecret(ctx context.Context, org string, secret string, request *sgsdkgo.PatchedSecret, ...) (*sgsdkgo.SecretResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...option.RequestOption) *Client
func (*Client) CreateSecret ¶
func (c *Client) CreateSecret( ctx context.Context, org string, request *sgsdkgo.Secret, opts ...option.RequestOption, ) (*sgsdkgo.SecretResponse, error)
Create a new secret within the organization.
func (*Client) DeleteSecret ¶
func (c *Client) DeleteSecret( ctx context.Context, org string, secret string, opts ...option.RequestOption, ) (*sgsdkgo.SecretResponse, error)
Delete an existing secret from the organization.
func (*Client) ListAllSecrets ¶
func (c *Client) ListAllSecrets( ctx context.Context, org string, opts ...option.RequestOption, ) (*sgsdkgo.SecretListAllResponse, error)
Lists all the secrets in the organization.
func (*Client) UpdateSecret ¶
func (c *Client) UpdateSecret( ctx context.Context, org string, secret string, request *sgsdkgo.PatchedSecret, opts ...option.RequestOption, ) (*sgsdkgo.SecretResponse, error)
Update an existing secret's configuration or value.
Click to show internal directories.
Click to hide internal directories.