mocks

package
v0.0.0-...-d4d4b81 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks ...

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 a mock type for model.ClusterService

func (*ClusterService) ConfirmClusterRegistration

func (c *ClusterService) ConfirmClusterRegistration(request model.ClusterIdentity, r store.StateData) (*model.ConfirmClusterRegistrationResponse, error)

ConfirmClusterRegistration mocks the ConfirmClusterRegistration of ClusterService

func (*ClusterService) DeleteClusters

func (c *ClusterService) DeleteClusters(ctx context.Context, projectID string, clusterIds []*string, r store.StateData) (string, error)

DeleteClusters mocks the DeleteClusters of ClusterService

func (*ClusterService) GetAgentDetails

func (c *ClusterService) GetAgentDetails(ctx context.Context, clusterID string, projectID string) (*model.Cluster, error)

GetAgentDetails mocks the GetAgentDetails of ClusterService

func (*ClusterService) GetCluster

func (c *ClusterService) GetCluster(clusterID string) (dbSchemaCluster.Cluster, error)

GetCluster mocks the GetCluster of ClusterService

func (*ClusterService) GetClusterResource

func (c *ClusterService) GetClusterResource(manifest string, namespace string) (*unstructured.Unstructured, error)

GetClusterResource mocks the GetClusterResource of ClusterService

func (*ClusterService) GetEndpoint

func (c *ClusterService) GetEndpoint(agentType utils.AgentType) (string, error)

GetEndpoint mocks the GetEndpoint of ClusterService

func (*ClusterService) GetManifest

func (c *ClusterService) GetManifest(token string) ([]byte, int, error)

GetManifest mocks the GetManifest of ClusterService

func (*ClusterService) GetManifestWithClusterID

func (c *ClusterService) GetManifestWithClusterID(clusterID string, accessKey string) ([]byte, error)

GetManifestWithClusterID mocks the GetManifestWithClusterID of ClusterService

func (*ClusterService) ListClusters

func (c *ClusterService) ListClusters(projectID string, clusterType *string) ([]*model.Cluster, error)

ListClusters mocks the ListClusters of ClusterService

func (*ClusterService) NewClusterEvent

func (c *ClusterService) NewClusterEvent(request model.NewClusterEventRequest, r store.StateData) (string, error)

NewClusterEvent mocks the NewClusterEvent of ClusterService

func (*ClusterService) RegisterCluster

RegisterCluster mocks the RegisterCluster of ClusterService

func (*ClusterService) SendClusterEvent

func (c *ClusterService) SendClusterEvent(eventType, eventName, description string, cluster model.Cluster, r store.StateData)

SendClusterEvent mocks the SendClusterEvent of ClusterService

func (*ClusterService) UpdateCluster

func (c *ClusterService) UpdateCluster(query bson.D, update bson.D) error

UpdateCluster mocks the UpdateCluster of ClusterService

func (*ClusterService) VerifyCluster

func (c *ClusterService) VerifyCluster(identity model.ClusterIdentity) (*dbSchemaCluster.Cluster, error)

VerifyCluster mocks the VerifyCluster of ClusterService

Jump to

Keyboard shortcuts

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