secretsdrain

package
v0.0.0-...-439fd0a Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

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(metaRevisions []ChangeSecretBackendArg) (ChangeSecretBackendResult, error)

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

func (*Client) GetSecretsToDrain

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

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

func (*Client) WatchSecretBackendChanged

func (c *Client) WatchSecretBackendChanged() (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