testing

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 12 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
}

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