mocks

package
v0.0.0-...-5f509e1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-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 Provisioner

type Provisioner struct {
	mock.Mock
}

Provisioner is an autogenerated mock type for the Provisioner type

func NewProvisioner

func NewProvisioner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provisioner

NewProvisioner creates a new instance of Provisioner. 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 (*Provisioner) DeprovisionCluster

func (_m *Provisioner) DeprovisionCluster(cluster model.Cluster, operationId string) (model.Operation, apperrors.AppError)

DeprovisionCluster provides a mock function with given fields: cluster, operationId

func (*Provisioner) ProvisionCluster

func (_m *Provisioner) ProvisionCluster(cluster model.Cluster, operationId string) apperrors.AppError

ProvisionCluster provides a mock function with given fields: cluster, operationId

func (*Provisioner) UpgradeCluster

func (_m *Provisioner) UpgradeCluster(clusterID string, upgradeConfig model.GardenerConfig) apperrors.AppError

UpgradeCluster provides a mock function with given fields: clusterID, upgradeConfig

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. 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 (*Service) DeprovisionRuntime

func (_m *Service) DeprovisionRuntime(id string) (string, apperrors.AppError)

DeprovisionRuntime provides a mock function with given fields: id

func (*Service) ProvisionRuntime

func (_m *Service) ProvisionRuntime(config gqlschema.ProvisionRuntimeInput, tenant string, subAccount string) (*gqlschema.OperationStatus, apperrors.AppError)

ProvisionRuntime provides a mock function with given fields: config, tenant, subAccount

func (*Service) ReconnectRuntimeAgent

func (_m *Service) ReconnectRuntimeAgent(id string) (string, apperrors.AppError)

ReconnectRuntimeAgent provides a mock function with given fields: id

func (*Service) RuntimeOperationStatus

func (_m *Service) RuntimeOperationStatus(id string) (*gqlschema.OperationStatus, apperrors.AppError)

RuntimeOperationStatus provides a mock function with given fields: id

func (*Service) RuntimeStatus

func (_m *Service) RuntimeStatus(id string) (*gqlschema.RuntimeStatus, apperrors.AppError)

RuntimeStatus provides a mock function with given fields: id

func (*Service) UpgradeGardenerShoot

func (_m *Service) UpgradeGardenerShoot(id string, input gqlschema.UpgradeShootInput) (*gqlschema.OperationStatus, apperrors.AppError)

UpgradeGardenerShoot provides a mock function with given fields: id, input

type ShootProvider

type ShootProvider struct {
	mock.Mock
}

ShootProvider is an autogenerated mock type for the ShootProvider type

func NewShootProvider

func NewShootProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ShootProvider

NewShootProvider creates a new instance of ShootProvider. 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 (*ShootProvider) Get

func (_m *ShootProvider) Get(runtimeID string, tenant string) (v1beta1.Shoot, apperrors.AppError)

Get provides a mock function with given fields: runtimeID, tenant

Jump to

Keyboard shortcuts

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