kvengine

package
v1.1.27 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	UpdateKvEngine(engine Entity) error
	ListKvSecrets(engine core.MountPathEntity) ([]core.SecretPath, error)
	ReadKvEngine(engine core.MountPathEntity) (*KvEngine, error)
}

func NewAPI

func NewAPI(coreAPI core.API, mountAPI mount.API) API

type Config

type Config struct {
	MaxVersions        int    `json:"max_versions"`
	CasRequired        bool   `json:"cas_required"`
	DeleteVersionAfter string `json:"delete_version_after"`
}

type Entity

type Entity interface {
	core.MountPathEntity
	GetKvEngineConfig() (*Config, error)
}

type KvEngine

type KvEngine struct {
	Path   string
	Config *Config
}

func (*KvEngine) GetKvEngineConfig

func (k *KvEngine) GetKvEngineConfig() (*Config, error)

func (*KvEngine) GetMountPath

func (k *KvEngine) GetMountPath() (string, error)

Jump to

Keyboard shortcuts

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