Documentation ¶
Overview ¶
for use in tests
Index ¶
- Constants
- func CalculateDependencies(opts *config.KanikoOptions) (map[int][]string, error)
- func CheckPushPermissions(opts *config.KanikoOptions) error
- func DoBuild(opts *config.KanikoOptions) (v1.Image, error)
- func DoPush(image v1.Image, opts *config.KanikoOptions) error
- func HashDir(p string) (string, error)
- type CompositeCache
- type MockCachedDockerCommand
- func (m MockCachedDockerCommand) CacheCommand(image v1.Image) commands.DockerCommand
- func (m MockCachedDockerCommand) ExecuteCommand(c *v1.Config, args *dockerfile.BuildArgs) error
- func (m MockCachedDockerCommand) FilesToSnapshot() []string
- func (m MockCachedDockerCommand) FilesUsedFromContext(c *v1.Config, args *dockerfile.BuildArgs) ([]string, error)
- func (m MockCachedDockerCommand) MetadataOnly() bool
- func (m MockCachedDockerCommand) RequiresUnpackedFS() bool
- func (m MockCachedDockerCommand) ShouldCacheOutput() bool
- func (m MockCachedDockerCommand) String() string
- type MockDockerCommand
- func (m MockDockerCommand) CacheCommand(image v1.Image) commands.DockerCommand
- func (m MockDockerCommand) ExecuteCommand(c *v1.Config, args *dockerfile.BuildArgs) error
- func (m MockDockerCommand) FilesToSnapshot() []string
- func (m MockDockerCommand) FilesUsedFromContext(c *v1.Config, args *dockerfile.BuildArgs) ([]string, error)
- func (m MockDockerCommand) MetadataOnly() bool
- func (m MockDockerCommand) RequiresUnpackedFS() bool
- func (m MockDockerCommand) ShouldCacheOutput() bool
- func (m MockDockerCommand) String() string
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
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
Click to show internal directories.
Click to hide internal directories.