api

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorCannotRevert error = errors.New("cannot rollback version 1 of secret")
View Source
var ErrorSecretAlreadyExists error = errors.New("secret already exists")
View Source
var ErrorSecretNotFound error = errors.New("secret not found")

Functions

This section is empty.

Types

type CreateSecretRequest

type CreateSecretRequest struct {
	Key   string
	Value SecretValue
}

type DeleteSecretRequest

type DeleteSecretRequest struct {
	Key string
}

type HealthResponse

type HealthResponse struct {
	Status string
}

type ListSecretResponse

type ListSecretResponse struct {
	Key      string
	Versions []SecretVersion
}

type ReadSecretRequest

type ReadSecretRequest struct {
	Key string
}

type RevertSecretRequest

type RevertSecretRequest struct {
	Key string
}

type Secret

type Secret struct {
	Key     string
	Value   SecretValue
	Version SecretVersion
}

type SecretValue

type SecretValue []byte

type SecretVersion

type SecretVersion uint16

type UpdateSecretRequest

type UpdateSecretRequest struct {
	Key   string
	Value SecretValue
}

Jump to

Keyboard shortcuts

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