executor

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

for use in tests

Index

Constants

View Source
const (
	UpstreamClientUaKey = "UPSTREAM_CLIENT_TYPE"
)

Variables

This section is empty.

Functions

func CalculateDependencies added in v0.10.0

func CalculateDependencies(opts *config.KanikoOptions) (map[int][]string, error)

func CheckPushPermissions added in v0.10.0

func CheckPushPermissions(opts *config.KanikoOptions) error

CheckPushPermissions checks that the configured credentials can be used to push to every specified destination.

func DoBuild

func DoBuild(opts *config.KanikoOptions) (v1.Image, error)

DoBuild executes building the Dockerfile

func DoPush

func DoPush(image v1.Image, opts *config.KanikoOptions) error

DoPush is responsible for pushing image to the destinations specified in opts

func HashDir added in v0.5.0

func HashDir(p string) (string, error)

HashDir returns a hash of the directory.

Types

type CompositeCache added in v0.5.0

type CompositeCache struct {
	// contains filtered or unexported fields
}

CompositeCache is a type that generates a cache key from a series of keys.

func NewCompositeCache added in v0.5.0

func NewCompositeCache(initial ...string) *CompositeCache

NewCompositeCache returns an initialized composite cache object.

func (*CompositeCache) AddKey added in v0.5.0

func (s *CompositeCache) AddKey(k ...string)

AddKey adds the specified key to the sequence.

func (*CompositeCache) AddPath added in v0.5.0

func (s *CompositeCache) AddPath(p string) error

func (*CompositeCache) Hash added in v0.5.0

func (s *CompositeCache) Hash() (string, error)

Hash returns the composite key in a string SHA256 format.

func (*CompositeCache) Key added in v0.5.0

func (s *CompositeCache) Key() string

Key returns the human readable composite key as a string.

type MockCachedDockerCommand added in v0.15.0

type MockCachedDockerCommand struct {
	// contains filtered or unexported fields
}

func (MockCachedDockerCommand) CacheCommand added in v0.15.0

func (m MockCachedDockerCommand) CacheCommand(image v1.Image) commands.DockerCommand

func (MockCachedDockerCommand) ExecuteCommand added in v0.15.0

func (m MockCachedDockerCommand) ExecuteCommand(c *v1.Config, args *dockerfile.BuildArgs) error

func (MockCachedDockerCommand) FilesToSnapshot added in v0.15.0

func (m MockCachedDockerCommand) FilesToSnapshot() []string

func (MockCachedDockerCommand) FilesUsedFromContext added in v0.15.0

func (m MockCachedDockerCommand) FilesUsedFromContext(c *v1.Config, args *dockerfile.BuildArgs) ([]string, error)

func (MockCachedDockerCommand) MetadataOnly added in v0.15.0

func (m MockCachedDockerCommand) MetadataOnly() bool

func (MockCachedDockerCommand) RequiresUnpackedFS added in v0.15.0

func (m MockCachedDockerCommand) RequiresUnpackedFS() bool

func (MockCachedDockerCommand) ShouldCacheOutput added in v0.15.0

func (m MockCachedDockerCommand) ShouldCacheOutput() bool

func (MockCachedDockerCommand) String added in v0.15.0

func (m MockCachedDockerCommand) String() string

type MockDockerCommand added in v0.15.0

type MockDockerCommand struct {
	// contains filtered or unexported fields
}

func (MockDockerCommand) CacheCommand added in v0.15.0

func (m MockDockerCommand) CacheCommand(image v1.Image) commands.DockerCommand

func (MockDockerCommand) ExecuteCommand added in v0.15.0

func (m MockDockerCommand) ExecuteCommand(c *v1.Config, args *dockerfile.BuildArgs) error

func (MockDockerCommand) FilesToSnapshot added in v0.15.0

func (m MockDockerCommand) FilesToSnapshot() []string

func (MockDockerCommand) FilesUsedFromContext added in v0.15.0

func (m MockDockerCommand) FilesUsedFromContext(c *v1.Config, args *dockerfile.BuildArgs) ([]string, error)

func (MockDockerCommand) MetadataOnly added in v0.15.0

func (m MockDockerCommand) MetadataOnly() bool

func (MockDockerCommand) RequiresUnpackedFS added in v0.15.0

func (m MockDockerCommand) RequiresUnpackedFS() bool

func (MockDockerCommand) ShouldCacheOutput added in v0.15.0

func (m MockDockerCommand) ShouldCacheOutput() bool

func (MockDockerCommand) String added in v0.15.0

func (m MockDockerCommand) String() string

Jump to

Keyboard shortcuts

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