ami

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type AMI

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

func New

func New(config Config) (*AMI, error)

func (*AMI) AMIFile

func (a *AMI) AMIFile() input.Input

func (*AMI) Boot

func (a *AMI) Boot(ctx context.Context) error

type Config

type Config struct {
	Arch        string
	Channel     string
	ChinaDomain string
	// Dir is the name of the directory where the files of the resource
	// should be generated.
	Dir            string
	MinimumVersion string
	PrimaryDomain  string
}

func (*Config) Validate

func (c *Config) Validate() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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