Documentation ¶
Index ¶
- type Repo
- func (_m *Repo) DownloadIndex(destPath string) error
- func (_m *Repo) EXPECT() *Repo_Expecter
- func (_m *Repo) HasIndex() (bool, error)
- func (_m *Repo) IsLocked() bool
- func (_m *Repo) Lock() error
- func (_m *Repo) RepoURL() string
- func (_m *Repo) Unlock() error
- func (_m *Repo) UploadChart(fromPath string) error
- func (_m *Repo) UploadIndex(fromPath string) error
- type Repo_DownloadIndex_Call
- type Repo_Expecter
- func (_e *Repo_Expecter) DownloadIndex(destPath interface{}) *Repo_DownloadIndex_Call
- func (_e *Repo_Expecter) HasIndex() *Repo_HasIndex_Call
- func (_e *Repo_Expecter) IsLocked() *Repo_IsLocked_Call
- func (_e *Repo_Expecter) Lock() *Repo_Lock_Call
- func (_e *Repo_Expecter) RepoURL() *Repo_RepoURL_Call
- func (_e *Repo_Expecter) Unlock() *Repo_Unlock_Call
- func (_e *Repo_Expecter) UploadChart(fromPath interface{}) *Repo_UploadChart_Call
- func (_e *Repo_Expecter) UploadIndex(fromPath interface{}) *Repo_UploadIndex_Call
- type Repo_HasIndex_Call
- type Repo_IsLocked_Call
- type Repo_Lock_Call
- type Repo_RepoURL_Call
- type Repo_Unlock_Call
- type Repo_UploadChart_Call
- type Repo_UploadIndex_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
Repo is an autogenerated mock type for the Repo type
func NewRepo ¶
NewRepo creates a new instance of Repo. 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 (*Repo) DownloadIndex ¶
DownloadIndex provides a mock function with given fields: destPath
func (*Repo) EXPECT ¶
func (_m *Repo) EXPECT() *Repo_Expecter
func (*Repo) UploadChart ¶
UploadChart provides a mock function with given fields: fromPath
func (*Repo) UploadIndex ¶
UploadIndex provides a mock function with given fields: fromPath
type Repo_DownloadIndex_Call ¶
Repo_DownloadIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadIndex'
func (*Repo_DownloadIndex_Call) Return ¶
func (_c *Repo_DownloadIndex_Call) Return(_a0 error) *Repo_DownloadIndex_Call
func (*Repo_DownloadIndex_Call) Run ¶
func (_c *Repo_DownloadIndex_Call) Run(run func(destPath string)) *Repo_DownloadIndex_Call
func (*Repo_DownloadIndex_Call) RunAndReturn ¶
func (_c *Repo_DownloadIndex_Call) RunAndReturn(run func(string) error) *Repo_DownloadIndex_Call
type Repo_Expecter ¶
type Repo_Expecter struct {
// contains filtered or unexported fields
}
func (*Repo_Expecter) DownloadIndex ¶
func (_e *Repo_Expecter) DownloadIndex(destPath interface{}) *Repo_DownloadIndex_Call
DownloadIndex is a helper method to define mock.On call
- destPath string
func (*Repo_Expecter) HasIndex ¶
func (_e *Repo_Expecter) HasIndex() *Repo_HasIndex_Call
HasIndex is a helper method to define mock.On call
func (*Repo_Expecter) IsLocked ¶
func (_e *Repo_Expecter) IsLocked() *Repo_IsLocked_Call
IsLocked is a helper method to define mock.On call
func (*Repo_Expecter) Lock ¶
func (_e *Repo_Expecter) Lock() *Repo_Lock_Call
Lock is a helper method to define mock.On call
func (*Repo_Expecter) RepoURL ¶
func (_e *Repo_Expecter) RepoURL() *Repo_RepoURL_Call
RepoURL is a helper method to define mock.On call
func (*Repo_Expecter) Unlock ¶
func (_e *Repo_Expecter) Unlock() *Repo_Unlock_Call
Unlock is a helper method to define mock.On call
func (*Repo_Expecter) UploadChart ¶
func (_e *Repo_Expecter) UploadChart(fromPath interface{}) *Repo_UploadChart_Call
UploadChart is a helper method to define mock.On call
- fromPath string
func (*Repo_Expecter) UploadIndex ¶
func (_e *Repo_Expecter) UploadIndex(fromPath interface{}) *Repo_UploadIndex_Call
UploadIndex is a helper method to define mock.On call
- fromPath string
type Repo_HasIndex_Call ¶
Repo_HasIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasIndex'
func (*Repo_HasIndex_Call) Return ¶
func (_c *Repo_HasIndex_Call) Return(_a0 bool, _a1 error) *Repo_HasIndex_Call
func (*Repo_HasIndex_Call) Run ¶
func (_c *Repo_HasIndex_Call) Run(run func()) *Repo_HasIndex_Call
func (*Repo_HasIndex_Call) RunAndReturn ¶
func (_c *Repo_HasIndex_Call) RunAndReturn(run func() (bool, error)) *Repo_HasIndex_Call
type Repo_IsLocked_Call ¶
Repo_IsLocked_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLocked'
func (*Repo_IsLocked_Call) Return ¶
func (_c *Repo_IsLocked_Call) Return(_a0 bool) *Repo_IsLocked_Call
func (*Repo_IsLocked_Call) Run ¶
func (_c *Repo_IsLocked_Call) Run(run func()) *Repo_IsLocked_Call
func (*Repo_IsLocked_Call) RunAndReturn ¶
func (_c *Repo_IsLocked_Call) RunAndReturn(run func() bool) *Repo_IsLocked_Call
type Repo_Lock_Call ¶
Repo_Lock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Lock'
func (*Repo_Lock_Call) Return ¶
func (_c *Repo_Lock_Call) Return(_a0 error) *Repo_Lock_Call
func (*Repo_Lock_Call) Run ¶
func (_c *Repo_Lock_Call) Run(run func()) *Repo_Lock_Call
func (*Repo_Lock_Call) RunAndReturn ¶
func (_c *Repo_Lock_Call) RunAndReturn(run func() error) *Repo_Lock_Call
type Repo_RepoURL_Call ¶
Repo_RepoURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepoURL'
func (*Repo_RepoURL_Call) Return ¶
func (_c *Repo_RepoURL_Call) Return(_a0 string) *Repo_RepoURL_Call
func (*Repo_RepoURL_Call) Run ¶
func (_c *Repo_RepoURL_Call) Run(run func()) *Repo_RepoURL_Call
func (*Repo_RepoURL_Call) RunAndReturn ¶
func (_c *Repo_RepoURL_Call) RunAndReturn(run func() string) *Repo_RepoURL_Call
type Repo_Unlock_Call ¶
Repo_Unlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unlock'
func (*Repo_Unlock_Call) Return ¶
func (_c *Repo_Unlock_Call) Return(_a0 error) *Repo_Unlock_Call
func (*Repo_Unlock_Call) Run ¶
func (_c *Repo_Unlock_Call) Run(run func()) *Repo_Unlock_Call
func (*Repo_Unlock_Call) RunAndReturn ¶
func (_c *Repo_Unlock_Call) RunAndReturn(run func() error) *Repo_Unlock_Call
type Repo_UploadChart_Call ¶
Repo_UploadChart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadChart'
func (*Repo_UploadChart_Call) Return ¶
func (_c *Repo_UploadChart_Call) Return(_a0 error) *Repo_UploadChart_Call
func (*Repo_UploadChart_Call) Run ¶
func (_c *Repo_UploadChart_Call) Run(run func(fromPath string)) *Repo_UploadChart_Call
func (*Repo_UploadChart_Call) RunAndReturn ¶
func (_c *Repo_UploadChart_Call) RunAndReturn(run func(string) error) *Repo_UploadChart_Call
type Repo_UploadIndex_Call ¶
Repo_UploadIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadIndex'
func (*Repo_UploadIndex_Call) Return ¶
func (_c *Repo_UploadIndex_Call) Return(_a0 error) *Repo_UploadIndex_Call
func (*Repo_UploadIndex_Call) Run ¶
func (_c *Repo_UploadIndex_Call) Run(run func(fromPath string)) *Repo_UploadIndex_Call
func (*Repo_UploadIndex_Call) RunAndReturn ¶
func (_c *Repo_UploadIndex_Call) RunAndReturn(run func(string) error) *Repo_UploadIndex_Call