store

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 4 Imported by: 0

Documentation

Overview

Package store defines the storage interface for authzserver.

Package store is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient added in v1.0.5

func SetClient(factory Factory)

SetClient set the iam store client.

Types

type Factory added in v1.0.5

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

Factory defines the iam platform storage interface.

func Client added in v1.0.5

func Client() Factory

Client return the store client instance.

type MockFactory added in v1.0.5

type MockFactory struct {
	// contains filtered or unexported fields
}

MockFactory is a mock of Factory interface.

func NewMockFactory added in v1.0.5

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance.

func (*MockFactory) EXPECT added in v1.0.5

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFactory) Policies added in v1.0.5

func (m *MockFactory) Policies() PolicyStore

Policies mocks base method.

func (*MockFactory) Secrets added in v1.0.5

func (m *MockFactory) Secrets() SecretStore

Secrets mocks base method.

type MockFactoryMockRecorder added in v1.0.5

type MockFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockFactoryMockRecorder is the mock recorder for MockFactory.

func (*MockFactoryMockRecorder) Policies added in v1.0.5

func (mr *MockFactoryMockRecorder) Policies() *gomock.Call

Policies indicates an expected call of Policies.

func (*MockFactoryMockRecorder) Secrets added in v1.0.5

func (mr *MockFactoryMockRecorder) Secrets() *gomock.Call

Secrets indicates an expected call of Secrets.

type MockPolicyStore added in v1.0.5

type MockPolicyStore struct {
	// contains filtered or unexported fields
}

MockPolicyStore is a mock of PolicyStore interface.

func NewMockPolicyStore added in v1.0.5

func NewMockPolicyStore(ctrl *gomock.Controller) *MockPolicyStore

NewMockPolicyStore creates a new mock instance.

func (*MockPolicyStore) EXPECT added in v1.0.5

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPolicyStore) List added in v1.0.5

func (m *MockPolicyStore) List() (map[string][]*ladon.DefaultPolicy, error)

List mocks base method.

type MockPolicyStoreMockRecorder added in v1.0.5

type MockPolicyStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockPolicyStoreMockRecorder is the mock recorder for MockPolicyStore.

func (*MockPolicyStoreMockRecorder) List added in v1.0.5

List indicates an expected call of List.

type MockSecretStore added in v1.0.5

type MockSecretStore struct {
	// contains filtered or unexported fields
}

MockSecretStore is a mock of SecretStore interface.

func NewMockSecretStore added in v1.0.5

func NewMockSecretStore(ctrl *gomock.Controller) *MockSecretStore

NewMockSecretStore creates a new mock instance.

func (*MockSecretStore) EXPECT added in v1.0.5

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSecretStore) List added in v1.0.5

func (m *MockSecretStore) List() (map[string]*v1.SecretInfo, error)

List mocks base method.

type MockSecretStoreMockRecorder added in v1.0.5

type MockSecretStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockSecretStoreMockRecorder is the mock recorder for MockSecretStore.

func (*MockSecretStoreMockRecorder) List added in v1.0.5

List indicates an expected call of List.

type PolicyStore added in v1.0.5

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

PolicyStore defines the policy storage interface.

type SecretStore added in v1.0.5

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