mocks

package
v1.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 3 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() ([]byte, error)

GetData provides a mock function with given fields:

func (*Artifact) Save added in v1.111.0

func (_m *Artifact) Save(path string) (bool, error)

Save provides a mock function with given fields: path

func (*Artifact) SaveToDir

func (_m *Artifact) SaveToDir(dir string) (bool, error)

SaveToDir provides a mock function with given fields: 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() bool

IsRunning provides a mock function with given fields:

type CredentialsManager added in v1.108.0

type CredentialsManager struct {
	mock.Mock
}

CredentialsManager is an autogenerated mock type for the CredentialsManager type

func (*CredentialsManager) Update added in v1.108.0

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

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

type Jenkins

type Jenkins struct {
	mock.Mock
}

Jenkins is an autogenerated mock type for the Jenkins type

func (*Jenkins) BuildJob

func (_m *Jenkins) BuildJob(name string, options ...interface{}) (int64, error)

BuildJob provides a mock function with given fields: name, options

func (*Jenkins) GetBuild

func (_m *Jenkins) GetBuild(jobName string, number int64) (*gojenkins.Build, error)

GetBuild provides a mock function with given fields: jobName, number

func (*Jenkins) GetQueueItem

func (_m *Jenkins) GetQueueItem(id int64) (*gojenkins.Task, error)

GetQueueItem provides a mock function with given fields: id

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() (int, error)

Poll provides a mock function with given fields:

func (*Task) WaitToStart

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

WaitToStart provides a mock function with given fields: pollInterval

Jump to

Keyboard shortcuts

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