mocks

package
v1.226.0-protecode-cus... Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	mock.Mock
}

Artifact is an autogenerated mock type for the Artifact type

func (*Artifact) FileName

func (_m *Artifact) FileName() string

FileName provides a mock function with given fields:

func (*Artifact) GetData

func (_m *Artifact) GetData(ctx context.Context) ([]byte, error)

GetData provides a mock function with given fields: ctx

func (*Artifact) Save

func (_m *Artifact) Save(ctx context.Context, path string) (bool, error)

Save provides a mock function with given fields: ctx, path

func (*Artifact) SaveToDir

func (_m *Artifact) SaveToDir(ctx context.Context, dir string) (bool, error)

SaveToDir provides a mock function with given fields: ctx, dir

type Build

type Build struct {
	mock.Mock
}

Build is an autogenerated mock type for the Build type

func (*Build) GetArtifacts

func (_m *Build) GetArtifacts() []gojenkins.Artifact

GetArtifacts provides a mock function with given fields:

func (*Build) IsRunning

func (_m *Build) IsRunning(ctx context.Context) bool

IsRunning provides a mock function with given fields: ctx

type CredentialsManager

type CredentialsManager struct {
	mock.Mock
}

CredentialsManager is an autogenerated mock type for the CredentialsManager type

func (*CredentialsManager) Update

func (_m *CredentialsManager) Update(_a0 context.Context, _a1 string, _a2 string, _a3 interface{}) error

Update provides a mock function with given fields: _a0, _a1, _a2, _a3

type Jenkins

type Jenkins struct {
	mock.Mock
}

Jenkins is an autogenerated mock type for the Jenkins type

func (*Jenkins) BuildJob

func (_m *Jenkins) BuildJob(ctx context.Context, name string, params map[string]string) (int64, error)

BuildJob provides a mock function with given fields: ctx, name, params

func (*Jenkins) GetBuildFromQueueID

func (_m *Jenkins) GetBuildFromQueueID(ctx context.Context, job *gojenkins.Job, queueid int64) (*gojenkins.Build, error)

GetBuildFromQueueID provides a mock function with given fields: ctx, job, queueid

func (*Jenkins) GetJobObj

func (_m *Jenkins) GetJobObj(ctx context.Context, name string) *gojenkins.Job

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

type Job

type Job struct {
	mock.Mock
}

Job is an autogenerated mock type for the Job type

func (*Job) GetJob

func (_m *Job) GetJob() *gojenkins.Job

GetJob provides a mock function with given fields:

func (*Job) InvokeSimple

func (_m *Job) InvokeSimple(ctx context.Context, params map[string]string) (int64, error)

InvokeSimple provides a mock function with given fields: ctx, params

func (*Job) Poll

func (_m *Job) Poll(_a0 context.Context) (int, error)

Poll provides a mock function with given fields: _a0

type Task

type Task struct {
	mock.Mock
}

Task is an autogenerated mock type for the Task type

func (*Task) BuildNumber

func (_m *Task) BuildNumber() (int64, error)

BuildNumber provides a mock function with given fields:

func (*Task) HasStarted

func (_m *Task) HasStarted() bool

HasStarted provides a mock function with given fields:

func (*Task) Poll

func (_m *Task) Poll(_a0 context.Context) (int, error)

Poll provides a mock function with given fields: _a0

func (*Task) WaitToStart

func (_m *Task) WaitToStart(ctx context.Context, pollInterval time.Duration) (int64, error)

WaitToStart provides a mock function with given fields: ctx, pollInterval

Jump to

Keyboard shortcuts

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