secret

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	Name string `log:"Name"`
}

Secret - Represents a container for secret versions

type SecretAccessResponse

type SecretAccessResponse struct {
	SecretVersion *SecretVersion
	Value         []byte
}

SecretAccessResponse - Return value for a secret access request

type SecretPutResponse

type SecretPutResponse struct {
	SecretVersion *SecretVersion
}

SecretPutResponse - Return value for a secret put request

type SecretService

type SecretService interface {
	// Put - Creates a new version for a given secret
	Put(*Secret, []byte) (*SecretPutResponse, error)
	// Access - Retrieves the value for a given secret version
	Access(*SecretVersion) (*SecretAccessResponse, error)
}

type SecretVersion

type SecretVersion struct {
	Secret *Secret `log:"Secret"`

	// Version - the specific secret version this represents
	// Specifying "latest" will always retrieve the latest version of the secret
	Version string `log:"Version"`
}

SecretVersion - A version of a secret

type UnimplementedSecretPlugin

type UnimplementedSecretPlugin struct {
	SecretService
}

func (*UnimplementedSecretPlugin) Access

func (*UnimplementedSecretPlugin) Put

func (*UnimplementedSecretPlugin) Put(secret *Secret, value []byte) (*SecretPutResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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