secret

package
v0.16.0-rc.18 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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