secretsdrain

package
v0.0.0-...-cf6de95 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Overview

Package secretsdrain provides the api client for the secretsdrain facade.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSecretBackendArg

type ChangeSecretBackendArg struct {
	URI      *coresecrets.URI
	Revision int
	Data     map[string]string
	ValueRef *coresecrets.ValueRef
}

ChangeSecretBackendArg is the argument for ChangeSecretBackend.

type ChangeSecretBackendResult

type ChangeSecretBackendResult struct {
	Results []error
}

ChangeSecretBackendResult is the result for ChangeSecretBackend.

func (ChangeSecretBackendResult) ErrorCount

func (r ChangeSecretBackendResult) ErrorCount() (out int)

ErrorCount returns the number of errors in the result.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the api client for the SecretsDrain facade.

func NewClient

func NewClient(facade base.FacadeCaller) *Client

NewClient creates a secrets api client.

func (*Client) ChangeSecretBackend

func (c *Client) ChangeSecretBackend(ctx context.Context, metaRevisions []ChangeSecretBackendArg) (ChangeSecretBackendResult, error)

ChangeSecretBackend updates the backend for the specified secret after migration done.

func (*Client) GetSecretsToDrain

func (c *Client) GetSecretsToDrain(ctx context.Context) ([]coresecrets.SecretMetadataForDrain, error)

GetSecretsToDrain returns metadata for the secrets that need to be drained.

func (*Client) WatchSecretBackendChanged

func (c *Client) WatchSecretBackendChanged(ctx context.Context) (watcher.NotifyWatcher, error)

WatchSecretBackendChanged sets up a watcher to notify of changes to the secret backend.

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