idp

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package idp is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
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)
}

func NewIdp

func NewIdp(idpKind string) (Idp, error)

type IdpKind

type IdpKind string
const (
	GitlabIdpKind IdpKind = "gitlab"
)

func (IdpKind) Tostring

func (i IdpKind) Tostring() string

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) GetGroups

func (m *MockIdp) GetGroups(ctx context.Context) ([]*schema.Group, error)

GetGroups mocks base method.

func (*MockIdp) GetName

func (m *MockIdp) GetName() string

GetName 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

func (m *MockIdp) GetProjects(ctx context.Context) ([]*schema.Project, error)

GetProjects mocks base method.

func (*MockIdp) GetStaticUserById

func (m *MockIdp) GetStaticUserById(id string) (*schema.User, error)

GetStaticUserById mocks base method.

func (*MockIdp) GetUsers

func (m *MockIdp) GetUsers(ctx context.Context) ([]*schema.User, error)

GetUsers mocks base method.

func (*MockIdp) Kind

func (m *MockIdp) Kind() IdpKind

Kind mocks base method.

func (*MockIdp) SetApiServerUrl

func (m *MockIdp) SetApiServerUrl(url string)

SetApiServerUrl mocks base method.

func (*MockIdp) SetName

func (m *MockIdp) SetName(name string)

SetName 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.

Jump to

Keyboard shortcuts

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