store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient

func SetClient(factory Factory)

SetClient set the iam store client.

Types

type Factory

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

Factory defines the iam platform storage interface.

func Client

func Client() Factory

Client return the store client instance.

type PolicyStore

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

PolicyStore defines the policy storage interface.

type SecretStore

type SecretStore interface {
	// List(ctx context.Context, username string, opts metav1.ListOptions) (*v1.SecretList, error)
	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