Documentation ¶
Index ¶
- func Exec(ctx context.Context, executor Executor, entrypoint Entrypoint, tmpDir string, ...) error
- func HasAllLabels(required, candidate map[string]string) bool
- func HasHostFsAccess(p Executor) bool
- func IsLocalExecutor(p Executor) bool
- func RegisterProvider(name string, factory ProviderFactory)
- func RenderInitFile(cmds string) (string, error)
- type Entrypoint
- type EntrypointContext
- type EntrypointExec
- type ExecOptions
- type Executor
- type PlatformProvider
- type Provider
- type ProviderFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec(ctx context.Context, executor Executor, entrypoint Entrypoint, tmpDir string, o ExecOptions, shell bool) error
func HasAllLabels ¶
HasAllLabels checks if candidate has all labels from required
func HasHostFsAccess ¶
func IsLocalExecutor ¶
func RegisterProvider ¶
func RegisterProvider(name string, factory ProviderFactory)
func RenderInitFile ¶
Types ¶
type Entrypoint ¶
type Entrypoint interface { EntrypointExec ShellEntrypoint(initfile string) (EntrypointExec, error) ShellPrint(args []string) string }
var BashEntrypoint Entrypoint = bashEntrypoint{}
var ExecEntrypoint Entrypoint = execEntrypoint{}
var ShEntrypoint Entrypoint = shEntrypoint{}
type EntrypointContext ¶
type EntrypointExec ¶
type EntrypointExec interface {
ExecArgs(ctx EntrypointContext) ([]string, error)
}
func NewInteractiveEntrypoint ¶
func NewInteractiveEntrypoint(tmpDir, cmds string, entrypoint Entrypoint) (EntrypointExec, func(), error)
type ExecOptions ¶
type Executor ¶
type Executor interface { Exec(ctx context.Context, o ExecOptions, execArgs []string) error Os() string Arch() string }
func NewDockerExecutor ¶
func NewLocalExecutor ¶
func NewLocalExecutor() Executor
type PlatformProvider ¶
func Bootstrap ¶
func Bootstrap(cfg *config.Config) []PlatformProvider
type Provider ¶
type Provider interface {
NewExecutor(labels map[string]string, options map[string]interface{}) (Executor, error)
}
func GetProvider ¶
func NewDockerProvider ¶
func NewLocalProvider ¶
Click to show internal directories.
Click to hide internal directories.