Documentation ¶
Index ¶
- type Dir
- func (_m *Dir) CleanupOldReleases(keepReleases int) error
- func (_m *Dir) CopyUnpackedArchive(unpackDir string) error
- func (_m *Dir) CurrentVersion() (string, error)
- func (_m *Dir) CurrentVersionMatches(version string) bool
- func (_m *Dir) EXPECT() *Dir_Expecter
- func (_m *Dir) UpdateCurrentReleaseSymlink(version string) error
- func (_m *Dir) WithInstallerLock(fn func() error) error
- type Dir_CleanupOldReleases_Call
- type Dir_CopyUnpackedArchive_Call
- type Dir_CurrentVersionMatches_Call
- func (_c *Dir_CurrentVersionMatches_Call) Return(_a0 bool) *Dir_CurrentVersionMatches_Call
- func (_c *Dir_CurrentVersionMatches_Call) Run(run func(version string)) *Dir_CurrentVersionMatches_Call
- func (_c *Dir_CurrentVersionMatches_Call) RunAndReturn(run func(string) bool) *Dir_CurrentVersionMatches_Call
- type Dir_CurrentVersion_Call
- type Dir_Expecter
- func (_e *Dir_Expecter) CleanupOldReleases(keepReleases interface{}) *Dir_CleanupOldReleases_Call
- func (_e *Dir_Expecter) CopyUnpackedArchive(unpackDir interface{}) *Dir_CopyUnpackedArchive_Call
- func (_e *Dir_Expecter) CurrentVersion() *Dir_CurrentVersion_Call
- func (_e *Dir_Expecter) CurrentVersionMatches(version interface{}) *Dir_CurrentVersionMatches_Call
- func (_e *Dir_Expecter) UpdateCurrentReleaseSymlink(version interface{}) *Dir_UpdateCurrentReleaseSymlink_Call
- func (_e *Dir_Expecter) WithInstallerLock(fn interface{}) *Dir_WithInstallerLock_Call
- type Dir_UpdateCurrentReleaseSymlink_Call
- func (_c *Dir_UpdateCurrentReleaseSymlink_Call) Return(_a0 error) *Dir_UpdateCurrentReleaseSymlink_Call
- func (_c *Dir_UpdateCurrentReleaseSymlink_Call) Run(run func(version string)) *Dir_UpdateCurrentReleaseSymlink_Call
- func (_c *Dir_UpdateCurrentReleaseSymlink_Call) RunAndReturn(run func(string) error) *Dir_UpdateCurrentReleaseSymlink_Call
- type Dir_WithInstallerLock_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
Dir is an autogenerated mock type for the Dir type
func NewDir ¶
NewDir creates a new instance of Dir. 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 (*Dir) CleanupOldReleases ¶
CleanupOldReleases provides a mock function with given fields: keepReleases
func (*Dir) CopyUnpackedArchive ¶
CopyUnpackedArchive provides a mock function with given fields: unpackDir
func (*Dir) CurrentVersion ¶
CurrentVersion provides a mock function with given fields:
func (*Dir) CurrentVersionMatches ¶
CurrentVersionMatches provides a mock function with given fields: version
func (*Dir) EXPECT ¶
func (_m *Dir) EXPECT() *Dir_Expecter
func (*Dir) UpdateCurrentReleaseSymlink ¶
UpdateCurrentReleaseSymlink provides a mock function with given fields: version
func (*Dir) WithInstallerLock ¶
WithInstallerLock provides a mock function with given fields: fn
type Dir_CleanupOldReleases_Call ¶
Dir_CleanupOldReleases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanupOldReleases'
func (*Dir_CleanupOldReleases_Call) Return ¶
func (_c *Dir_CleanupOldReleases_Call) Return(_a0 error) *Dir_CleanupOldReleases_Call
func (*Dir_CleanupOldReleases_Call) Run ¶
func (_c *Dir_CleanupOldReleases_Call) Run(run func(keepReleases int)) *Dir_CleanupOldReleases_Call
func (*Dir_CleanupOldReleases_Call) RunAndReturn ¶ added in v1.0.73
func (_c *Dir_CleanupOldReleases_Call) RunAndReturn(run func(int) error) *Dir_CleanupOldReleases_Call
type Dir_CopyUnpackedArchive_Call ¶
Dir_CopyUnpackedArchive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CopyUnpackedArchive'
func (*Dir_CopyUnpackedArchive_Call) Return ¶
func (_c *Dir_CopyUnpackedArchive_Call) Return(_a0 error) *Dir_CopyUnpackedArchive_Call
func (*Dir_CopyUnpackedArchive_Call) Run ¶
func (_c *Dir_CopyUnpackedArchive_Call) Run(run func(unpackDir string)) *Dir_CopyUnpackedArchive_Call
func (*Dir_CopyUnpackedArchive_Call) RunAndReturn ¶ added in v1.0.73
func (_c *Dir_CopyUnpackedArchive_Call) RunAndReturn(run func(string) error) *Dir_CopyUnpackedArchive_Call
type Dir_CurrentVersionMatches_Call ¶
Dir_CurrentVersionMatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentVersionMatches'
func (*Dir_CurrentVersionMatches_Call) Return ¶
func (_c *Dir_CurrentVersionMatches_Call) Return(_a0 bool) *Dir_CurrentVersionMatches_Call
func (*Dir_CurrentVersionMatches_Call) Run ¶
func (_c *Dir_CurrentVersionMatches_Call) Run(run func(version string)) *Dir_CurrentVersionMatches_Call
func (*Dir_CurrentVersionMatches_Call) RunAndReturn ¶ added in v1.0.73
func (_c *Dir_CurrentVersionMatches_Call) RunAndReturn(run func(string) bool) *Dir_CurrentVersionMatches_Call
type Dir_CurrentVersion_Call ¶
Dir_CurrentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentVersion'
func (*Dir_CurrentVersion_Call) Return ¶
func (_c *Dir_CurrentVersion_Call) Return(_a0 string, _a1 error) *Dir_CurrentVersion_Call
func (*Dir_CurrentVersion_Call) Run ¶
func (_c *Dir_CurrentVersion_Call) Run(run func()) *Dir_CurrentVersion_Call
func (*Dir_CurrentVersion_Call) RunAndReturn ¶ added in v1.0.73
func (_c *Dir_CurrentVersion_Call) RunAndReturn(run func() (string, error)) *Dir_CurrentVersion_Call
type Dir_Expecter ¶
type Dir_Expecter struct {
// contains filtered or unexported fields
}
func (*Dir_Expecter) CleanupOldReleases ¶
func (_e *Dir_Expecter) CleanupOldReleases(keepReleases interface{}) *Dir_CleanupOldReleases_Call
CleanupOldReleases is a helper method to define mock.On call
- keepReleases int
func (*Dir_Expecter) CopyUnpackedArchive ¶
func (_e *Dir_Expecter) CopyUnpackedArchive(unpackDir interface{}) *Dir_CopyUnpackedArchive_Call
CopyUnpackedArchive is a helper method to define mock.On call
- unpackDir string
func (*Dir_Expecter) CurrentVersion ¶
func (_e *Dir_Expecter) CurrentVersion() *Dir_CurrentVersion_Call
CurrentVersion is a helper method to define mock.On call
func (*Dir_Expecter) CurrentVersionMatches ¶
func (_e *Dir_Expecter) CurrentVersionMatches(version interface{}) *Dir_CurrentVersionMatches_Call
CurrentVersionMatches is a helper method to define mock.On call
- version string
func (*Dir_Expecter) UpdateCurrentReleaseSymlink ¶
func (_e *Dir_Expecter) UpdateCurrentReleaseSymlink(version interface{}) *Dir_UpdateCurrentReleaseSymlink_Call
UpdateCurrentReleaseSymlink is a helper method to define mock.On call
- version string
func (*Dir_Expecter) WithInstallerLock ¶
func (_e *Dir_Expecter) WithInstallerLock(fn interface{}) *Dir_WithInstallerLock_Call
WithInstallerLock is a helper method to define mock.On call
- fn func() error
type Dir_UpdateCurrentReleaseSymlink_Call ¶
Dir_UpdateCurrentReleaseSymlink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCurrentReleaseSymlink'
func (*Dir_UpdateCurrentReleaseSymlink_Call) Return ¶
func (_c *Dir_UpdateCurrentReleaseSymlink_Call) Return(_a0 error) *Dir_UpdateCurrentReleaseSymlink_Call
func (*Dir_UpdateCurrentReleaseSymlink_Call) Run ¶
func (_c *Dir_UpdateCurrentReleaseSymlink_Call) Run(run func(version string)) *Dir_UpdateCurrentReleaseSymlink_Call
func (*Dir_UpdateCurrentReleaseSymlink_Call) RunAndReturn ¶ added in v1.0.73
func (_c *Dir_UpdateCurrentReleaseSymlink_Call) RunAndReturn(run func(string) error) *Dir_UpdateCurrentReleaseSymlink_Call
type Dir_WithInstallerLock_Call ¶
Dir_WithInstallerLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithInstallerLock'
func (*Dir_WithInstallerLock_Call) Return ¶
func (_c *Dir_WithInstallerLock_Call) Return(_a0 error) *Dir_WithInstallerLock_Call
func (*Dir_WithInstallerLock_Call) Run ¶
func (_c *Dir_WithInstallerLock_Call) Run(run func(fn func() error)) *Dir_WithInstallerLock_Call
func (*Dir_WithInstallerLock_Call) RunAndReturn ¶ added in v1.0.73
func (_c *Dir_WithInstallerLock_Call) RunAndReturn(run func(func() error) error) *Dir_WithInstallerLock_Call