store

package
v0.0.0-...-4f9d474 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetStore

func SetStore(storeIns IStore)

SetStore 设置 Store 实例.

Types

type IStore

type IStore interface {
	Policies() PolicyStore
	Secrets() SecretStore
}

IStore 定义了 Store 层接口.

func Store

func Store() IStore

Store 获取 Store 实例.

type PolicyStore

type PolicyStore interface {
	List() (map[string][]*ladon.DefaultPolicy, error)
}

PolicyStore defines the policy storage interface.

type SecretStore

type SecretStore interface {
	List() (map[string]*pb.SecretInfo, error)
}

SecretStore defines the secret storage interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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