Documentation ¶
Overview ¶
Package oktaclient is a generated GoMock package.
Index ¶
- type MockOktaClient
- func (m *MockOktaClient) CreateUser(ctx context.Context, body okta.CreateUserRequest, qp *query.Params) (*okta.User, *okta.Response, error)
- func (m *MockOktaClient) DeactivateOrDeleteUser(ctx context.Context, userID string, qp *query.Params) (*okta.Response, error)
- func (m *MockOktaClient) DeactivateUser(ctx context.Context, userID string, qp *query.Params) (*okta.Response, error)
- func (m *MockOktaClient) EXPECT() *MockOktaClientMockRecorder
- func (m *MockOktaClient) GetUser(ctx context.Context, userID string) (*okta.User, *okta.Response, error)
- func (m *MockOktaClient) ListAssignedRolesForUser(ctx context.Context, userID string, qp *query.Params) ([]*okta.Role, *okta.Response, error)
- func (m *MockOktaClient) ListUserGroups(ctx context.Context, userID string) ([]*okta.Group, *okta.Response, error)
- func (m *MockOktaClient) ListUsers(ctx context.Context, qp *query.Params) ([]*okta.User, *okta.Response, error)
- func (m *MockOktaClient) UpdateUser(ctx context.Context, userID string, body okta.User, qp *query.Params) (*okta.User, *okta.Response, error)
- type MockOktaClientMockRecorder
- func (mr *MockOktaClientMockRecorder) CreateUser(ctx, body, qp interface{}) *gomock.Call
- func (mr *MockOktaClientMockRecorder) DeactivateOrDeleteUser(ctx, userID, qp interface{}) *gomock.Call
- func (mr *MockOktaClientMockRecorder) DeactivateUser(ctx, userID, qp interface{}) *gomock.Call
- func (mr *MockOktaClientMockRecorder) GetUser(ctx, userID interface{}) *gomock.Call
- func (mr *MockOktaClientMockRecorder) ListAssignedRolesForUser(ctx, userID, qp interface{}) *gomock.Call
- func (mr *MockOktaClientMockRecorder) ListUserGroups(ctx, userID interface{}) *gomock.Call
- func (mr *MockOktaClientMockRecorder) ListUsers(ctx, qp interface{}) *gomock.Call
- func (mr *MockOktaClientMockRecorder) UpdateUser(ctx, userID, body, qp interface{}) *gomock.Call
- type OktaClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOktaClient ¶
type MockOktaClient struct {
// contains filtered or unexported fields
}
MockOktaClient is a mock of OktaClient interface.
func NewMockOktaClient ¶
func NewMockOktaClient(ctrl *gomock.Controller) *MockOktaClient
NewMockOktaClient creates a new mock instance.
func (*MockOktaClient) CreateUser ¶
func (m *MockOktaClient) CreateUser(ctx context.Context, body okta.CreateUserRequest, qp *query.Params) (*okta.User, *okta.Response, error)
CreateUser mocks base method.
func (*MockOktaClient) DeactivateOrDeleteUser ¶
func (m *MockOktaClient) DeactivateOrDeleteUser(ctx context.Context, userID string, qp *query.Params) (*okta.Response, error)
DeactivateOrDeleteUser mocks base method.
func (*MockOktaClient) DeactivateUser ¶
func (m *MockOktaClient) DeactivateUser(ctx context.Context, userID string, qp *query.Params) (*okta.Response, error)
DeactivateUser mocks base method.
func (*MockOktaClient) EXPECT ¶
func (m *MockOktaClient) EXPECT() *MockOktaClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOktaClient) GetUser ¶
func (m *MockOktaClient) GetUser(ctx context.Context, userID string) (*okta.User, *okta.Response, error)
GetUser mocks base method.
func (*MockOktaClient) ListAssignedRolesForUser ¶ added in v0.8.7
func (m *MockOktaClient) ListAssignedRolesForUser(ctx context.Context, userID string, qp *query.Params) ([]*okta.Role, *okta.Response, error)
ListAssignedRolesForUser mocks base method.
func (*MockOktaClient) ListUserGroups ¶ added in v0.8.7
func (m *MockOktaClient) ListUserGroups(ctx context.Context, userID string) ([]*okta.Group, *okta.Response, error)
ListUserGroups mocks base method.
type MockOktaClientMockRecorder ¶
type MockOktaClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOktaClientMockRecorder is the mock recorder for MockOktaClient.
func (*MockOktaClientMockRecorder) CreateUser ¶
func (mr *MockOktaClientMockRecorder) CreateUser(ctx, body, qp interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockOktaClientMockRecorder) DeactivateOrDeleteUser ¶
func (mr *MockOktaClientMockRecorder) DeactivateOrDeleteUser(ctx, userID, qp interface{}) *gomock.Call
DeactivateOrDeleteUser indicates an expected call of DeactivateOrDeleteUser.
func (*MockOktaClientMockRecorder) DeactivateUser ¶
func (mr *MockOktaClientMockRecorder) DeactivateUser(ctx, userID, qp interface{}) *gomock.Call
DeactivateUser indicates an expected call of DeactivateUser.
func (*MockOktaClientMockRecorder) GetUser ¶
func (mr *MockOktaClientMockRecorder) GetUser(ctx, userID interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockOktaClientMockRecorder) ListAssignedRolesForUser ¶ added in v0.8.7
func (mr *MockOktaClientMockRecorder) ListAssignedRolesForUser(ctx, userID, qp interface{}) *gomock.Call
ListAssignedRolesForUser indicates an expected call of ListAssignedRolesForUser.
func (*MockOktaClientMockRecorder) ListUserGroups ¶ added in v0.8.7
func (mr *MockOktaClientMockRecorder) ListUserGroups(ctx, userID interface{}) *gomock.Call
ListUserGroups indicates an expected call of ListUserGroups.
func (*MockOktaClientMockRecorder) ListUsers ¶
func (mr *MockOktaClientMockRecorder) ListUsers(ctx, qp interface{}) *gomock.Call
ListUsers indicates an expected call of ListUsers.
func (*MockOktaClientMockRecorder) UpdateUser ¶
func (mr *MockOktaClientMockRecorder) UpdateUser(ctx, userID, body, qp interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.
type OktaClient ¶
type OktaClient interface { CreateUser(ctx context.Context, body okta.CreateUserRequest, qp *query.Params) (*okta.User, *okta.Response, error) ListUsers(ctx context.Context, qp *query.Params) ([]*okta.User, *okta.Response, error) GetUser(ctx context.Context, userID string) (*okta.User, *okta.Response, error) UpdateUser(ctx context.Context, userID string, body okta.User, qp *query.Params) (*okta.User, *okta.Response, error) DeactivateOrDeleteUser(ctx context.Context, userID string, qp *query.Params) (*okta.Response, error) DeactivateUser(ctx context.Context, userID string, qp *query.Params) (*okta.Response, error) ListUserGroups(ctx context.Context, userID string) ([]*okta.Group, *okta.Response, error) ListAssignedRolesForUser(ctx context.Context, userID string, qp *query.Params) ([]*okta.Role, *okta.Response, error) }
func NewOktaClient ¶
func NewOktaClient(ctx context.Context, cfg *config.OktaConfig) (OktaClient, error)