mocks

package
v3.0.0-...-181f513 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 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 Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend

func NewBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *Backend

NewBackend creates a new instance of Backend. 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 (*Backend) DestroyStep

func (_m *Backend) DestroyStep(ctx context.Context, step *types.Step, taskUUID string) error

DestroyStep provides a mock function with given fields: ctx, step, taskUUID

func (*Backend) DestroyWorkflow

func (_m *Backend) DestroyWorkflow(ctx context.Context, conf *types.Config, taskUUID string) error

DestroyWorkflow provides a mock function with given fields: ctx, conf, taskUUID

func (*Backend) Flags

func (_m *Backend) Flags() []cli.Flag

Flags provides a mock function with given fields:

func (*Backend) IsAvailable

func (_m *Backend) IsAvailable(ctx context.Context) bool

IsAvailable provides a mock function with given fields: ctx

func (*Backend) Load

func (_m *Backend) Load(ctx context.Context) (*types.BackendInfo, error)

Load provides a mock function with given fields: ctx

func (*Backend) Name

func (_m *Backend) Name() string

Name provides a mock function with given fields:

func (*Backend) SetupWorkflow

func (_m *Backend) SetupWorkflow(ctx context.Context, conf *types.Config, taskUUID string) error

SetupWorkflow provides a mock function with given fields: ctx, conf, taskUUID

func (*Backend) StartStep

func (_m *Backend) StartStep(ctx context.Context, step *types.Step, taskUUID string) error

StartStep provides a mock function with given fields: ctx, step, taskUUID

func (*Backend) TailStep

func (_m *Backend) TailStep(ctx context.Context, step *types.Step, taskUUID string) (io.ReadCloser, error)

TailStep provides a mock function with given fields: ctx, step, taskUUID

func (*Backend) WaitStep

func (_m *Backend) WaitStep(ctx context.Context, step *types.Step, taskUUID string) (*types.State, error)

WaitStep provides a mock function with given fields: ctx, step, taskUUID

Jump to

Keyboard shortcuts

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