Help us shape the future of Go! Take the 2026 Go Developer Survey

secrets

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 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. This List All endpoint does not support pagination at the moment.

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