testing

package
v0.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package testing holds a variety test doubles to help with testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeDigest

func ComputeDigest(base name.Repository, ref string, h v1.Hash) string

func NewFixedBuild

func NewFixedBuild(entries map[string]build.Result) build.Interface

NewFixedBuild returns a build.Interface implementation that simply resolves particular references to fixed v1.Image objects

func NewFixedPublish

func NewFixedPublish(base name.Repository, entries map[string]v1.Hash) publish.Interface

NewFixedPublish returns a publish.Interface implementation that simply resolves particular references to fixed name.Digest references.

Types

type MockDaemon added in v0.9.0

type MockDaemon struct {
	daemon.Client
	Tags []string
	// contains filtered or unexported fields
}

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 (*MockDaemon) ImageTag added in v0.9.0

func (m *MockDaemon) ImageTag(_ context.Context, _ string, tag string) error

func (*MockDaemon) NegotiateAPIVersion added in v0.9.0

func (m *MockDaemon) NegotiateAPIVersion(context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL