vault

package
v0.0.0-...-7404c28 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package vault NOTES

Index

Constants

View Source
const (
	// MountPath mount path
	MountPath = "bk_bscp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set interface {
	// IsMountPathExists 挂载目录是否存在
	IsMountPathExists(path string) (bool, error)
	// CreateMountPath 创建挂载目录
	CreateMountPath(path string, config *vault.MountInput) error
	// UpsertKv 创建|更新kv
	UpsertKv(kit *kit.Kit, opt *types.UpsertKvOption) (int, error)
	// GetLastKv 获取最新的kv
	GetLastKv(kit *kit.Kit, opt *types.GetLastKvOpt) (kvType table.DataType, value string, err error)
	// GetKvByVersion 根据版本获取kv
	GetKvByVersion(kit *kit.Kit, opt *types.GetKvByVersion) (kvType table.DataType, value string, err error)
	// DeleteKv deletes specified key-value data from Vault.
	DeleteKv(kit *kit.Kit, opt *types.DeleteKvOpt) error
	// CreateRKv create released kv
	CreateRKv(kit *kit.Kit, opt *types.CreateReleasedKvOption) (int, error)
	// GetRKv get released kv
	GetRKv(kit *kit.Kit, opt *types.GetRKvOption) (kvType table.DataType, value string, err error)
}

Set ...

func NewSet

func NewSet(opt cc.Vault) (Set, error)

NewSet ...

Jump to

Keyboard shortcuts

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