Documentation ¶
Index ¶
- type Client
- type ClientMock
- func (mmDelete *ClientMock) Delete(releaseName string) (err error)
- func (mmDelete *ClientMock) DeleteAfterCounter() uint64
- func (mmDelete *ClientMock) DeleteBeforeCounter() uint64
- func (m *ClientMock) MinimockDeleteDone() bool
- func (m *ClientMock) MinimockDeleteInspect()
- func (m *ClientMock) MinimockFinish()
- func (m *ClientMock) MinimockUpgradeDone() bool
- func (m *ClientMock) MinimockUpgradeInspect()
- func (m *ClientMock) MinimockWait(timeout mm_time.Duration)
- func (mmUpgrade *ClientMock) Upgrade(releaseName string, releaseNamespace string, templates map[string]interface{}, ...) (err error)
- func (mmUpgrade *ClientMock) UpgradeAfterCounter() uint64
- func (mmUpgrade *ClientMock) UpgradeBeforeCounter() uint64
- type ClientMockDeleteExpectation
- type ClientMockDeleteParams
- type ClientMockDeleteResults
- type ClientMockUpgradeExpectation
- type ClientMockUpgradeParams
- type ClientMockUpgradeResults
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Upgrade(releaseName, releaseNamespace string, templates, values map[string]interface{}, debug bool, pr ...postrender.PostRenderer) error Delete(releaseName string) error }
type ClientMock ¶
type ClientMock struct { DeleteMock mClientMockDelete UpgradeMock mClientMockUpgrade // contains filtered or unexported fields }
ClientMock implements Client
func NewClientMock ¶
func NewClientMock(t minimock.Tester) *ClientMock
NewClientMock returns a mock for Client
func (*ClientMock) Delete ¶
func (mmDelete *ClientMock) Delete(releaseName string) (err error)
Delete implements Client
func (*ClientMock) DeleteAfterCounter ¶
func (mmDelete *ClientMock) DeleteAfterCounter() uint64
DeleteAfterCounter returns a count of finished ClientMock.Delete invocations
func (*ClientMock) DeleteBeforeCounter ¶
func (mmDelete *ClientMock) DeleteBeforeCounter() uint64
DeleteBeforeCounter returns a count of ClientMock.Delete invocations
func (*ClientMock) MinimockDeleteDone ¶
func (m *ClientMock) MinimockDeleteDone() bool
MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations
func (*ClientMock) MinimockDeleteInspect ¶
func (m *ClientMock) MinimockDeleteInspect()
MinimockDeleteInspect logs each unmet expectation
func (*ClientMock) MinimockFinish ¶
func (m *ClientMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ClientMock) MinimockUpgradeDone ¶
func (m *ClientMock) MinimockUpgradeDone() bool
MinimockUpgradeDone returns true if the count of the Upgrade invocations corresponds the number of defined expectations
func (*ClientMock) MinimockUpgradeInspect ¶
func (m *ClientMock) MinimockUpgradeInspect()
MinimockUpgradeInspect logs each unmet expectation
func (*ClientMock) MinimockWait ¶
func (m *ClientMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*ClientMock) Upgrade ¶
func (mmUpgrade *ClientMock) Upgrade(releaseName string, releaseNamespace string, templates map[string]interface{}, values map[string]interface{}, debug bool, pr ...postrender.PostRenderer) (err error)
Upgrade implements Client
func (*ClientMock) UpgradeAfterCounter ¶
func (mmUpgrade *ClientMock) UpgradeAfterCounter() uint64
UpgradeAfterCounter returns a count of finished ClientMock.Upgrade invocations
func (*ClientMock) UpgradeBeforeCounter ¶
func (mmUpgrade *ClientMock) UpgradeBeforeCounter() uint64
UpgradeBeforeCounter returns a count of ClientMock.Upgrade invocations
type ClientMockDeleteExpectation ¶
type ClientMockDeleteExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockDeleteExpectation specifies expectation struct of the Client.Delete
func (*ClientMockDeleteExpectation) Then ¶
func (e *ClientMockDeleteExpectation) Then(err error) *ClientMock
Then sets up Client.Delete return parameters for the expectation previously defined by the When method
type ClientMockDeleteParams ¶
type ClientMockDeleteParams struct {
// contains filtered or unexported fields
}
ClientMockDeleteParams contains parameters of the Client.Delete
type ClientMockDeleteResults ¶
type ClientMockDeleteResults struct {
// contains filtered or unexported fields
}
ClientMockDeleteResults contains results of the Client.Delete
type ClientMockUpgradeExpectation ¶
type ClientMockUpgradeExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockUpgradeExpectation specifies expectation struct of the Client.Upgrade
func (*ClientMockUpgradeExpectation) Then ¶
func (e *ClientMockUpgradeExpectation) Then(err error) *ClientMock
Then sets up Client.Upgrade return parameters for the expectation previously defined by the When method
type ClientMockUpgradeParams ¶
type ClientMockUpgradeParams struct {
// contains filtered or unexported fields
}
ClientMockUpgradeParams contains parameters of the Client.Upgrade
type ClientMockUpgradeResults ¶
type ClientMockUpgradeResults struct {
// contains filtered or unexported fields
}
ClientMockUpgradeResults contains results of the Client.Upgrade