Documentation ¶
Index ¶
- type Client
- func (_m *Client) Check() bool
- func (_m *Client) FindCommitByHash(hash string, includeChanges bool) (vcsapi.Commit, error)
- func (_m *Client) FindCommitsBetween(from *vcsapi.VCSRef, to *vcsapi.VCSRef, includeChanges bool, limit int) ([]vcsapi.Commit, error)
- func (_m *Client) FindLatestRelease(stable bool) (vcsapi.VCSRelease, error)
- func (_m *Client) GetTags() []vcsapi.VCSRef
- func (_m *Client) GetTagsByHash(hash string) []vcsapi.VCSRef
- func (_m *Client) VCSHead() (vcsapi.VCSRef, error)
- func (_m *Client) VCSHostServer(remote string) string
- func (_m *Client) VCSHostType(server string) string
- func (_m *Client) VCSRefToInternalRef(ref vcsapi.VCSRef) string
- func (_m *Client) VCSRemote() string
- func (_m *Client) VCSType() string
- type Normalizer
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 ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
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.
func (*Client) FindCommitByHash ¶
FindCommitByHash provides a mock function with given fields: hash, includeChanges
func (*Client) FindCommitsBetween ¶
func (_m *Client) FindCommitsBetween(from *vcsapi.VCSRef, to *vcsapi.VCSRef, includeChanges bool, limit int) ([]vcsapi.Commit, error)
FindCommitsBetween provides a mock function with given fields: from, to, includeChanges, limit
func (*Client) FindLatestRelease ¶
func (_m *Client) FindLatestRelease(stable bool) (vcsapi.VCSRelease, error)
FindLatestRelease provides a mock function with given fields: stable
func (*Client) GetTagsByHash ¶
GetTagsByHash provides a mock function with given fields: hash
func (*Client) VCSHostServer ¶
VCSHostServer provides a mock function with given fields: remote
func (*Client) VCSHostType ¶
VCSHostType provides a mock function with given fields: server
func (*Client) VCSRefToInternalRef ¶
VCSRefToInternalRef provides a mock function with given fields: ref
type Normalizer ¶
Normalizer is an autogenerated mock type for the Normalizer type
func NewNormalizer ¶
func NewNormalizer(t mockConstructorTestingTNewNormalizer) *Normalizer
NewNormalizer creates a new instance of Normalizer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Normalizer) Check ¶
func (_m *Normalizer) Check(env map[string]string) bool
Check provides a mock function with given fields: env
func (*Normalizer) Denormalize ¶
func (_m *Normalizer) Denormalize(spec ncispec.NormalizeCISpec) map[string]string
Denormalize provides a mock function with given fields: spec
func (*Normalizer) GetName ¶
func (_m *Normalizer) GetName() string
GetName provides a mock function with given fields:
func (*Normalizer) GetSlug ¶
func (_m *Normalizer) GetSlug() string
GetSlug provides a mock function with given fields:
func (*Normalizer) Normalize ¶
func (_m *Normalizer) Normalize(env map[string]string) ncispec.NormalizeCISpec
Normalize provides a mock function with given fields: env