mocks

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOption

type CallOption struct {
	mock.Mock
}

CallOption is an autogenerated mock type for the CallOption type

func NewCallOption

func NewCallOption(t mockConstructorTestingTNewCallOption) *CallOption

NewCallOption creates a new instance of CallOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CallOption) Execute

func (_m *CallOption) Execute(req *resty.Request)

Execute provides a mock function with given fields: req

type ClientOption

type ClientOption struct {
	mock.Mock
}

ClientOption is an autogenerated mock type for the ClientOption type

func NewClientOption

func NewClientOption(t mockConstructorTestingTNewClientOption) *ClientOption

NewClientOption creates a new instance of ClientOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientOption) Execute

func (_m *ClientOption) Execute(c *resty.Client)

Execute provides a mock function with given fields: c

type ClusterService

type ClusterService struct {
	mock.Mock
}

ClusterService is an autogenerated mock type for the ClusterService type

func NewClusterService

func NewClusterService(t mockConstructorTestingTNewClusterService) *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.

func (*ClusterService) Create

Create provides a mock function with given fields: input

func (*ClusterService) CreateServiceAccount

func (_m *ClusterService) CreateServiceAccount(clusterName string, subjectId string) (*symbiosis.ServiceAccount, error)

CreateServiceAccount provides a mock function with given fields: clusterName, subjectId

func (*ClusterService) CreateServiceAccountForSelf

func (_m *ClusterService) CreateServiceAccountForSelf(clusterName string) (*symbiosis.ServiceAccount, error)

CreateServiceAccountForSelf provides a mock function with given fields: clusterName

func (*ClusterService) Delete

func (_m *ClusterService) Delete(clusterName string) error

Delete provides a mock function with given fields: clusterName

func (*ClusterService) DeleteServiceAccount

func (_m *ClusterService) DeleteServiceAccount(clusterName string, serviceAccountId string) error

DeleteServiceAccount provides a mock function with given fields: clusterName, serviceAccountId

func (*ClusterService) Describe

func (_m *ClusterService) Describe(clusterName string) (*symbiosis.Cluster, error)

Describe provides a mock function with given fields: clusterName

func (*ClusterService) DescribeById

func (_m *ClusterService) DescribeById(id string) (*symbiosis.Cluster, error)

DescribeById provides a mock function with given fields: id

func (*ClusterService) GetIdentity

func (_m *ClusterService) GetIdentity(clusterName string) (*symbiosis.ClusterIdentity, error)

GetIdentity provides a mock function with given fields: clusterName

func (*ClusterService) GetServiceAccount

func (_m *ClusterService) GetServiceAccount(clusterName string, serviceAccountId string) (*symbiosis.ServiceAccount, error)

GetServiceAccount provides a mock function with given fields: clusterName, serviceAccountId

func (*ClusterService) List

func (_m *ClusterService) List(maxSize int, page int) (*symbiosis.ClusterList, error)

List provides a mock function with given fields: maxSize, page

func (*ClusterService) ListNodes

func (_m *ClusterService) ListNodes(clusterName string) (*symbiosis.NodeList, error)

ListNodes provides a mock function with given fields: clusterName

func (*ClusterService) ListUserServiceAccounts

func (_m *ClusterService) ListUserServiceAccounts(clusterName string) ([]*symbiosis.UserServiceAccount, error)

ListUserServiceAccounts provides a mock function with given fields: clusterName

type NodePoolService

type NodePoolService struct {
	mock.Mock
}

NodePoolService is an autogenerated mock type for the NodePoolService type

func NewNodePoolService

func NewNodePoolService(t mockConstructorTestingTNewNodePoolService) *NodePoolService

NewNodePoolService creates a new instance of NodePoolService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NodePoolService) Create

Create provides a mock function with given fields: input

func (*NodePoolService) Delete

func (_m *NodePoolService) Delete(nodePoolId string) error

Delete provides a mock function with given fields: nodePoolId

func (*NodePoolService) Describe

func (_m *NodePoolService) Describe(id string) (*symbiosis.NodePool, error)

Describe provides a mock function with given fields: id

func (*NodePoolService) Update

func (_m *NodePoolService) Update(nodePoolId string, input *symbiosis.NodePoolUpdateInput) error

Update provides a mock function with given fields: nodePoolId, input

type NodeService

type NodeService struct {
	mock.Mock
}

NodeService is an autogenerated mock type for the NodeService type

func NewNodeService

func NewNodeService(t mockConstructorTestingTNewNodeService) *NodeService

NewNodeService creates a new instance of NodeService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NodeService) Delete

func (_m *NodeService) Delete(name string) error

Delete provides a mock function with given fields: name

func (*NodeService) Describe

func (_m *NodeService) Describe(name string) (*symbiosis.Node, error)

Describe provides a mock function with given fields: name

func (*NodeService) Recycle

func (_m *NodeService) Recycle(name string) error

Recycle provides a mock function with given fields: name

type SymbiosisClient

type SymbiosisClient struct {
	mock.Mock
}

SymbiosisClient is an autogenerated mock type for the SymbiosisClient type

func NewSymbiosisClient

func NewSymbiosisClient(t mockConstructorTestingTNewSymbiosisClient) *SymbiosisClient

NewSymbiosisClient creates a new instance of SymbiosisClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SymbiosisClient) NewClientFromAPIKey

func (_m *SymbiosisClient) NewClientFromAPIKey(apiKey string, opts ...symbiosis.ClientOption) (*symbiosis.Client, error)

NewClientFromAPIKey provides a mock function with given fields: apiKey, opts

type TeamService

type TeamService struct {
	mock.Mock
}

TeamService is an autogenerated mock type for the TeamService type

func NewTeamService

func NewTeamService(t mockConstructorTestingTNewTeamService) *TeamService

NewTeamService creates a new instance of TeamService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TeamService) ChangeRole

func (_m *TeamService) ChangeRole(email string, role string) error

ChangeRole provides a mock function with given fields: email, role

func (*TeamService) DeleteMember

func (_m *TeamService) DeleteMember(email string) error

DeleteMember provides a mock function with given fields: email

func (*TeamService) GetInvitationByEmail

func (_m *TeamService) GetInvitationByEmail(email string) (*symbiosis.TeamMember, error)

GetInvitationByEmail provides a mock function with given fields: email

func (*TeamService) GetMemberByEmail

func (_m *TeamService) GetMemberByEmail(email string) (*symbiosis.TeamMember, error)

GetMemberByEmail provides a mock function with given fields: email

func (*TeamService) InviteMembers

func (_m *TeamService) InviteMembers(emails []string, role string) ([]*symbiosis.TeamMember, error)

InviteMembers provides a mock function with given fields: emails, role

Jump to

Keyboard shortcuts

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