mocks

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 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 Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Add

func (_m *Client) Add(path string) error

Add provides a mock function with given fields: path

func (*Client) Branch

func (_m *Client) Branch(sourceBranch string, targetBranch string) error

Branch provides a mock function with given fields: sourceBranch, targetBranch

func (*Client) Checkout

func (_m *Client) Checkout(revision string) error

Checkout provides a mock function with given fields: revision

func (*Client) Commit

func (_m *Client) Commit(pathSpec string, opts *git.CommitOptions) error

Commit provides a mock function with given fields: pathSpec, opts

func (*Client) CommitSHA

func (_m *Client) CommitSHA() (string, error)

CommitSHA provides a mock function with given fields:

func (*Client) Config

func (_m *Client) Config(username string, email string) error

Config provides a mock function with given fields: username, email

func (*Client) Fetch

func (_m *Client) Fetch(revision string) error

Fetch provides a mock function with given fields: revision

func (*Client) Init

func (_m *Client) Init() error

Init provides a mock function with given fields:

func (*Client) LsFiles

func (_m *Client) LsFiles(path string) ([]string, error)

LsFiles provides a mock function with given fields: path

func (*Client) LsLargeFiles

func (_m *Client) LsLargeFiles() ([]string, error)

LsLargeFiles provides a mock function with given fields:

func (*Client) LsRefs

func (_m *Client) LsRefs() (*git.Refs, error)

LsRefs provides a mock function with given fields:

func (*Client) LsRemote

func (_m *Client) LsRemote(revision string) (string, error)

LsRemote provides a mock function with given fields: revision

func (*Client) Push

func (_m *Client) Push(remote string, branch string, force bool) error

Push provides a mock function with given fields: remote, branch, force

func (*Client) RevisionMetadata

func (_m *Client) RevisionMetadata(revision string) (*git.RevisionMetadata, error)

RevisionMetadata provides a mock function with given fields: revision

func (*Client) Root

func (_m *Client) Root() string

Root provides a mock function with given fields:

func (*Client) SymRefToBranch

func (_m *Client) SymRefToBranch(symRef string) (string, error)

SymRefToBranch provides a mock function with given fields: symRef

func (*Client) VerifyCommitSignature

func (_m *Client) VerifyCommitSignature(_a0 string) (string, error)

VerifyCommitSignature provides a mock function with given fields: _a0

type Creds

type Creds struct {
	mock.Mock
}

Creds is an autogenerated mock type for the Creds type

func (*Creds) Environ

func (_m *Creds) Environ() (io.Closer, []string, error)

Environ provides a mock function with given fields:

type GenericHTTPSCreds added in v0.11.0

type GenericHTTPSCreds struct {
	mock.Mock
}

GenericHTTPSCreds is an autogenerated mock type for the GenericHTTPSCreds type

func (*GenericHTTPSCreds) Environ added in v0.11.0

func (_m *GenericHTTPSCreds) Environ() (io.Closer, []string, error)

Environ provides a mock function with given fields:

func (*GenericHTTPSCreds) GetClientCertData added in v0.11.0

func (_m *GenericHTTPSCreds) GetClientCertData() string

GetClientCertData provides a mock function with given fields:

func (*GenericHTTPSCreds) GetClientCertKey added in v0.11.0

func (_m *GenericHTTPSCreds) GetClientCertKey() string

GetClientCertKey provides a mock function with given fields:

func (*GenericHTTPSCreds) HasClientCert added in v0.11.0

func (_m *GenericHTTPSCreds) HasClientCert() bool

HasClientCert 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