target

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: 20 Imported by: 0

Documentation

Overview

Package target is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	AppKindMapping = make(map[string]TargetApp, 0)
)

Functions

This section is empty.

Types

type MockTargetApp

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

MockTargetApp is a mock of TargetApp interface.

func NewMockTargetApp

func NewMockTargetApp(ctrl *gomock.Controller) *MockTargetApp

NewMockTargetApp creates a new mock instance.

func (*MockTargetApp) CompareGroups

func (m *MockTargetApp) CompareGroups(idpGroups, targetAppGroups []*schema.Group) ([]*schema.Group, []*schema.Group)

CompareGroups mocks base method.

func (*MockTargetApp) CompareProjects

func (m *MockTargetApp) CompareProjects(idpProjects, targetAppProjects []*schema.Project) ([]*schema.Project, []*schema.Project)

CompareProjects mocks base method.

func (*MockTargetApp) CompareUsers

func (m *MockTargetApp) CompareUsers(idpUsers, targetAppUsers []*schema.User) ([]*schema.User, []*schema.User)

CompareUsers mocks base method.

func (*MockTargetApp) CreateGroup

func (m *MockTargetApp) CreateGroup(ctx context.Context, group *schema.Group) error

CreateGroup mocks base method.

func (*MockTargetApp) CreateGroupMember

func (m *MockTargetApp) CreateGroupMember(ctx context.Context, groupMember *schema.GroupMember) error

CreateGroupMember mocks base method.

func (*MockTargetApp) CreateProject

func (m *MockTargetApp) CreateProject(ctx context.Context, project *schema.Project) error

CreateProject mocks base method.

func (*MockTargetApp) CreateProjectMember

func (m *MockTargetApp) CreateProjectMember(ctx context.Context, projectMember *schema.ProjectMember) error

CreateProjectMember mocks base method.

func (*MockTargetApp) CreateUser

func (m *MockTargetApp) CreateUser(ctx context.Context, user *schema.User) error

CreateUser mocks base method.

func (*MockTargetApp) DeleteGroupById

func (m *MockTargetApp) DeleteGroupById(ctx context.Context, id string) error

DeleteGroupById mocks base method.

func (*MockTargetApp) DeleteGroupMemberById

func (m *MockTargetApp) DeleteGroupMemberById(ctx context.Context, id string) error

DeleteGroupMemberById mocks base method.

func (*MockTargetApp) DeleteProjectById

func (m *MockTargetApp) DeleteProjectById(ctx context.Context, id string) error

DeleteProjectById mocks base method.

func (*MockTargetApp) DeleteProjectMemberById

func (m *MockTargetApp) DeleteProjectMemberById(ctx context.Context, id string) error

DeleteProjectMemberById mocks base method.

func (*MockTargetApp) DeleteUserById

func (m *MockTargetApp) DeleteUserById(ctx context.Context, id string) error

DeleteUserById mocks base method.

func (*MockTargetApp) EXPECT

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

func (*MockTargetApp) GenerateIdpGroupIdentity

func (m *MockTargetApp) GenerateIdpGroupIdentity(groupKind, Identity string) string

GenerateIdpGroupIdentity mocks base method.

func (*MockTargetApp) GenerateIdpProjectIdentity

func (m *MockTargetApp) GenerateIdpProjectIdentity(Identity string) string

GenerateIdpProjectIdentity mocks base method.

func (*MockTargetApp) GenerateIdpUserIdentity

func (m *MockTargetApp) GenerateIdpUserIdentity(Identity string) string

GenerateIdpUserIdentity mocks base method.

func (*MockTargetApp) GetGroupMembers

func (m *MockTargetApp) GetGroupMembers(ctx context.Context) ([]*schema.GroupMember, error)

GetGroupMembers mocks base method.

func (*MockTargetApp) GetGroups

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

GetGroups mocks base method.

func (*MockTargetApp) GetName

func (m *MockTargetApp) GetName() string

GetName mocks base method.

func (*MockTargetApp) GetProjectMembers

func (m *MockTargetApp) GetProjectMembers(ctx context.Context, project *schema.Project, user *schema.User) ([]*schema.ProjectMember, error)

GetProjectMembers mocks base method.

func (*MockTargetApp) GetProjects

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

GetProjects mocks base method.

func (*MockTargetApp) GetUsers

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

GetUsers mocks base method.

func (*MockTargetApp) GroupBindingProjects

func (m *MockTargetApp) GroupBindingProjects(ctx context.Context, projects []*schema.Project) error

GroupBindingProjects mocks base method.

func (*MockTargetApp) IdentityKey

func (m *MockTargetApp) IdentityKey() TargetAppKindName

IdentityKey mocks base method.

func (*MockTargetApp) Kind

func (m *MockTargetApp) Kind() TargetAppKind

Kind mocks base method.

func (*MockTargetApp) SetApiServerUrl

func (m *MockTargetApp) SetApiServerUrl(url string)

SetApiServerUrl mocks base method.

func (*MockTargetApp) SetIdp

func (m *MockTargetApp) SetIdp(arg0 idp.Idp)

SetIdp mocks base method.

func (*MockTargetApp) SetName

func (m *MockTargetApp) SetName(name string)

SetName mocks base method.

func (*MockTargetApp) SetSecretProvider

func (m *MockTargetApp) SetSecretProvider(provider *secret_provider.SecretProvider)

SetSecretProvider mocks base method.

func (*MockTargetApp) SyncGroupMember

func (m *MockTargetApp) SyncGroupMember(ctx context.Context, idpGroupMembers, targetAppGroupMembers []*schema.GroupMember) error

SyncGroupMember mocks base method.

func (*MockTargetApp) UpdateGroup

func (m *MockTargetApp) UpdateGroup(ctx context.Context, id string, group *schema.Group) error

UpdateGroup mocks base method.

func (*MockTargetApp) UpdateGroupMember

func (m *MockTargetApp) UpdateGroupMember(ctx context.Context, id string, groupMember *schema.GroupMember) error

UpdateGroupMember mocks base method.

func (*MockTargetApp) UpdateProject

func (m *MockTargetApp) UpdateProject(ctx context.Context, id string, project *schema.Project) error

UpdateProject mocks base method.

func (*MockTargetApp) UpdateProjectMember

func (m *MockTargetApp) UpdateProjectMember(ctx context.Context, id string, projectMember *schema.ProjectMember) error

UpdateProjectMember mocks base method.

func (*MockTargetApp) UpdateUser

func (m *MockTargetApp) UpdateUser(ctx context.Context, id string, user *schema.User) error

UpdateUser mocks base method.

func (*MockTargetApp) WrappingUpAfterGroupSync

func (m *MockTargetApp) WrappingUpAfterGroupSync(ctx context.Context) error

WrappingUpAfterGroupSync mocks base method.

type MockTargetAppMockRecorder

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

MockTargetAppMockRecorder is the mock recorder for MockTargetApp.

func (*MockTargetAppMockRecorder) CompareGroups

func (mr *MockTargetAppMockRecorder) CompareGroups(idpGroups, targetAppGroups interface{}) *gomock.Call

CompareGroups indicates an expected call of CompareGroups.

func (*MockTargetAppMockRecorder) CompareProjects

func (mr *MockTargetAppMockRecorder) CompareProjects(idpProjects, targetAppProjects interface{}) *gomock.Call

CompareProjects indicates an expected call of CompareProjects.

func (*MockTargetAppMockRecorder) CompareUsers

func (mr *MockTargetAppMockRecorder) CompareUsers(idpUsers, targetAppUsers interface{}) *gomock.Call

CompareUsers indicates an expected call of CompareUsers.

func (*MockTargetAppMockRecorder) CreateGroup

func (mr *MockTargetAppMockRecorder) CreateGroup(ctx, group interface{}) *gomock.Call

CreateGroup indicates an expected call of CreateGroup.

func (*MockTargetAppMockRecorder) CreateGroupMember

func (mr *MockTargetAppMockRecorder) CreateGroupMember(ctx, groupMember interface{}) *gomock.Call

CreateGroupMember indicates an expected call of CreateGroupMember.

func (*MockTargetAppMockRecorder) CreateProject

func (mr *MockTargetAppMockRecorder) CreateProject(ctx, project interface{}) *gomock.Call

CreateProject indicates an expected call of CreateProject.

func (*MockTargetAppMockRecorder) CreateProjectMember

func (mr *MockTargetAppMockRecorder) CreateProjectMember(ctx, projectMember interface{}) *gomock.Call

CreateProjectMember indicates an expected call of CreateProjectMember.

func (*MockTargetAppMockRecorder) CreateUser

func (mr *MockTargetAppMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockTargetAppMockRecorder) DeleteGroupById

func (mr *MockTargetAppMockRecorder) DeleteGroupById(ctx, id interface{}) *gomock.Call

DeleteGroupById indicates an expected call of DeleteGroupById.

func (*MockTargetAppMockRecorder) DeleteGroupMemberById

func (mr *MockTargetAppMockRecorder) DeleteGroupMemberById(ctx, id interface{}) *gomock.Call

DeleteGroupMemberById indicates an expected call of DeleteGroupMemberById.

func (*MockTargetAppMockRecorder) DeleteProjectById

func (mr *MockTargetAppMockRecorder) DeleteProjectById(ctx, id interface{}) *gomock.Call

DeleteProjectById indicates an expected call of DeleteProjectById.

func (*MockTargetAppMockRecorder) DeleteProjectMemberById

func (mr *MockTargetAppMockRecorder) DeleteProjectMemberById(ctx, id interface{}) *gomock.Call

DeleteProjectMemberById indicates an expected call of DeleteProjectMemberById.

func (*MockTargetAppMockRecorder) DeleteUserById

func (mr *MockTargetAppMockRecorder) DeleteUserById(ctx, id interface{}) *gomock.Call

DeleteUserById indicates an expected call of DeleteUserById.

func (*MockTargetAppMockRecorder) GenerateIdpGroupIdentity

func (mr *MockTargetAppMockRecorder) GenerateIdpGroupIdentity(groupKind, Identity interface{}) *gomock.Call

GenerateIdpGroupIdentity indicates an expected call of GenerateIdpGroupIdentity.

func (*MockTargetAppMockRecorder) GenerateIdpProjectIdentity

func (mr *MockTargetAppMockRecorder) GenerateIdpProjectIdentity(Identity interface{}) *gomock.Call

GenerateIdpProjectIdentity indicates an expected call of GenerateIdpProjectIdentity.

func (*MockTargetAppMockRecorder) GenerateIdpUserIdentity

func (mr *MockTargetAppMockRecorder) GenerateIdpUserIdentity(Identity interface{}) *gomock.Call

GenerateIdpUserIdentity indicates an expected call of GenerateIdpUserIdentity.

func (*MockTargetAppMockRecorder) GetGroupMembers

func (mr *MockTargetAppMockRecorder) GetGroupMembers(ctx interface{}) *gomock.Call

GetGroupMembers indicates an expected call of GetGroupMembers.

func (*MockTargetAppMockRecorder) GetGroups

func (mr *MockTargetAppMockRecorder) GetGroups(ctx interface{}) *gomock.Call

GetGroups indicates an expected call of GetGroups.

func (*MockTargetAppMockRecorder) GetName

func (mr *MockTargetAppMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockTargetAppMockRecorder) GetProjectMembers

func (mr *MockTargetAppMockRecorder) GetProjectMembers(ctx, project, user interface{}) *gomock.Call

GetProjectMembers indicates an expected call of GetProjectMembers.

func (*MockTargetAppMockRecorder) GetProjects

func (mr *MockTargetAppMockRecorder) GetProjects(ctx interface{}) *gomock.Call

GetProjects indicates an expected call of GetProjects.

func (*MockTargetAppMockRecorder) GetUsers

func (mr *MockTargetAppMockRecorder) GetUsers(ctx interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers.

func (*MockTargetAppMockRecorder) GroupBindingProjects

func (mr *MockTargetAppMockRecorder) GroupBindingProjects(ctx, projects interface{}) *gomock.Call

GroupBindingProjects indicates an expected call of GroupBindingProjects.

func (*MockTargetAppMockRecorder) IdentityKey

func (mr *MockTargetAppMockRecorder) IdentityKey() *gomock.Call

IdentityKey indicates an expected call of IdentityKey.

func (*MockTargetAppMockRecorder) Kind

Kind indicates an expected call of Kind.

func (*MockTargetAppMockRecorder) SetApiServerUrl

func (mr *MockTargetAppMockRecorder) SetApiServerUrl(url interface{}) *gomock.Call

SetApiServerUrl indicates an expected call of SetApiServerUrl.

func (*MockTargetAppMockRecorder) SetIdp

func (mr *MockTargetAppMockRecorder) SetIdp(arg0 interface{}) *gomock.Call

SetIdp indicates an expected call of SetIdp.

func (*MockTargetAppMockRecorder) SetName

func (mr *MockTargetAppMockRecorder) SetName(name interface{}) *gomock.Call

SetName indicates an expected call of SetName.

func (*MockTargetAppMockRecorder) SetSecretProvider

func (mr *MockTargetAppMockRecorder) SetSecretProvider(provider interface{}) *gomock.Call

SetSecretProvider indicates an expected call of SetSecretProvider.

func (*MockTargetAppMockRecorder) SyncGroupMember

func (mr *MockTargetAppMockRecorder) SyncGroupMember(ctx, idpGroupMembers, targetAppGroupMembers interface{}) *gomock.Call

SyncGroupMember indicates an expected call of SyncGroupMember.

func (*MockTargetAppMockRecorder) UpdateGroup

func (mr *MockTargetAppMockRecorder) UpdateGroup(ctx, id, group interface{}) *gomock.Call

UpdateGroup indicates an expected call of UpdateGroup.

func (*MockTargetAppMockRecorder) UpdateGroupMember

func (mr *MockTargetAppMockRecorder) UpdateGroupMember(ctx, id, groupMember interface{}) *gomock.Call

UpdateGroupMember indicates an expected call of UpdateGroupMember.

func (*MockTargetAppMockRecorder) UpdateProject

func (mr *MockTargetAppMockRecorder) UpdateProject(ctx, id, project interface{}) *gomock.Call

UpdateProject indicates an expected call of UpdateProject.

func (*MockTargetAppMockRecorder) UpdateProjectMember

func (mr *MockTargetAppMockRecorder) UpdateProjectMember(ctx, id, projectMember interface{}) *gomock.Call

UpdateProjectMember indicates an expected call of UpdateProjectMember.

func (*MockTargetAppMockRecorder) UpdateUser

func (mr *MockTargetAppMockRecorder) UpdateUser(ctx, id, user interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

func (*MockTargetAppMockRecorder) WrappingUpAfterGroupSync

func (mr *MockTargetAppMockRecorder) WrappingUpAfterGroupSync(ctx interface{}) *gomock.Call

WrappingUpAfterGroupSync indicates an expected call of WrappingUpAfterGroupSync.

type TargetApp

type TargetApp interface {
	IdentityKey() TargetAppKindName
	Kind() TargetAppKind
	SetIdp(idp.Idp)
	SetName(name string)
	GetName() string
	SetApiServerUrl(url string)
	SetSecretProvider(provider *secret_provider.SecretProvider)
	GetUsers(ctx context.Context) ([]*schema.User, error)
	GetGroups(ctx context.Context) ([]*schema.Group, error)
	GetProjects(ctx context.Context) ([]*schema.Project, error)
	GetGroupMembers(ctx context.Context) ([]*schema.GroupMember, error)
	GetProjectMembers(ctx context.Context, project *schema.Project, user *schema.User) ([]*schema.ProjectMember, error)
	CreateUser(ctx context.Context, user *schema.User) error
	UpdateUser(ctx context.Context, id string, user *schema.User) error
	CreateGroup(ctx context.Context, group *schema.Group) error
	WrappingUpAfterGroupSync(ctx context.Context) error
	UpdateGroup(ctx context.Context, id string, group *schema.Group) error
	CreateProject(ctx context.Context, project *schema.Project) error
	UpdateProject(ctx context.Context, id string, project *schema.Project) error
	CreateGroupMember(ctx context.Context, groupMember *schema.GroupMember) error
	UpdateGroupMember(ctx context.Context, id string, groupMember *schema.GroupMember) error
	CreateProjectMember(ctx context.Context, projectMember *schema.ProjectMember) error
	UpdateProjectMember(ctx context.Context, id string, projectMember *schema.ProjectMember) error
	DeleteUserById(ctx context.Context, id string) error
	DeleteGroupById(ctx context.Context, id string) error
	DeleteProjectById(ctx context.Context, id string) error
	DeleteGroupMemberById(ctx context.Context, id string) error
	DeleteProjectMemberById(ctx context.Context, id string) error
	GenerateIdpUserIdentity(Identity string) (idpUserIdentity string)
	GenerateIdpGroupIdentity(groupKind string, Identity string) (idpGroupIdentity string)
	GenerateIdpProjectIdentity(Identity string) (idpProjectIdentity string)
	CompareUsers(idpUsers []*schema.User, targetAppUsers []*schema.User) (createUsers []*schema.User, updateUsers []*schema.User)
	CompareGroups(idpGroups []*schema.Group, targetAppGroups []*schema.Group) (createGroups []*schema.Group, updateGroups []*schema.Group)
	CompareProjects(idpProjects []*schema.Project, targetAppProjects []*schema.Project) (createProjects []*schema.Project, updateProjects []*schema.Project)
	SyncGroupMember(ctx context.Context, idpGroupMembers []*schema.GroupMember, targetAppGroupMembers []*schema.GroupMember) error
	GroupBindingProjects(ctx context.Context, projects []*schema.Project) error
}

func NewTargetApplication

func NewTargetApplication(appKind string) (TargetApp, error)

type TargetAppKind

type TargetAppKind string
const (
	NexusAppKind TargetAppKind = "nexus"
)

type TargetAppKindName

type TargetAppKindName struct {
	Kind string
	Name string
}

func (TargetAppKindName) ToString

func (t TargetAppKindName) ToString() string

Jump to

Keyboard shortcuts

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