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 ¶
Types ¶
type Factory ¶ added in v1.0.5
type Factory interface { Policies() PolicyStore Secrets() SecretStore }
Factory defines the iam platform storage interface.
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
func (m *MockPolicyStore) EXPECT() *MockPolicyStoreMockRecorder
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
func (mr *MockPolicyStoreMockRecorder) List() *gomock.Call
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
func (m *MockSecretStore) EXPECT() *MockSecretStoreMockRecorder
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
func (mr *MockSecretStoreMockRecorder) List() *gomock.Call
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.