Documentation ¶
Overview ¶
Package user is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) AddUserToGroup(ctx context.Context, groupID, userID string) (ionoscloud.User, *ionoscloud.APIResponse, error)
- func (m *MockClient) CreateUser(ctx context.Context, p v1alpha1.UserParameters) (ionoscloud.User, *ionoscloud.APIResponse, error)
- func (m *MockClient) DeleteUser(ctx context.Context, id string) (*ionoscloud.APIResponse, error)
- func (m *MockClient) DeleteUserFromGroup(ctx context.Context, groupID, userID string) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetAPIClient() *ionoscloud.APIClient
- func (m *MockClient) GetUser(ctx context.Context, id string) (ionoscloud.User, *ionoscloud.APIResponse, error)
- func (m *MockClient) GetUserGroups(ctx context.Context, userID string) ([]string, error)
- func (m *MockClient) UpdateUser(ctx context.Context, id string, p v1alpha1.UserParameters) (ionoscloud.User, *ionoscloud.APIResponse, error)
- func (m *MockClient) UpdateUserGroups(ctx context.Context, userID string, ...) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AddUserToGroup(ctx, groupID, userID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateUser(ctx, p interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteUserFromGroup(ctx, groupID, userID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetAPIClient() *gomock.Call
- func (mr *MockClientMockRecorder) GetUser(ctx, id interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetUserGroups(ctx, userID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateUser(ctx, id, p interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateUserGroups(ctx, userID, observedGroupIDs, configuredGroupIDs interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) AddUserToGroup ¶
func (m *MockClient) AddUserToGroup(ctx context.Context, groupID, userID string) (ionoscloud.User, *ionoscloud.APIResponse, error)
AddUserToGroup mocks base method.
func (*MockClient) CreateUser ¶
func (m *MockClient) CreateUser(ctx context.Context, p v1alpha1.UserParameters) (ionoscloud.User, *ionoscloud.APIResponse, error)
CreateUser mocks base method.
func (*MockClient) DeleteUser ¶
func (m *MockClient) DeleteUser(ctx context.Context, id string) (*ionoscloud.APIResponse, error)
DeleteUser mocks base method.
func (*MockClient) DeleteUserFromGroup ¶
func (m *MockClient) DeleteUserFromGroup(ctx context.Context, groupID, userID string) error
DeleteUserFromGroup mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetAPIClient ¶
func (m *MockClient) GetAPIClient() *ionoscloud.APIClient
GetAPIClient mocks base method.
func (*MockClient) GetUser ¶
func (m *MockClient) GetUser(ctx context.Context, id string) (ionoscloud.User, *ionoscloud.APIResponse, error)
GetUser mocks base method.
func (*MockClient) GetUserGroups ¶
GetUserGroups mocks base method.
func (*MockClient) UpdateUser ¶
func (m *MockClient) UpdateUser(ctx context.Context, id string, p v1alpha1.UserParameters) (ionoscloud.User, *ionoscloud.APIResponse, error)
UpdateUser mocks base method.
func (*MockClient) UpdateUserGroups ¶ added in v1.0.10
func (m *MockClient) UpdateUserGroups(ctx context.Context, userID string, observedGroupIDs, configuredGroupIDs []string) error
UpdateUserGroups mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) AddUserToGroup ¶
func (mr *MockClientMockRecorder) AddUserToGroup(ctx, groupID, userID interface{}) *gomock.Call
AddUserToGroup indicates an expected call of AddUserToGroup.
func (*MockClientMockRecorder) CreateUser ¶
func (mr *MockClientMockRecorder) CreateUser(ctx, p interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockClientMockRecorder) DeleteUser ¶
func (mr *MockClientMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser.
func (*MockClientMockRecorder) DeleteUserFromGroup ¶
func (mr *MockClientMockRecorder) DeleteUserFromGroup(ctx, groupID, userID interface{}) *gomock.Call
DeleteUserFromGroup indicates an expected call of DeleteUserFromGroup.
func (*MockClientMockRecorder) GetAPIClient ¶
func (mr *MockClientMockRecorder) GetAPIClient() *gomock.Call
GetAPIClient indicates an expected call of GetAPIClient.
func (*MockClientMockRecorder) GetUser ¶
func (mr *MockClientMockRecorder) GetUser(ctx, id interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockClientMockRecorder) GetUserGroups ¶
func (mr *MockClientMockRecorder) GetUserGroups(ctx, userID interface{}) *gomock.Call
GetUserGroups indicates an expected call of GetUserGroups.
func (*MockClientMockRecorder) UpdateUser ¶
func (mr *MockClientMockRecorder) UpdateUser(ctx, id, p interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.
func (*MockClientMockRecorder) UpdateUserGroups ¶ added in v1.0.10
func (mr *MockClientMockRecorder) UpdateUserGroups(ctx, userID, observedGroupIDs, configuredGroupIDs interface{}) *gomock.Call
UpdateUserGroups indicates an expected call of UpdateUserGroups.