extend

package
v0.20.4 Latest Latest
Warning

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

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

Documentation

Overview

Package extend contains extensions specific helpers

Index

Constants

View Source
const (
	// BuildContextDir defines the context for build-image extensions
	BuildContextDir = "context.build"
	// RunContextDir defines the context for run-image extensions
	RunContextDir = "context.run"
	// SharedContextDir defines a shared context for build- and run-image extensions
	SharedContextDir = "context"
)

Variables

This section is empty.

Functions

func ValidateConfig added in v0.17.0

func ValidateConfig(configPath string) error

Types

type Arg

type Arg struct {
	Name  string `toml:"name"`
	Value string `toml:"value"`
}

type BuildConfig added in v0.17.0

type BuildConfig struct {
	Args []Arg `toml:"args"`
}

type Config added in v0.17.0

type Config struct {
	Build BuildConfig `toml:"build"`
	Run   BuildConfig `toml:"run"`
}

type ContextInfo added in v0.19.0

type ContextInfo struct {
	ExtensionID string
	Path        string
}

ContextInfo captures info about the context used for build- and run-image extensions

func FindContexts added in v0.19.0

func FindContexts(extensionID string, extOutputDir string, logger log.Logger) ([]ContextInfo, error)

FindContexts returns paths to Build Context folders produced by an extension. If Shared Context is provided with Run or Build Contexts the error will be thrown.

type Dockerfile

type Dockerfile struct {
	ExtensionID string
	Path        string `toml:"path"`
	Args        []Arg
	ContextDir  string
}

type Options

type Options struct {
	BuildContext string
	IgnorePaths  []string
	CacheTTL     time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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