Documentation ¶
Overview ¶
Package idp is a generated GoMock package.
Index ¶
- Variables
- type Idp
- type IdpKind
- type MockIdp
- func (m *MockIdp) EXPECT() *MockIdpMockRecorder
- func (m *MockIdp) GetAllGroupMembers(ctx context.Context, groups []*schema.Group, users []*schema.User) ([]*schema.GroupMember, error)
- func (m *MockIdp) GetGroupMembers(ctx context.Context, group *schema.Group, user *schema.User) ([]*schema.GroupMember, error)
- func (m *MockIdp) GetGroups(ctx context.Context) ([]*schema.Group, error)
- func (m *MockIdp) GetName() string
- func (m *MockIdp) GetProjectMembers(ctx context.Context, project *schema.Project, user *schema.User) ([]*schema.ProjectMember, error)
- func (m *MockIdp) GetProjects(ctx context.Context) ([]*schema.Project, error)
- func (m *MockIdp) GetStaticUserById(id string) (*schema.User, error)
- func (m *MockIdp) GetUsers(ctx context.Context) ([]*schema.User, error)
- func (m *MockIdp) Kind() IdpKind
- func (m *MockIdp) SetApiServerUrl(url string)
- func (m *MockIdp) SetName(name string)
- func (m *MockIdp) SetSecretProvider(provider *secret_provider.SecretProvider)
- type MockIdpMockRecorder
- func (mr *MockIdpMockRecorder) GetAllGroupMembers(ctx, groups, users interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) GetGroupMembers(ctx, group, user interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) GetGroups(ctx interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) GetName() *gomock.Call
- func (mr *MockIdpMockRecorder) GetProjectMembers(ctx, project, user interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) GetProjects(ctx interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) GetStaticUserById(id interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) GetUsers(ctx interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) Kind() *gomock.Call
- func (mr *MockIdpMockRecorder) SetApiServerUrl(url interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) SetName(name interface{}) *gomock.Call
- func (mr *MockIdpMockRecorder) SetSecretProvider(provider interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var (
IdpKindMapping = make(map[string]Idp, 0)
)
Functions ¶
This section is empty.
Types ¶
type Idp ¶
type Idp interface { Kind() IdpKind SetName(name string) GetName() string SetApiServerUrl(url string) SetSecretProvider(provider *secret_provider.SecretProvider) GetStaticUserById(id string) (*schema.User, error) GetUsers(ctx context.Context) ([]*schema.User, error) GetGroups(ctx context.Context) ([]*schema.Group, error) GetProjects(ctx context.Context) ([]*schema.Project, error) GetAllGroupMembers(ctx context.Context, groups []*schema.Group, users []*schema.User) ([]*schema.GroupMember, error) GetGroupMembers(ctx context.Context, group *schema.Group, user *schema.User) ([]*schema.GroupMember, error) GetProjectMembers(ctx context.Context, project *schema.Project, user *schema.User) ([]*schema.ProjectMember, error) }
type MockIdp ¶
type MockIdp struct {
// contains filtered or unexported fields
}
MockIdp is a mock of Idp interface.
func NewMockIdp ¶
func NewMockIdp(ctrl *gomock.Controller) *MockIdp
NewMockIdp creates a new mock instance.
func (*MockIdp) EXPECT ¶
func (m *MockIdp) EXPECT() *MockIdpMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIdp) GetAllGroupMembers ¶
func (m *MockIdp) GetAllGroupMembers(ctx context.Context, groups []*schema.Group, users []*schema.User) ([]*schema.GroupMember, error)
GetAllGroupMembers mocks base method.
func (*MockIdp) GetGroupMembers ¶
func (m *MockIdp) GetGroupMembers(ctx context.Context, group *schema.Group, user *schema.User) ([]*schema.GroupMember, error)
GetGroupMembers mocks base method.
func (*MockIdp) GetProjectMembers ¶
func (m *MockIdp) GetProjectMembers(ctx context.Context, project *schema.Project, user *schema.User) ([]*schema.ProjectMember, error)
GetProjectMembers mocks base method.
func (*MockIdp) GetProjects ¶
GetProjects mocks base method.
func (*MockIdp) GetStaticUserById ¶
GetStaticUserById mocks base method.
func (*MockIdp) SetApiServerUrl ¶
SetApiServerUrl mocks base method.
func (*MockIdp) SetSecretProvider ¶
func (m *MockIdp) SetSecretProvider(provider *secret_provider.SecretProvider)
SetSecretProvider mocks base method.
type MockIdpMockRecorder ¶
type MockIdpMockRecorder struct {
// contains filtered or unexported fields
}
MockIdpMockRecorder is the mock recorder for MockIdp.
func (*MockIdpMockRecorder) GetAllGroupMembers ¶
func (mr *MockIdpMockRecorder) GetAllGroupMembers(ctx, groups, users interface{}) *gomock.Call
GetAllGroupMembers indicates an expected call of GetAllGroupMembers.
func (*MockIdpMockRecorder) GetGroupMembers ¶
func (mr *MockIdpMockRecorder) GetGroupMembers(ctx, group, user interface{}) *gomock.Call
GetGroupMembers indicates an expected call of GetGroupMembers.
func (*MockIdpMockRecorder) GetGroups ¶
func (mr *MockIdpMockRecorder) GetGroups(ctx interface{}) *gomock.Call
GetGroups indicates an expected call of GetGroups.
func (*MockIdpMockRecorder) GetName ¶
func (mr *MockIdpMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockIdpMockRecorder) GetProjectMembers ¶
func (mr *MockIdpMockRecorder) GetProjectMembers(ctx, project, user interface{}) *gomock.Call
GetProjectMembers indicates an expected call of GetProjectMembers.
func (*MockIdpMockRecorder) GetProjects ¶
func (mr *MockIdpMockRecorder) GetProjects(ctx interface{}) *gomock.Call
GetProjects indicates an expected call of GetProjects.
func (*MockIdpMockRecorder) GetStaticUserById ¶
func (mr *MockIdpMockRecorder) GetStaticUserById(id interface{}) *gomock.Call
GetStaticUserById indicates an expected call of GetStaticUserById.
func (*MockIdpMockRecorder) GetUsers ¶
func (mr *MockIdpMockRecorder) GetUsers(ctx interface{}) *gomock.Call
GetUsers indicates an expected call of GetUsers.
func (*MockIdpMockRecorder) Kind ¶
func (mr *MockIdpMockRecorder) Kind() *gomock.Call
Kind indicates an expected call of Kind.
func (*MockIdpMockRecorder) SetApiServerUrl ¶
func (mr *MockIdpMockRecorder) SetApiServerUrl(url interface{}) *gomock.Call
SetApiServerUrl indicates an expected call of SetApiServerUrl.
func (*MockIdpMockRecorder) SetName ¶
func (mr *MockIdpMockRecorder) SetName(name interface{}) *gomock.Call
SetName indicates an expected call of SetName.
func (*MockIdpMockRecorder) SetSecretProvider ¶
func (mr *MockIdpMockRecorder) SetSecretProvider(provider interface{}) *gomock.Call
SetSecretProvider indicates an expected call of SetSecretProvider.