ami

package
v6.26.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 18 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.

func IsS3NotFoundError

func IsS3NotFoundError(err error) bool

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
	ChinaBucketName         string
	ChinaBucketRegion       string
	ChinaAWSAccessKeyID     string
	ChinaAWSSecretAccessKey string
	// Dir is the name of the directory where the files of the resource
	// should be generated.
	Dir            string
	MinimumVersion string
	PrimaryDomain  string
	// If KeepExisting is not empty, releases find in the file won't be overridden.
	KeepExisting 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