secretbackends

package
v0.0.0-...-51a0f74 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 8 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(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(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(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(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