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 ...
Click to show internal directories.
Click to hide internal directories.