secrets

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL