executionv011

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentV011

type EnvironmentV011 struct {
	Command            common.ExecutionCommand
	ControllerID       string
	PoolID             string
	ProviderConfigFile string
	InstanceID         string
	ExtraSpecs         string
	BootstrapParams    params.BootstrapInstance
}

func GetEnvironment

func GetEnvironment() (EnvironmentV011, error)

func (EnvironmentV011) Run

func (e EnvironmentV011) Run(ctx context.Context, provider ExternalProvider) (string, error)

func (EnvironmentV011) Validate

func (e EnvironmentV011) Validate() error

type ExternalProvider

type ExternalProvider interface {
	// The common ExternalProvider interface
	common.ExternalProvider
	// GetSupportedInterfaceVersions will return the supported interface versions.
	GetSupportedInterfaceVersions(ctx context.Context) []string
	// ValidatePoolInfo will validate the pool info and return an error if it's not valid.
	ValidatePoolInfo(ctx context.Context, image string, flavor string, providerConfig string, extraspecs string) error
	// GetConfigJSONSchema will return the JSON schema for the provider's configuration.
	GetConfigJSONSchema(ctx context.Context) (string, error)
	// GetExtraSpecsJSONSchema will return the JSON schema for the provider's extra specs.
	GetExtraSpecsJSONSchema(ctx context.Context) (string, error)
}

ExternalProvider defines an interface that external providers need to implement. This is very similar to the common.Provider interface, and was redefined here to decouple it, in case it may diverge from native providers.

Jump to

Keyboard shortcuts

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