secretbackendmanager

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: 13 Imported by: 0

Documentation

Overview

Package secretbackendmanager provides the backend implementation for the secretbackendmanager facade.

Index

Constants

This section is empty.

Variables

View Source
var (
	GetProvider = provider.Provider
)

For testing.

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type BackendRotate

type BackendRotate interface {
	WatchSecretBackendRotationChanges() (state.SecretBackendRotateWatcher, error)
}

BackendRotate instances provide secret backend watcher apis.

type BackendState

type BackendState interface {
	GetSecretBackendByID(ID string) (*secrets.SecretBackend, error)
	UpdateSecretBackend(params state.UpdateSecretBackendParams) error
	SecretBackendRotated(ID string, next time.Time) error
}

BackendState instances provide secret backend apis.

type SecretBackendsManagerAPI

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

SecretBackendsManagerAPI is the implementation for the SecretsManager facade.

func NewSecretBackendsManagerAPI

func NewSecretBackendsManagerAPI(context facade.Context) (*SecretBackendsManagerAPI, error)

NewSecretBackendsManagerAPI creates a SecretBackendsManagerAPI.

func (*SecretBackendsManagerAPI) RotateBackendTokens

RotateBackendTokens rotates the tokens for the specified backends.

func (*SecretBackendsManagerAPI) WatchSecretBackendsRotateChanges

func (s *SecretBackendsManagerAPI) WatchSecretBackendsRotateChanges() (params.SecretBackendRotateWatchResult, error)

WatchSecretBackendsRotateChanges sets up a watcher to notify of changes to secret backend rotations.

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