mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 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 DockerBuilder added in v0.2.0

type DockerBuilder struct {
	mock.Mock
}

DockerBuilder is an autogenerated mock type for the DockerBuilder type

func NewDockerBuilder added in v0.2.0

func NewDockerBuilder(t mockConstructorTestingTNewDockerBuilder) *DockerBuilder

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

func (*DockerBuilder) BuildSource added in v0.2.0

func (_m *DockerBuilder) BuildSource(ctx context.Context, srcPath string) error

BuildSource provides a mock function with given fields: ctx, srcPath

func (*DockerBuilder) PullBuilderImage added in v0.2.0

func (_m *DockerBuilder) PullBuilderImage(ctx context.Context) error

PullBuilderImage provides a mock function with given fields: ctx

func (*DockerBuilder) RenameCodeWasm added in v0.3.0

func (_m *DockerBuilder) RenameCodeWasm(name string) error

RenameCodeWasm provides a mock function with given fields: name

func (*DockerBuilder) Setup added in v0.2.0

func (_m *DockerBuilder) Setup(client docker.DockerClient, language string, dest string) error

Setup provides a mock function with given fields: client, language, dest

type DockerShell added in v0.3.0

type DockerShell struct {
	mock.Mock
}

DockerShell is an autogenerated mock type for the DockerShell type

func NewDockerShell added in v0.3.0

func NewDockerShell(t mockConstructorTestingTNewDockerShell) *DockerShell

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

func (*DockerShell) ComposeDown added in v0.3.0

func (_m *DockerShell) ComposeDown(ctx context.Context, composeFilePath string) error

ComposeDown provides a mock function with given fields: ctx, composeFilePath

func (*DockerShell) ComposeList added in v0.4.0

func (_m *DockerShell) ComposeList(ctx context.Context) ([]string, error)

ComposeList provides a mock function with given fields: ctx

func (*DockerShell) ComposeUp added in v0.3.0

func (_m *DockerShell) ComposeUp(ctx context.Context, composeFilePath string) error

ComposeUp provides a mock function with given fields: ctx, composeFilePath

func (*DockerShell) LogTokens added in v0.4.0

func (_m *DockerShell) LogTokens(ctx context.Context) error

LogTokens provides a mock function with given fields: ctx

type FnHandler

type FnHandler struct {
	mock.Mock
}

FnHandler is an autogenerated mock type for the FnHandler type

func NewFnHandler

func NewFnHandler(t mockConstructorTestingTNewFnHandler) *FnHandler

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

func (*FnHandler) Create

func (_m *FnHandler) Create(ctx context.Context, fnName string, fnMod string, code *os.File) error

Create provides a mock function with given fields: ctx, fnName, fnMod, code

func (*FnHandler) Delete

func (_m *FnHandler) Delete(ctx context.Context, fnName string, fnMod string) error

Delete provides a mock function with given fields: ctx, fnName, fnMod

func (*FnHandler) Invoke

func (_m *FnHandler) Invoke(ctx context.Context, fnName string, fnMod string, fnArgs map[string]interface{}) (pkg.IvkResult, error)

Invoke provides a mock function with given fields: ctx, fnName, fnMod, fnArgs

func (*FnHandler) Update added in v0.3.0

func (_m *FnHandler) Update(ctx context.Context, fnName string, fnMod string, code *os.File, newName string) error

Update provides a mock function with given fields: ctx, fnName, fnMod, code, newName

type InputValidatorHandler added in v0.3.0

type InputValidatorHandler struct {
	mock.Mock
}

InputValidatorHandler is an autogenerated mock type for the InputValidatorHandler type

func NewInputValidatorHandler added in v0.3.0

func NewInputValidatorHandler(t mockConstructorTestingTNewInputValidatorHandler) *InputValidatorHandler

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

func (*InputValidatorHandler) ValidateName added in v0.3.0

func (_m *InputValidatorHandler) ValidateName(name string, entity string) error

ValidateName provides a mock function with given fields: name, entity

type KubernetesDeployer added in v0.3.0

type KubernetesDeployer struct {
	mock.Mock
}

KubernetesDeployer is an autogenerated mock type for the KubernetesDeployer type

func NewKubernetesDeployer added in v0.3.0

func NewKubernetesDeployer(t mockConstructorTestingTNewKubernetesDeployer) *KubernetesDeployer

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

func (*KubernetesDeployer) CreateCoreSecrets added in v0.4.0

func (_m *KubernetesDeployer) CreateCoreSecrets(ctx context.Context) error

CreateCoreSecrets provides a mock function with given fields: ctx

func (*KubernetesDeployer) CreateNamespace added in v0.3.0

func (_m *KubernetesDeployer) CreateNamespace(ctx context.Context) error

CreateNamespace provides a mock function with given fields: ctx

func (*KubernetesDeployer) CreatePrometheusConfigMap added in v0.3.0

func (_m *KubernetesDeployer) CreatePrometheusConfigMap(ctx context.Context) error

CreatePrometheusConfigMap provides a mock function with given fields: ctx

func (*KubernetesDeployer) CreateRole added in v0.3.0

func (_m *KubernetesDeployer) CreateRole(ctx context.Context) error

CreateRole provides a mock function with given fields: ctx

func (*KubernetesDeployer) CreateRoleBinding added in v0.3.0

func (_m *KubernetesDeployer) CreateRoleBinding(ctx context.Context) error

CreateRoleBinding provides a mock function with given fields: ctx

func (*KubernetesDeployer) CreateSvcAccount added in v0.3.0

func (_m *KubernetesDeployer) CreateSvcAccount(ctx context.Context) error

CreateSvcAccount provides a mock function with given fields: ctx

func (*KubernetesDeployer) DeployCore added in v0.3.0

func (_m *KubernetesDeployer) DeployCore(ctx context.Context) error

DeployCore provides a mock function with given fields: ctx

func (*KubernetesDeployer) DeployCoreService added in v0.3.0

func (_m *KubernetesDeployer) DeployCoreService(ctx context.Context) error

DeployCoreService provides a mock function with given fields: ctx

func (*KubernetesDeployer) DeployPostgres added in v0.4.0

func (_m *KubernetesDeployer) DeployPostgres(ctx context.Context) error

DeployPostgres provides a mock function with given fields: ctx

func (*KubernetesDeployer) DeployPostgresService added in v0.4.0

func (_m *KubernetesDeployer) DeployPostgresService(ctx context.Context) error

DeployPostgresService provides a mock function with given fields: ctx

func (*KubernetesDeployer) DeployPrometheus added in v0.3.0

func (_m *KubernetesDeployer) DeployPrometheus(ctx context.Context) error

DeployPrometheus provides a mock function with given fields: ctx

func (*KubernetesDeployer) DeployPrometheusService added in v0.3.0

func (_m *KubernetesDeployer) DeployPrometheusService(ctx context.Context) error

DeployPrometheusService provides a mock function with given fields: ctx

func (*KubernetesDeployer) DeployWorker added in v0.3.0

func (_m *KubernetesDeployer) DeployWorker(ctx context.Context) error

DeployWorker provides a mock function with given fields: ctx

func (*KubernetesDeployer) ExtractTokens added in v0.4.0

func (_m *KubernetesDeployer) ExtractTokens(ctx context.Context, stdout *bytes.Buffer, stderr *bytes.Buffer) error

ExtractTokens provides a mock function with given fields: ctx, stdout, stderr

func (*KubernetesDeployer) StartInitPostgres added in v0.4.0

func (_m *KubernetesDeployer) StartInitPostgres(ctx context.Context) error

StartInitPostgres provides a mock function with given fields: ctx

func (*KubernetesDeployer) WithConfig added in v0.3.0

func (_m *KubernetesDeployer) WithConfig(config string) error

WithConfig provides a mock function with given fields: config

type KubernetesRemover added in v0.3.0

type KubernetesRemover struct {
	mock.Mock
}

KubernetesRemover is an autogenerated mock type for the KubernetesRemover type

func NewKubernetesRemover added in v0.3.0

func NewKubernetesRemover(t mockConstructorTestingTNewKubernetesRemover) *KubernetesRemover

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

func (*KubernetesRemover) RemoveNamespace added in v0.3.0

func (_m *KubernetesRemover) RemoveNamespace(ctx context.Context) error

RemoveNamespace provides a mock function with given fields: ctx

func (*KubernetesRemover) WithConfig added in v0.3.0

func (_m *KubernetesRemover) WithConfig(config string) error

WithConfig provides a mock function with given fields: config

type ModHandler added in v0.3.0

type ModHandler struct {
	mock.Mock
}

ModHandler is an autogenerated mock type for the ModHandler type

func NewModHandler added in v0.3.0

func NewModHandler(t mockConstructorTestingTNewModHandler) *ModHandler

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

func (*ModHandler) Create added in v0.3.0

func (_m *ModHandler) Create(ctx context.Context, modName string) error

Create provides a mock function with given fields: ctx, modName

func (*ModHandler) Delete added in v0.3.0

func (_m *ModHandler) Delete(ctx context.Context, modName string) error

Delete provides a mock function with given fields: ctx, modName

func (*ModHandler) Get added in v0.3.0

func (_m *ModHandler) Get(ctx context.Context, modName string) (pkg.SingleModule, error)

Get provides a mock function with given fields: ctx, modName

func (*ModHandler) List added in v0.3.0

func (_m *ModHandler) List(ctx context.Context) (pkg.ModuleNameList, error)

List provides a mock function with given fields: ctx

func (*ModHandler) Update added in v0.3.0

func (_m *ModHandler) Update(ctx context.Context, modName string, newName string) error

Update provides a mock function with given fields: ctx, modName, newName

type UserHandler added in v0.4.0

type UserHandler struct {
	mock.Mock
}

UserHandler is an autogenerated mock type for the UserHandler type

func NewUserHandler added in v0.4.0

func NewUserHandler(t mockConstructorTestingTNewUserHandler) *UserHandler

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

func (*UserHandler) Create added in v0.4.0

func (_m *UserHandler) Create(ctx context.Context, name string) (pkg.UserNameToken, error)

Create provides a mock function with given fields: ctx, name

func (*UserHandler) List added in v0.4.0

func (_m *UserHandler) List(ctx context.Context) (pkg.UserNamesList, error)

List provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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