Documentation ¶
Index ¶
- func GetHTTPTransport(ca string) (transport http.RoundTripper)
- type Client
- type ClientMock
- func (mmDigest *ClientMock) Digest(tag string) (s1 string, err error)
- func (mmDigest *ClientMock) DigestAfterCounter() uint64
- func (mmDigest *ClientMock) DigestBeforeCounter() uint64
- func (mmImage *ClientMock) Image(tag string) (i1 v1.Image, err error)
- func (mmImage *ClientMock) ImageAfterCounter() uint64
- func (mmImage *ClientMock) ImageBeforeCounter() uint64
- func (m *ClientMock) MinimockDigestDone() bool
- func (m *ClientMock) MinimockDigestInspect()
- func (m *ClientMock) MinimockFinish()
- func (m *ClientMock) MinimockImageDone() bool
- func (m *ClientMock) MinimockImageInspect()
- func (m *ClientMock) MinimockWait(timeout mm_time.Duration)
- type ClientMockDigestExpectation
- type ClientMockDigestParams
- type ClientMockDigestResults
- type ClientMockImageExpectation
- type ClientMockImageParams
- type ClientMockImageResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPTransport ¶
func GetHTTPTransport(ca string) (transport http.RoundTripper)
Types ¶
type ClientMock ¶
type ClientMock struct { DigestMock mClientMockDigest ImageMock mClientMockImage // contains filtered or unexported fields }
ClientMock implements Client
func NewClientMock ¶
func NewClientMock(t minimock.Tester) *ClientMock
NewClientMock returns a mock for Client
func (*ClientMock) Digest ¶
func (mmDigest *ClientMock) Digest(tag string) (s1 string, err error)
Digest implements Client
func (*ClientMock) DigestAfterCounter ¶
func (mmDigest *ClientMock) DigestAfterCounter() uint64
DigestAfterCounter returns a count of finished ClientMock.Digest invocations
func (*ClientMock) DigestBeforeCounter ¶
func (mmDigest *ClientMock) DigestBeforeCounter() uint64
DigestBeforeCounter returns a count of ClientMock.Digest invocations
func (*ClientMock) Image ¶
func (mmImage *ClientMock) Image(tag string) (i1 v1.Image, err error)
Image implements Client
func (*ClientMock) ImageAfterCounter ¶
func (mmImage *ClientMock) ImageAfterCounter() uint64
ImageAfterCounter returns a count of finished ClientMock.Image invocations
func (*ClientMock) ImageBeforeCounter ¶
func (mmImage *ClientMock) ImageBeforeCounter() uint64
ImageBeforeCounter returns a count of ClientMock.Image invocations
func (*ClientMock) MinimockDigestDone ¶
func (m *ClientMock) MinimockDigestDone() bool
MinimockDigestDone returns true if the count of the Digest invocations corresponds the number of defined expectations
func (*ClientMock) MinimockDigestInspect ¶
func (m *ClientMock) MinimockDigestInspect()
MinimockDigestInspect 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) MinimockImageDone ¶
func (m *ClientMock) MinimockImageDone() bool
MinimockImageDone returns true if the count of the Image invocations corresponds the number of defined expectations
func (*ClientMock) MinimockImageInspect ¶
func (m *ClientMock) MinimockImageInspect()
MinimockImageInspect 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
type ClientMockDigestExpectation ¶
type ClientMockDigestExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockDigestExpectation specifies expectation struct of the Client.Digest
func (*ClientMockDigestExpectation) Then ¶
func (e *ClientMockDigestExpectation) Then(s1 string, err error) *ClientMock
Then sets up Client.Digest return parameters for the expectation previously defined by the When method
type ClientMockDigestParams ¶
type ClientMockDigestParams struct {
// contains filtered or unexported fields
}
ClientMockDigestParams contains parameters of the Client.Digest
type ClientMockDigestResults ¶
type ClientMockDigestResults struct {
// contains filtered or unexported fields
}
ClientMockDigestResults contains results of the Client.Digest
type ClientMockImageExpectation ¶
type ClientMockImageExpectation struct { Counter uint64 // contains filtered or unexported fields }
ClientMockImageExpectation specifies expectation struct of the Client.Image
func (*ClientMockImageExpectation) Then ¶
func (e *ClientMockImageExpectation) Then(i1 v1.Image, err error) *ClientMock
Then sets up Client.Image return parameters for the expectation previously defined by the When method
type ClientMockImageParams ¶
type ClientMockImageParams struct {
// contains filtered or unexported fields
}
ClientMockImageParams contains parameters of the Client.Image
type ClientMockImageResults ¶
type ClientMockImageResults struct {
// contains filtered or unexported fields
}
ClientMockImageResults contains results of the Client.Image