user

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package user is a generated GoMock package.

Index

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

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

GetUser mocks base method.

func (*MockClient) GetUserGroups

func (m *MockClient) GetUserGroups(ctx context.Context, userID string) ([]string, error)

GetUserGroups mocks base method.

func (*MockClient) UpdateUser

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.

Jump to

Keyboard shortcuts

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