cloud

package
v3.116.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package cloud implements support for a generic cloud secret manager.

Index

Constants

View Source
const Type = "cloud"

Type is the type of secrets managed by this secrets provider

Variables

This section is empty.

Functions

func EditProjectStack added in v3.94.0

func EditProjectStack(info *workspace.ProjectStack, state json.RawMessage) error

func NewCloudSecretsManager

func NewCloudSecretsManager(info *workspace.ProjectStack,
	secretsProvider string, rotateSecretsProvider bool,
) (secrets.Manager, error)

func NewCloudSecretsManagerFromState

func NewCloudSecretsManagerFromState(state json.RawMessage) (secrets.Manager, error)

NewCloudSecretsManagerFromState deserialize configuration from state and returns a secrets manager that uses the target cloud key management service to encrypt/decrypt a data key used for envelope encryption of secrets values.

Types

type Manager

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

Manager is the secrets.Manager implementation for cloud key management services

func (*Manager) Decrypter

func (m *Manager) Decrypter() (config.Decrypter, error)

func (*Manager) Encrypter

func (m *Manager) Encrypter() (config.Encrypter, error)

func (*Manager) State

func (m *Manager) State() json.RawMessage

func (*Manager) Type

func (m *Manager) Type() string

Jump to

Keyboard shortcuts

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