Documentation
¶
Index ¶
- type MockConnectionManagerInterface
- func (m *MockConnectionManagerInterface) Create(c *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection) error
- func (m *MockConnectionManagerInterface) CreateCalled() bool
- func (m *MockConnectionManagerInterface) CreateCalls() []struct{ ... }
- func (m *MockConnectionManagerInterface) Delete(id string) error
- func (m *MockConnectionManagerInterface) DeleteCalled() bool
- func (m *MockConnectionManagerInterface) DeleteCalls() []struct{ ... }
- func (m *MockConnectionManagerInterface) GetConnectionID(connectionName string) (string, error)
- func (m *MockConnectionManagerInterface) GetConnectionIDCalled() bool
- func (m *MockConnectionManagerInterface) GetConnectionIDCalls() []struct{ ... }
- func (m *MockConnectionManagerInterface) List(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_cc_structs_kafka_auth_v1.Connection, error)
- func (m *MockConnectionManagerInterface) ListCalled() bool
- func (m *MockConnectionManagerInterface) ListCalls() []struct{ ... }
- func (m *MockConnectionManagerInterface) Read(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) (*github_com_confluentinc_cc_structs_kafka_auth_v1.Connection, error)
- func (m *MockConnectionManagerInterface) ReadCalled() bool
- func (m *MockConnectionManagerInterface) ReadCalls() []struct{ ... }
- func (m *MockConnectionManagerInterface) Reset()
- func (m *MockConnectionManagerInterface) Update(id string, c *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection) error
- func (m *MockConnectionManagerInterface) UpdateCalled() bool
- func (m *MockConnectionManagerInterface) UpdateCalls() []struct{ ... }
- type MockUserManagerInterface
- func (m *MockUserManagerInterface) AssignRoles(id string, roles ...*github_com_confluentinc_auth0_management.Role) error
- func (m *MockUserManagerInterface) AssignRolesCalled() bool
- func (m *MockUserManagerInterface) AssignRolesCalls() []struct{ ... }
- func (m *MockUserManagerInterface) Create(u *github_com_confluentinc_auth0_management.User) error
- func (m *MockUserManagerInterface) CreateCalled() bool
- func (m *MockUserManagerInterface) CreateCalls() []struct{ ... }
- func (m *MockUserManagerInterface) Delete(id string) error
- func (m *MockUserManagerInterface) DeleteCalled() bool
- func (m *MockUserManagerInterface) DeleteCalls() []struct{ ... }
- func (m *MockUserManagerInterface) GetRoles(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.Role, error)
- func (m *MockUserManagerInterface) GetRolesCalled() bool
- func (m *MockUserManagerInterface) GetRolesCalls() []struct{ ... }
- func (m *MockUserManagerInterface) List(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
- func (m *MockUserManagerInterface) ListByEmail(email string, opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
- func (m *MockUserManagerInterface) ListByEmailCalled() bool
- func (m *MockUserManagerInterface) ListByEmailCalls() []struct{ ... }
- func (m *MockUserManagerInterface) ListCalled() bool
- func (m *MockUserManagerInterface) ListCalls() []struct{ ... }
- func (m *MockUserManagerInterface) Read(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) (*github_com_confluentinc_auth0_management.User, error)
- func (m *MockUserManagerInterface) ReadCalled() bool
- func (m *MockUserManagerInterface) ReadCalls() []struct{ ... }
- func (m *MockUserManagerInterface) Reset()
- func (m *MockUserManagerInterface) Search(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
- func (m *MockUserManagerInterface) SearchCalled() bool
- func (m *MockUserManagerInterface) SearchCalls() []struct{ ... }
- func (m *MockUserManagerInterface) UnassignRoles(id string, roles ...*github_com_confluentinc_auth0_management.Role) error
- func (m *MockUserManagerInterface) UnassignRolesCalled() bool
- func (m *MockUserManagerInterface) UnassignRolesCalls() []struct{ ... }
- func (m *MockUserManagerInterface) Update(id string, u *github_com_confluentinc_auth0_management.User) error
- func (m *MockUserManagerInterface) UpdateCalled() bool
- func (m *MockUserManagerInterface) UpdateCalls() []struct{ ... }
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnectionManagerInterface ¶ added in v1.2.6
type MockConnectionManagerInterface struct {
CreateFunc func(c *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection) error
ReadFunc func(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) (*github_com_confluentinc_cc_structs_kafka_auth_v1.Connection, error)
ListFunc func(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_cc_structs_kafka_auth_v1.Connection, error)
UpdateFunc func(id string, c *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection) error
DeleteFunc func(id string) error
GetConnectionIDFunc func(connectionName string) (string, error)
// contains filtered or unexported fields
}
MockConnectionManagerInterface is a mock of ConnectionManagerInterface interface
func (*MockConnectionManagerInterface) Create ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) Create(c *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection) error
Create mocks base method by wrapping the associated func.
func (*MockConnectionManagerInterface) CreateCalled ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) CreateCalled() bool
CreateCalled returns true if Create was called at least once.
func (*MockConnectionManagerInterface) CreateCalls ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) CreateCalls() []struct { C *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection }
CreateCalls returns the calls made to Create.
func (*MockConnectionManagerInterface) Delete ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) Delete(id string) error
Delete mocks base method by wrapping the associated func.
func (*MockConnectionManagerInterface) DeleteCalled ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) DeleteCalled() bool
DeleteCalled returns true if Delete was called at least once.
func (*MockConnectionManagerInterface) DeleteCalls ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) DeleteCalls() []struct { Id string }
DeleteCalls returns the calls made to Delete.
func (*MockConnectionManagerInterface) GetConnectionID ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) GetConnectionID(connectionName string) (string, error)
GetConnectionID mocks base method by wrapping the associated func.
func (*MockConnectionManagerInterface) GetConnectionIDCalled ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) GetConnectionIDCalled() bool
GetConnectionIDCalled returns true if GetConnectionID was called at least once.
func (*MockConnectionManagerInterface) GetConnectionIDCalls ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) GetConnectionIDCalls() []struct { ConnectionName string }
GetConnectionIDCalls returns the calls made to GetConnectionID.
func (*MockConnectionManagerInterface) List ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) List(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_cc_structs_kafka_auth_v1.Connection, error)
List mocks base method by wrapping the associated func.
func (*MockConnectionManagerInterface) ListCalled ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) ListCalled() bool
ListCalled returns true if List was called at least once.
func (*MockConnectionManagerInterface) ListCalls ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) ListCalls() []struct { Opts []github_com_confluentinc_auth0_management.ReqOption }
ListCalls returns the calls made to List.
func (*MockConnectionManagerInterface) Read ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) Read(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) (*github_com_confluentinc_cc_structs_kafka_auth_v1.Connection, error)
Read mocks base method by wrapping the associated func.
func (*MockConnectionManagerInterface) ReadCalled ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) ReadCalled() bool
ReadCalled returns true if Read was called at least once.
func (*MockConnectionManagerInterface) ReadCalls ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) ReadCalls() []struct { Id string Opts []github_com_confluentinc_auth0_management.ReqOption }
ReadCalls returns the calls made to Read.
func (*MockConnectionManagerInterface) Reset ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) Reset()
Reset resets the calls made to the mocked methods.
func (*MockConnectionManagerInterface) Update ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) Update(id string, c *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection) error
Update mocks base method by wrapping the associated func.
func (*MockConnectionManagerInterface) UpdateCalled ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) UpdateCalled() bool
UpdateCalled returns true if Update was called at least once.
func (*MockConnectionManagerInterface) UpdateCalls ¶ added in v1.2.6
func (m *MockConnectionManagerInterface) UpdateCalls() []struct { Id string C *github_com_confluentinc_cc_structs_kafka_auth_v1.Connection }
UpdateCalls returns the calls made to Update.
type MockUserManagerInterface ¶
type MockUserManagerInterface struct {
CreateFunc func(u *github_com_confluentinc_auth0_management.User) error
ReadFunc func(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) (*github_com_confluentinc_auth0_management.User, error)
UpdateFunc func(id string, u *github_com_confluentinc_auth0_management.User) error
DeleteFunc func(id string) error
ListFunc func(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
SearchFunc func(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
ListByEmailFunc func(email string, opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
GetRolesFunc func(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.Role, error)
AssignRolesFunc func(id string, roles ...*github_com_confluentinc_auth0_management.Role) error
UnassignRolesFunc func(id string, roles ...*github_com_confluentinc_auth0_management.Role) error
// contains filtered or unexported fields
}
MockUserManagerInterface is a mock of UserManagerInterface interface
func (*MockUserManagerInterface) AssignRoles ¶
func (m *MockUserManagerInterface) AssignRoles(id string, roles ...*github_com_confluentinc_auth0_management.Role) error
AssignRoles mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) AssignRolesCalled ¶
func (m *MockUserManagerInterface) AssignRolesCalled() bool
AssignRolesCalled returns true if AssignRoles was called at least once.
func (*MockUserManagerInterface) AssignRolesCalls ¶
func (m *MockUserManagerInterface) AssignRolesCalls() []struct { Id string Roles []*github_com_confluentinc_auth0_management.Role }
AssignRolesCalls returns the calls made to AssignRoles.
func (*MockUserManagerInterface) Create ¶
func (m *MockUserManagerInterface) Create(u *github_com_confluentinc_auth0_management.User) error
Create mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) CreateCalled ¶
func (m *MockUserManagerInterface) CreateCalled() bool
CreateCalled returns true if Create was called at least once.
func (*MockUserManagerInterface) CreateCalls ¶
func (m *MockUserManagerInterface) CreateCalls() []struct { U *github_com_confluentinc_auth0_management.User }
CreateCalls returns the calls made to Create.
func (*MockUserManagerInterface) Delete ¶
func (m *MockUserManagerInterface) Delete(id string) error
Delete mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) DeleteCalled ¶
func (m *MockUserManagerInterface) DeleteCalled() bool
DeleteCalled returns true if Delete was called at least once.
func (*MockUserManagerInterface) DeleteCalls ¶
func (m *MockUserManagerInterface) DeleteCalls() []struct { Id string }
DeleteCalls returns the calls made to Delete.
func (*MockUserManagerInterface) GetRoles ¶
func (m *MockUserManagerInterface) GetRoles(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.Role, error)
GetRoles mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) GetRolesCalled ¶
func (m *MockUserManagerInterface) GetRolesCalled() bool
GetRolesCalled returns true if GetRoles was called at least once.
func (*MockUserManagerInterface) GetRolesCalls ¶
func (m *MockUserManagerInterface) GetRolesCalls() []struct { Id string Opts []github_com_confluentinc_auth0_management.ReqOption }
GetRolesCalls returns the calls made to GetRoles.
func (*MockUserManagerInterface) List ¶
func (m *MockUserManagerInterface) List(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
List mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) ListByEmail ¶
func (m *MockUserManagerInterface) ListByEmail(email string, opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
ListByEmail mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) ListByEmailCalled ¶
func (m *MockUserManagerInterface) ListByEmailCalled() bool
ListByEmailCalled returns true if ListByEmail was called at least once.
func (*MockUserManagerInterface) ListByEmailCalls ¶
func (m *MockUserManagerInterface) ListByEmailCalls() []struct { Email string Opts []github_com_confluentinc_auth0_management.ReqOption }
ListByEmailCalls returns the calls made to ListByEmail.
func (*MockUserManagerInterface) ListCalled ¶
func (m *MockUserManagerInterface) ListCalled() bool
ListCalled returns true if List was called at least once.
func (*MockUserManagerInterface) ListCalls ¶
func (m *MockUserManagerInterface) ListCalls() []struct { Opts []github_com_confluentinc_auth0_management.ReqOption }
ListCalls returns the calls made to List.
func (*MockUserManagerInterface) Read ¶
func (m *MockUserManagerInterface) Read(id string, opts ...github_com_confluentinc_auth0_management.ReqOption) (*github_com_confluentinc_auth0_management.User, error)
Read mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) ReadCalled ¶
func (m *MockUserManagerInterface) ReadCalled() bool
ReadCalled returns true if Read was called at least once.
func (*MockUserManagerInterface) ReadCalls ¶
func (m *MockUserManagerInterface) ReadCalls() []struct { Id string Opts []github_com_confluentinc_auth0_management.ReqOption }
ReadCalls returns the calls made to Read.
func (*MockUserManagerInterface) Reset ¶
func (m *MockUserManagerInterface) Reset()
Reset resets the calls made to the mocked methods.
func (*MockUserManagerInterface) Search ¶
func (m *MockUserManagerInterface) Search(opts ...github_com_confluentinc_auth0_management.ReqOption) ([]*github_com_confluentinc_auth0_management.User, error)
Search mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) SearchCalled ¶
func (m *MockUserManagerInterface) SearchCalled() bool
SearchCalled returns true if Search was called at least once.
func (*MockUserManagerInterface) SearchCalls ¶
func (m *MockUserManagerInterface) SearchCalls() []struct { Opts []github_com_confluentinc_auth0_management.ReqOption }
SearchCalls returns the calls made to Search.
func (*MockUserManagerInterface) UnassignRoles ¶
func (m *MockUserManagerInterface) UnassignRoles(id string, roles ...*github_com_confluentinc_auth0_management.Role) error
UnassignRoles mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) UnassignRolesCalled ¶
func (m *MockUserManagerInterface) UnassignRolesCalled() bool
UnassignRolesCalled returns true if UnassignRoles was called at least once.
func (*MockUserManagerInterface) UnassignRolesCalls ¶
func (m *MockUserManagerInterface) UnassignRolesCalls() []struct { Id string Roles []*github_com_confluentinc_auth0_management.Role }
UnassignRolesCalls returns the calls made to UnassignRoles.
func (*MockUserManagerInterface) Update ¶
func (m *MockUserManagerInterface) Update(id string, u *github_com_confluentinc_auth0_management.User) error
Update mocks base method by wrapping the associated func.
func (*MockUserManagerInterface) UpdateCalled ¶
func (m *MockUserManagerInterface) UpdateCalled() bool
UpdateCalled returns true if Update was called at least once.
func (*MockUserManagerInterface) UpdateCalls ¶
func (m *MockUserManagerInterface) UpdateCalls() []struct { Id string U *github_com_confluentinc_auth0_management.User }
UpdateCalls returns the calls made to Update.