store

package
v0.0.0-...-455e706 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFactory

func SetFactory(f Factory)

Types

type Factory

type Factory interface {
	Policies() PolicyStore // 策略相关
	Secrets() SecretStore  // 密钥相关
}

工厂定义了 IAM 平台存储接口

func Get

func Get() Factory

type PolicyStore

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

权限

type SecretStore

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

通过 grpc 得到 SecretInfo的列表

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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