classic

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const BuilderId = "packer.oracle.classic"

BuilderId uniquely identifies the builder

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	MachineImageName string
	MachineImageFile string
	ImageListVersion int
}

Artifact is an artifact implementation that contains Image List and Machine Image info.

func (*Artifact) BuilderId

func (a *Artifact) BuilderId() string

BuilderId uniquely identifies the builder.

func (*Artifact) Destroy

func (a *Artifact) Destroy() error

Destroy deletes the custom image associated with the artifact.

func (*Artifact) Files

func (a *Artifact) Files() []string

Files lists the files associated with an artifact. We don't have any files as the custom image is stored server side.

func (*Artifact) Id

func (a *Artifact) Id() string

func (*Artifact) State

func (a *Artifact) State(name string) interface{}

func (*Artifact) String

func (a *Artifact) String() string

type Builder

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

Builder is a builder implementation that creates Oracle OCI custom images.

func (*Builder) Cancel

func (b *Builder) Cancel()

Cancel terminates a running build.

func (*Builder) Prepare

func (b *Builder) Prepare(rawConfig ...interface{}) ([]string, error)

func (*Builder) Run

func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error)

type Config

type Config struct {
	common.PackerConfig `mapstructure:",squash"`
	PVConfig            `mapstructure:",squash"`
	Comm                communicator.Config `mapstructure:",squash"`

	// Access config overrides
	Username       string `mapstructure:"username"`
	Password       string `mapstructure:"password"`
	IdentityDomain string `mapstructure:"identity_domain"`
	APIEndpoint    string `mapstructure:"api_endpoint"`

	// Image
	ImageName            string        `mapstructure:"image_name"`
	Shape                string        `mapstructure:"shape"`
	SourceImageList      string        `mapstructure:"source_image_list"`
	SourceImageListEntry int           `mapstructure:"source_image_list_entry"`
	SnapshotTimeout      time.Duration `mapstructure:"snapshot_timeout"`
	DestImageList        string        `mapstructure:"dest_image_list"`
	// Attributes and Attributes file are both optional and mutually exclusive.
	Attributes     string `mapstructure:"attributes"`
	AttributesFile string `mapstructure:"attributes_file"`
	// Optional; if you don't enter anything, the image list description
	// will read "Packer-built image list"
	DestImageListDescription string `mapstructure:"image_description"`
	// Optional. Describes what computers are allowed to reach your instance
	// via SSH. This whitelist must contain the computer you're running Packer
	// from. It defaults to public-internet, meaning that you can SSH into your
	// instance from anywhere as long as you have the right keys
	SSHSourceList string `mapstructure:"ssh_source_list"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(raws ...interface{}) (*Config, error)

func (*Config) Identifier added in v1.3.3

func (c *Config) Identifier(s string) string

type Logger

type Logger struct {
	Enabled bool
}

func (*Logger) Log

func (l *Logger) Log(input ...interface{})

type PVConfig added in v1.3.3

type PVConfig struct {
	// PersistentVolumeSize lets us control the volume size by using persistent boot storage
	PersistentVolumeSize      int    `mapstructure:"persistent_volume_size"`
	BuilderUploadImageCommand string `mapstructure:"builder_upload_image_command"`

	// Builder Image
	BuilderShape          string `mapstructure:"builder_shape"`
	BuilderImageList      string `mapstructure:"builder_image_list"`
	BuilderImageListEntry *int   `mapstructure:"builder_image_list_entry"`

	BuilderComm communicator.Config `mapstructure:"builder_communicator"`
}

func (*PVConfig) IsPV added in v1.3.3

func (c *PVConfig) IsPV() bool

IsPV tells us if we're using a persistent volume for this build

func (*PVConfig) Prepare added in v1.3.3

func (c *PVConfig) Prepare(ctx *interpolate.Context) (errs *packer.MultiError)

Jump to

Keyboard shortcuts

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