kuma

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

README

vault-plugin-kuma

Hashicorp Vault Secrets Engine to mage Kuma Tokens

Documentation

Index

Constants

View Source
const (
	ProxyTypeDataplane = "dataplane"
	ProxyTypeIngress   = "ingress"
)

Variables

View Source
var GlobalSecretNotFound = fmt.Errorf("Global Secret Not Found")
View Source
var SecretNotFound = fmt.Errorf("Secret Not Found")

Functions

func Factory

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

Factory configures and returns Kuma secrets backends.

Types

type GlobalSecret

type GlobalSecret struct {
	Type string `json:"type"`
	Name string `json:"name"`
	Data string `json:"data"`
}

type GlobalSecretsClient

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

func NewGlobalSecretsClient

func NewGlobalSecretsClient(c util_http.Client) *GlobalSecretsClient

func (*GlobalSecretsClient) Get

func (sc *GlobalSecretsClient) Get(name string) (string, error)

Get a Global Secret store and return the base64encoded data

func (*GlobalSecretsClient) Put

func (sc *GlobalSecretsClient) Put(name, data string) error

type ProxyType

type ProxyType string

type RevocationListSecret

type RevocationListSecret struct {
	Tokens []RevocationToken `json:"tokens"`
}

type RevocationToken

type RevocationToken struct {
	JTI    string `json:"jti"`
	Mesh   string `json:"mesh"`
	Expiry int64  `json:"expiry"`
	Type   string `json:"type"`
}

type Secret

type Secret struct {
	Type string `json:"type"`
	Name string `json:"name"`
	Mesh string `json:"mesh"`
	Data string `json:"data"`
}

type SecretsClient

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

func NewSecretsClient

func NewSecretsClient(c util_http.Client) *SecretsClient

func (*SecretsClient) Get

func (sc *SecretsClient) Get(mesh, name string) (string, error)

Get a Secret store and return the base64encoded data

func (*SecretsClient) Put

func (sc *SecretsClient) Put(mesh, name, data string) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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