secretbackends

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package secretbackends provides the api client for the secretbackends facade.

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
}

Client is the api client for accessing secret backend related facades.

func NewClient

func NewClient(facade base.FacadeCaller) *Client

NewClient creates a secrets api client.

func (*Client) GetBackendConfigForDrain

func (c *Client) GetBackendConfigForDrain(ctx context.Context, backendID *string) (*provider.ModelBackendConfig, string, error)

GetBackendConfigForDrain fetches the config needed to make a secret backend client for the drain worker.

func (*Client) GetContentInfo

func (c *Client) GetContentInfo(ctx context.Context, uri *coresecrets.URI, label string, refresh, peek bool) (*secrets.ContentParams, *provider.ModelBackendConfig, bool, error)

GetContentInfo returns info about the content of a secret.

func (*Client) GetRevisionContentInfo

func (c *Client) GetRevisionContentInfo(ctx context.Context, uri *coresecrets.URI, revision int, pendingDelete bool) (*secrets.ContentParams, *provider.ModelBackendConfig, bool, error)

GetRevisionContentInfo returns info about the content of a secret revision. If pendingDelete is true, the revision is marked for deletion.

func (*Client) GetSecretBackendConfig

func (c *Client) GetSecretBackendConfig(ctx context.Context, backendID *string) (*provider.ModelBackendConfigInfo, error)

GetSecretBackendConfig fetches the config needed to make a secret backend client. If backendID is nil, fetch the current active backend config.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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