Documentation ¶
Overview ¶
Package oci contains a packer.Builder implementation that builds Oracle Bare Metal Cloud Services (OCI) images.
Index ¶
Constants ¶
View Source
const BuilderId = "packer.oracle.oci"
BuilderId uniquely identifies the builder
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Artifact ¶
Artifact is an artifact implementation that contains a built Custom Image.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a builder implementation that creates Oracle OCI custom images.
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` Comm communicator.Config `mapstructure:",squash"` AccessCfg *client.Config AccessCfgFile string `mapstructure:"access_cfg_file"` AccessCfgFileAccount string `mapstructure:"access_cfg_file_account"` // Access config overrides UserID string `mapstructure:"user_ocid"` TenancyID string `mapstructure:"tenancy_ocid"` Region string `mapstructure:"region"` Fingerprint string `mapstructure:"fingerprint"` KeyFile string `mapstructure:"key_file"` PassPhrase string `mapstructure:"pass_phrase"` AvailabilityDomain string `mapstructure:"availability_domain"` CompartmentID string `mapstructure:"compartment_ocid"` // Image BaseImageID string `mapstructure:"base_image_ocid"` Shape string `mapstructure:"shape"` ImageName string `mapstructure:"image_name"` // Networking SubnetID string `mapstructure:"subnet_ocid"` // contains filtered or unexported fields }
type Driver ¶
type Driver interface { CreateInstance(publicKey string) (string, error) CreateImage(id string) (client.Image, error) DeleteImage(id string) error GetInstanceIP(id string) (string, error) TerminateInstance(id string) error WaitForImageCreation(id string) error WaitForInstanceState(id string, waitStates []string, terminalState string) error }
Driver interfaces between the builder steps and the OCI SDK.
func NewDriverOCI ¶
NewDriverOCI Creates a new driverOCI with a connected client.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.