mocks

package
v0.0.0-...-2d965b5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfraService

type InfraService struct {
	mock.Mock
}

func (*InfraService) ConfirmInfraRegistration

func (s *InfraService) ConfirmInfraRegistration(request model.InfraIdentity, r store.StateData) (*model.ConfirmInfraRegistrationResponse, error)

func (*InfraService) DeleteInfra

func (s *InfraService) DeleteInfra(ctx context.Context, projectID string, infraId string, r store.StateData) (string, error)

func (*InfraService) GetDBInfra

func (s *InfraService) GetDBInfra(infraID string) (dbChaosInfra.ChaosInfra, error)

func (*InfraService) GetInfra

func (s *InfraService) GetInfra(ctx context.Context, projectID string, infraID string) (*model.Infra, error)

func (*InfraService) GetInfraDetails

func (s *InfraService) GetInfraDetails(ctx context.Context, infraID string, projectID string) (*model.Infra, error)

func (*InfraService) GetInfraStats

func (s *InfraService) GetInfraStats(ctx context.Context, projectID string) (*model.GetInfraStatsResponse, error)

func (*InfraService) GetManifest

func (s *InfraService) GetManifest(token string) ([]byte, int, error)

func (*InfraService) GetManifestWithInfraID

func (s *InfraService) GetManifestWithInfraID(infraID string, accessKey string) ([]byte, error)

func (*InfraService) GetVersionDetails

func (s *InfraService) GetVersionDetails() (*model.InfraVersionDetails, error)

func (*InfraService) KubeObj

func (s *InfraService) KubeObj(request model.KubeObjectData, r store.StateData) (string, error)

func (*InfraService) ListInfras

func (s *InfraService) ListInfras(projectID string, request *model.ListInfraRequest) (*model.ListInfraResponse, error)

func (*InfraService) PodLog

func (s *InfraService) PodLog(request model.PodLog, r store.StateData) (string, error)

func (*InfraService) QueryServerVersion

func (s *InfraService) QueryServerVersion(ctx context.Context) (*model.ServerVersionResponse, error)

func (*InfraService) RegisterInfra

func (s *InfraService) RegisterInfra(c context.Context, projectID string, input model.RegisterInfraRequest) (*model.RegisterInfraResponse, error)

func (*InfraService) SendInfraEvent

func (s *InfraService) SendInfraEvent(eventType, eventName, description string, infra model.Infra, r store.StateData)

func (*InfraService) UpdateInfra

func (s *InfraService) UpdateInfra(query bson.D, update bson.D) error

func (*InfraService) VerifyInfra

func (s *InfraService) VerifyInfra(identity model.InfraIdentity) (*dbChaosInfra.ChaosInfra, error)

Jump to

Keyboard shortcuts

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