Documentation
¶
Index ¶
- type Client
- func (_m *Client) Add(ctx context.Context, path string) error
- func (_m *Client) Branch(ctx context.Context, sourceBranch string, targetBranch string) error
- func (_m *Client) ChangedFiles(ctx context.Context, revision string, targetRevision string) ([]string, error)
- func (_m *Client) Checkout(ctx context.Context, revision string, submoduleEnabled bool) error
- func (_m *Client) Commit(ctx context.Context, pathSpec string, opts *git.CommitOptions) error
- func (_m *Client) CommitSHA(context.Context) (string, error)
- func (_m *Client) Config(ctx context.Context, username string, email string) error
- func (_m *Client) Fetch(ctx context.Context, revision string) error
- func (_m *Client) Init(context.Context) error
- func (_m *Client) IsAnnotatedTag(ctx context.Context, revision string) bool
- func (_m *Client) LsFiles(ctx context.Context, path string, enableNewGitFileGlobbing bool) ([]string, error)
- func (_m *Client) LsLargeFiles(context.Context) ([]string, error)
- func (_m *Client) LsRefs(context.Context) (*git.Refs, error)
- func (_m *Client) LsRemote(ctx context.Context, revision string) (string, error)
- func (_m *Client) Push(ctx context.Context, remote string, branch string, force bool) error
- func (_m *Client) RevisionMetadata(ctx context.Context, revision string) (*git.RevisionMetadata, error)
- func (_m *Client) Root() string
- func (_m *Client) ShallowFetch(ctx context.Context, revision string, depth int) error
- func (_m *Client) SigningConfig(signingkey string) error
- func (_m *Client) Submodule(context.Context) error
- func (_m *Client) SymRefToBranch(ctx context.Context, symRef string) (string, error)
- func (_m *Client) VerifyCommitSignature(ctx context.Context, revision string) (string, error)
- type Creds
- type GenericHTTPSCreds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v0.14.0
NewClient creates a new instance of Client. 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 (*Client) Branch ¶
Branch provides a mock function with given fields: sourceBranch, targetBranch
func (*Client) ChangedFiles ¶ added in v0.14.0
func (_m *Client) ChangedFiles(ctx context.Context, revision string, targetRevision string) ([]string, error)
ChangedFiles provides a mock function with given fields: revision, targetRevision
func (*Client) Checkout ¶
Checkout provides a mock function with given fields: revision, submoduleEnabled
func (*Client) IsAnnotatedTag ¶ added in v0.14.0
IsAnnotatedTag provides a mock function with given fields: _a0
func (*Client) LsFiles ¶
func (_m *Client) LsFiles(ctx context.Context, path string, enableNewGitFileGlobbing bool) ([]string, error)
LsFiles provides a mock function with given fields: path, enableNewGitFileGlobbing
func (*Client) LsLargeFiles ¶
LsLargeFiles provides a mock function with given fields:
func (*Client) RevisionMetadata ¶
func (_m *Client) RevisionMetadata(ctx context.Context, revision string) (*git.RevisionMetadata, error)
RevisionMetadata provides a mock function with given fields: revision
func (*Client) ShallowFetch ¶ added in v0.15.0
Fetch provides a mock function with given fields: revision
func (*Client) SigningConfig ¶ added in v0.14.0
SigningConfig provides a mock function with given fields: signingkey
func (*Client) SymRefToBranch ¶
SymRefToBranch provides a mock function with given fields: symRef
type GenericHTTPSCreds ¶ added in v0.11.0
GenericHTTPSCreds is an autogenerated mock type for the GenericHTTPSCreds type
func (*GenericHTTPSCreds) Environ ¶ added in v0.11.0
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: