mocksvc

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterService

type ClusterService struct {
	mock.Mock
}

ClusterService is an autogenerated mock type for the ClusterService type

func NewClusterService

func NewClusterService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterService

NewClusterService creates a new instance of ClusterService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ClusterService) Get

func (_m *ClusterService) Get(ctx context.Context, groupID string, clusterName string) (*mongodbatlas.Cluster, *mongodbatlas.Response, error)

Get provides a mock function with given fields: ctx, groupID, clusterName

func (*ClusterService) GetAdvancedCluster

func (_m *ClusterService) GetAdvancedCluster(ctx context.Context, groupID string, clusterName string) (*mongodbatlas.AdvancedCluster, *mongodbatlas.Response, error)

GetAdvancedCluster provides a mock function with given fields: ctx, groupID, clusterName

func (*ClusterService) List

List provides a mock function with given fields: ctx, groupID, options

type DeploymentService

type DeploymentService struct {
	mock.Mock
}

DeploymentService is an autogenerated mock type for the DeploymentService type

func NewDeploymentService

func NewDeploymentService(t interface {
	mock.TestingT
	Cleanup(func())
}) *DeploymentService

NewDeploymentService creates a new instance of DeploymentService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DeploymentService) GetAtlasSearchDeployment

func (_m *DeploymentService) GetAtlasSearchDeployment(ctx context.Context, groupID string, clusterName string) (*admin.ApiSearchDeploymentResponse, *http.Response, error)

GetAtlasSearchDeployment provides a mock function with given fields: ctx, groupID, clusterName

type EarService

type EarService struct {
	mock.Mock
}

EarService is an autogenerated mock type for the EarService type

func NewEarService

func NewEarService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EarService

NewEarService creates a new instance of EarService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EarService) UpdateEncryptionAtRest

func (_m *EarService) UpdateEncryptionAtRest(ctx context.Context, groupID string, encryptionAtRest *admin.EncryptionAtRest) (*admin.EncryptionAtRest, *http.Response, error)

UpdateEncryptionAtRest provides a mock function with given fields: ctx, groupID, encryptionAtRest

type GroupProjectService

type GroupProjectService struct {
	mock.Mock
}

GroupProjectService is an autogenerated mock type for the GroupProjectService type

func NewGroupProjectService

func NewGroupProjectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GroupProjectService

NewGroupProjectService creates a new instance of GroupProjectService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GroupProjectService) AddAllTeamsToProject

func (_m *GroupProjectService) AddAllTeamsToProject(ctx context.Context, groupID string, teamRole *[]admin.TeamRole) (*admin.PaginatedTeamRole, *http.Response, error)

AddAllTeamsToProject provides a mock function with given fields: ctx, groupID, teamRole

func (*GroupProjectService) DeleteProjectLimit

func (_m *GroupProjectService) DeleteProjectLimit(ctx context.Context, limitName string, projectID string) (map[string]interface{}, *http.Response, error)

DeleteProjectLimit provides a mock function with given fields: ctx, limitName, projectID

func (*GroupProjectService) GetProjectSettings

func (_m *GroupProjectService) GetProjectSettings(ctx context.Context, groupID string) (*admin.GroupSettings, *http.Response, error)

GetProjectSettings provides a mock function with given fields: ctx, groupID

func (*GroupProjectService) ListClusters

ListClusters provides a mock function with given fields: ctx, groupID

func (*GroupProjectService) ListProjectLimits

func (_m *GroupProjectService) ListProjectLimits(ctx context.Context, groupID string) ([]admin.DataFederationLimit, *http.Response, error)

ListProjectLimits provides a mock function with given fields: ctx, groupID

func (*GroupProjectService) ListProjectTeams

func (_m *GroupProjectService) ListProjectTeams(ctx context.Context, groupID string) (*admin.PaginatedTeamRole, *http.Response, error)

ListProjectTeams provides a mock function with given fields: ctx, groupID

func (*GroupProjectService) RemoveProjectTeam

func (_m *GroupProjectService) RemoveProjectTeam(ctx context.Context, groupID string, teamID string) (*http.Response, error)

RemoveProjectTeam provides a mock function with given fields: ctx, groupID, teamID

func (*GroupProjectService) ReturnAllIPAddresses

func (_m *GroupProjectService) ReturnAllIPAddresses(ctx context.Context, groupID string) (*admin.GroupIPAddresses, *http.Response, error)

ReturnAllIPAddresses provides a mock function with given fields: ctx, groupID

func (*GroupProjectService) SetProjectLimit

func (_m *GroupProjectService) SetProjectLimit(ctx context.Context, limitName string, groupID string, dataFederationLimit *admin.DataFederationLimit) (*admin.DataFederationLimit, *http.Response, error)

SetProjectLimit provides a mock function with given fields: ctx, limitName, groupID, dataFederationLimit

func (*GroupProjectService) UpdateProject

func (_m *GroupProjectService) UpdateProject(ctx context.Context, groupID string, groupName *admin.GroupName) (*admin.Group, *http.Response, error)

UpdateProject provides a mock function with given fields: ctx, groupID, groupName

func (*GroupProjectService) UpdateTeamRoles

func (_m *GroupProjectService) UpdateTeamRoles(ctx context.Context, groupID string, teamID string, teamRole *admin.TeamRole) (*admin.PaginatedTeamRole, *http.Response, error)

UpdateTeamRoles provides a mock function with given fields: ctx, groupID, teamID, teamRole

Jump to

Keyboard shortcuts

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