mocks

package
v0.0.0-...-dcdb2a0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForType

func ForType(t component.Type) interface{}

ForType returns an implementation of the given type that supports mocking.

func Mock

func Mock(v interface{}) *mock.Mock

Mock returns the Mock field for the given interface. The interface value should be one of the mocks in this package. This will panic if an incorrect value is given, error checking is not done.

Types

type AccessInfo

type AccessInfo struct {
	mock.Mock
}

AccessInfo is an autogenerated mock type for the AccessInfo type

type Artifact

type Artifact struct {
	mock.Mock
}

Artifact is an autogenerated mock type for the Artifact type

func (*Artifact) Labels

func (_m *Artifact) Labels() map[string]string

Labels provides a mock function with given fields:

type Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is an autogenerated mock type for the Authenticator type

func (*Authenticator) AuthFunc

func (_m *Authenticator) AuthFunc() interface{}

AuthFunc provides a mock function with given fields:

func (*Authenticator) ValidateAuthFunc

func (_m *Authenticator) ValidateAuthFunc() interface{}

ValidateAuthFunc provides a mock function with given fields:

type Builder

type Builder struct {
	mock.Mock
}

Builder is an autogenerated mock type for the Builder type

func (*Builder) BuildFunc

func (_m *Builder) BuildFunc() interface{}

BuildFunc provides a mock function with given fields:

type BuilderODR

type BuilderODR struct {
	mock.Mock
}

BuilderODR is an autogenerated mock type for the BuilderODR type

func (*BuilderODR) BuildODRFunc

func (_m *BuilderODR) BuildODRFunc() interface{}

BuildODRFunc provides a mock function with given fields:

type ConfigPlatform

type ConfigPlatform struct {
	mock.Mock
}

ConfigPlatform is an autogenerated mock type for the ConfigPlatform type

func (*ConfigPlatform) ConfigGetFunc

func (_m *ConfigPlatform) ConfigGetFunc() interface{}

ConfigGetFunc provides a mock function with given fields:

func (*ConfigPlatform) ConfigSetFunc

func (_m *ConfigPlatform) ConfigSetFunc() interface{}

ConfigSetFunc provides a mock function with given fields:

type ConfigSourcer

type ConfigSourcer struct {
	mock.Mock
}

ConfigSourcer is an autogenerated mock type for the ConfigSourcer type

func (*ConfigSourcer) ReadFunc

func (_m *ConfigSourcer) ReadFunc() interface{}

ReadFunc provides a mock function with given fields:

func (*ConfigSourcer) StopFunc

func (_m *ConfigSourcer) StopFunc() interface{}

StopFunc provides a mock function with given fields:

type Configurable

type Configurable struct {
	mock.Mock
}

Configurable is an autogenerated mock type for the Configurable type

func (*Configurable) Config

func (_m *Configurable) Config() (interface{}, error)

Config provides a mock function with given fields:

type ConfigurableNotify

type ConfigurableNotify struct {
	mock.Mock
}

ConfigurableNotify is an autogenerated mock type for the ConfigurableNotify type

func (*ConfigurableNotify) Config

func (_m *ConfigurableNotify) Config() (interface{}, error)

Config provides a mock function with given fields:

func (*ConfigurableNotify) ConfigSet

func (_m *ConfigurableNotify) ConfigSet(_a0 interface{}) error

ConfigSet provides a mock function with given fields: _a0

type Deployment

type Deployment struct {
	mock.Mock
}

Deployment is an autogenerated mock type for the Deployment type

type DeploymentWithUrl

type DeploymentWithUrl struct {
	mock.Mock
}

DeploymentWithUrl is an autogenerated mock type for the DeploymentWithUrl type

func (*DeploymentWithUrl) URL

func (_m *DeploymentWithUrl) URL() string

URL provides a mock function with given fields:

type Destroyer

type Destroyer struct {
	mock.Mock
}

Destroyer is an autogenerated mock type for the Destroyer type

func (*Destroyer) DestroyFunc

func (_m *Destroyer) DestroyFunc() interface{}

DestroyFunc provides a mock function with given fields:

type Documented

type Documented struct {
	mock.Mock
}

Documented is an autogenerated mock type for the Documented type

func (*Documented) Documentation

func (_m *Documented) Documentation() (*docs.Documentation, error)

Documentation provides a mock function with given fields:

type ExecPlatform

type ExecPlatform struct {
	mock.Mock
}

ExecPlatform is an autogenerated mock type for the ExecPlatform type

func (*ExecPlatform) ExecFunc

func (_m *ExecPlatform) ExecFunc() interface{}

ExecFunc provides a mock function with given fields:

type Execer

type Execer struct {
	mock.Mock
}

Execer is an autogenerated mock type for the Execer type

func (*Execer) ExecFunc

func (_m *Execer) ExecFunc() interface{}

ExecFunc provides a mock function with given fields:

type Generation

type Generation struct {
	mock.Mock
}

Generation is an autogenerated mock type for the Generation type

func (*Generation) GenerationFunc

func (_m *Generation) GenerationFunc() interface{}

GenerationFunc provides a mock function with given fields:

type LinesChunkWriter

type LinesChunkWriter struct {
	mock.Mock
}

LinesChunkWriter is an autogenerated mock type for the LinesChunkWriter type

func (*LinesChunkWriter) OutputLines

func (_m *LinesChunkWriter) OutputLines(_a0 []string) error

OutputLines provides a mock function with given fields: _a0

type LogPlatform

type LogPlatform struct {
	mock.Mock
}

LogPlatform is an autogenerated mock type for the LogPlatform type

func (*LogPlatform) LogsFunc

func (_m *LogPlatform) LogsFunc() interface{}

LogsFunc provides a mock function with given fields:

type LogViewer

type LogViewer struct {
	mock.Mock
}

LogViewer is an autogenerated mock type for the LogViewer type

func (*LogViewer) NextLogBatch

func (_m *LogViewer) NextLogBatch(ctx context.Context) ([]component.LogEvent, error)

NextLogBatch provides a mock function with given fields: ctx

type LogsPlatform

type LogsPlatform struct {
	mock.Mock
}

LogsPlatform is an autogenerated mock type for the LogsPlatform type

func (*LogsPlatform) LogsFunc

func (_m *LogsPlatform) LogsFunc() interface{}

LogsFunc provides a mock function with given fields:

type OutParameter

type OutParameter struct {
	mock.Mock
}

OutParameter is an autogenerated mock type for the OutParameter type

type Platform

type Platform struct {
	mock.Mock
}

Platform is an autogenerated mock type for the Platform type

func (*Platform) DeployFunc

func (_m *Platform) DeployFunc() interface{}

DeployFunc provides a mock function with given fields:

type PlatformReleaser

type PlatformReleaser struct {
	mock.Mock
}

PlatformReleaser is an autogenerated mock type for the PlatformReleaser type

func (*PlatformReleaser) DefaultReleaserFunc

func (_m *PlatformReleaser) DefaultReleaserFunc() interface{}

DefaultReleaserFunc provides a mock function with given fields:

type ProtoMarshaler

type ProtoMarshaler struct {
	mock.Mock
}

ProtoMarshaler is an autogenerated mock type for the ProtoMarshaler type

func (*ProtoMarshaler) Proto

Proto provides a mock function with given fields:

type Registry

type Registry struct {
	mock.Mock
}

Registry is an autogenerated mock type for the Registry type

func (*Registry) PushFunc

func (_m *Registry) PushFunc() interface{}

PushFunc provides a mock function with given fields:

type RegistryAccess

type RegistryAccess struct {
	mock.Mock
}

RegistryAccess is an autogenerated mock type for the RegistryAccess type

func (*RegistryAccess) AccessInfoFunc

func (_m *RegistryAccess) AccessInfoFunc() interface{}

AccessInfoFunc provides a mock function with given fields:

type Release

type Release struct {
	mock.Mock
}

Release is an autogenerated mock type for the Release type

func (*Release) URL

func (_m *Release) URL() string

URL provides a mock function with given fields:

type ReleaseManager

type ReleaseManager struct {
	mock.Mock
}

ReleaseManager is an autogenerated mock type for the ReleaseManager type

func (*ReleaseManager) ReleaseFunc

func (_m *ReleaseManager) ReleaseFunc() interface{}

ReleaseFunc provides a mock function with given fields:

type RunningTask

type RunningTask struct {
	mock.Mock
}

RunningTask is an autogenerated mock type for the RunningTask type

type Status

type Status struct {
	mock.Mock
}

Status is an autogenerated mock type for the Status type

func (*Status) StatusFunc

func (_m *Status) StatusFunc() interface{}

StatusFunc provides a mock function with given fields:

type TaskLauncher

type TaskLauncher struct {
	mock.Mock
}

TaskLauncher is an autogenerated mock type for the TaskLauncher type

func (*TaskLauncher) StartTaskFunc

func (_m *TaskLauncher) StartTaskFunc() interface{}

StartTaskFunc provides a mock function with given fields:

func (*TaskLauncher) StopTaskFunc

func (_m *TaskLauncher) StopTaskFunc() interface{}

StopTaskFunc provides a mock function with given fields:

func (*TaskLauncher) WatchTaskFunc

func (_m *TaskLauncher) WatchTaskFunc() interface{}

WatchTaskFunc provides a mock function with given fields:

type Template

type Template struct {
	mock.Mock
}

Template is an autogenerated mock type for the Template type

func (*Template) TemplateData

func (_m *Template) TemplateData() map[string]interface{}

TemplateData provides a mock function with given fields:

type WorkspaceDestroyer

type WorkspaceDestroyer struct {
	mock.Mock
}

WorkspaceDestroyer is an autogenerated mock type for the WorkspaceDestroyer type

func (*WorkspaceDestroyer) DestroyWorkspaceFunc

func (_m *WorkspaceDestroyer) DestroyWorkspaceFunc() interface{}

DestroyWorkspaceFunc provides a mock function with given fields:

Jump to

Keyboard shortcuts

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