vault: github.com/hashicorp/vault/vendor/github.com/hashicorp/vault-plugin-secrets-gcpkms Index | Files

package gcpkms

import "github.com/hashicorp/vault/vendor/github.com/hashicorp/vault-plugin-secrets-gcpkms"

Index

Package Files

backend.go config.go helpers.go key.go path_config.go path_decrypt.go path_encrypt.go path_keys.go path_keys_config.go path_keys_deregister.go path_keys_register.go path_keys_rotate.go path_keys_trim.go path_keys_verify.go path_pubkey.go path_reencrypt.go path_sign.go

Variables

var (
    ErrKeyNotFound = errors.New("encryption key not found")
)

func Backend Uses

func Backend() *backend

Backend returns a configured instance of the backend.

func Factory Uses

func Factory(ctx context.Context, c *logical.BackendConfig) (logical.Backend, error)

Factory returns a configured instance of the backend.

type Config Uses

type Config struct {
    Credentials string   `json:"credentials"`
    Scopes      []string `json:"scopes"`
}

Config is the stored configuration.

func DefaultConfig Uses

func DefaultConfig() *Config

DefaultConfig returns a config with the default values.

func (*Config) Update Uses

func (c *Config) Update(d *framework.FieldData) (bool, error)

Update updates the configuration from the given field data.

type Key Uses

type Key struct {
    // Name is the name of the key in Vault.
    Name string `json:"name"`

    // CryptoKeyID is the full resource ID of the key on GCP.
    CryptoKeyID string `json:"crypto_key_id"`

    // MinVersion is the minimum crypto key version to allow. If left unset or set
    // to a negative number, all versions are allowed.
    MinVersion int `json:"min_version"`

    // MaxVersion is the maximum crypto key version to allow. If left unset or set
    // to a negative number, all versions are allowed.
    MaxVersion int `json:"max_version"`
}

Key represents a key from the storage backend.

Package gcpkms imports 35 packages (graph). Updated 2019-09-11. Refresh now. Tools for package owners.