Documentation ¶
Overview ¶
Package testing holds a variety test doubles to help with testing
Index ¶
- func ComputeDigest(base name.Repository, ref string, h v1.Hash) string
- func NewFixedBuild(entries map[string]build.Result) build.Interface
- func NewFixedPublish(base name.Repository, entries map[string]v1.Hash) publish.Interface
- type MockDaemon
- func (m *MockDaemon) ImageInspectWithRaw(_ context.Context, _ string) (types.ImageInspect, []byte, error)
- func (m *MockDaemon) ImageLoad(context.Context, io.Reader, bool) (types.ImageLoadResponse, error)
- func (m *MockDaemon) ImageTag(_ context.Context, _ string, tag string) error
- func (m *MockDaemon) NegotiateAPIVersion(context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeDigest ¶
func NewFixedBuild ¶
NewFixedBuild returns a build.Interface implementation that simply resolves particular references to fixed v1.Image objects
func NewFixedPublish ¶
NewFixedPublish returns a publish.Interface implementation that simply resolves particular references to fixed name.Digest references.
Types ¶
type MockDaemon ¶ added in v0.9.0
func (*MockDaemon) ImageInspectWithRaw ¶ added in v0.15.1
func (m *MockDaemon) ImageInspectWithRaw(_ context.Context, _ string) (types.ImageInspect, []byte, error)
func (*MockDaemon) ImageLoad ¶ added in v0.9.0
func (m *MockDaemon) ImageLoad(context.Context, io.Reader, bool) (types.ImageLoadResponse, error)
func (*MockDaemon) NegotiateAPIVersion ¶ added in v0.9.0
func (m *MockDaemon) NegotiateAPIVersion(context.Context)
Click to show internal directories.
Click to hide internal directories.