p2pub

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	GisServiceCode string
	IarServiceCode string
	ImageID        string
	// contains filtered or unexported fields
}

Artifact ...

func (Artifact) BuilderId

func (a Artifact) BuilderId() string

BuilderId ...

func (Artifact) Destroy

func (a Artifact) Destroy() error

Destroy ...

func (Artifact) Files

func (a Artifact) Files() []string

Files ...

func (Artifact) Id

func (a Artifact) Id() string

Id ...

func (Artifact) State

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

State ...

func (Artifact) String

func (a Artifact) String() string

String ...

type Builder

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

Builder ...

func (*Builder) Prepare

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

Prepare ...

func (*Builder) Run

func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (packer.Artifact, error)

Run ...

type Config

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

	Comm communicator.Config `mapstructure:",squash"`

	// API Key for IIJ GIO P2 (required)
	// (https://manual.iij.jp/p2/pubapi/59950199.html)
	APIAccessKey string `mapstructure:"access_key_id"`
	APISecretKey string `mapstructure:"secret_access_key"`

	// Servicecode of the P2 contract used to built and images save in (required)
	GisServiceCode string `mapstructure:"gis_service_code"`

	// System storage type of built image (required)
	// List of storage types: https://manual.iij.jp/p2/pubapi/59949023.html
	StorageType string `mapstructure:"storage_type"`

	// Virtual Server type use to build image (optional. default: "VB0-1")
	VMType string `mapstructure:"server_type"`

	// Another image built images are based on (optional)
	BaseImage struct {
		GisServiceCode string `mapstructure:"gis_service_code"`
		IarServiceCode string `mapstructure:"iar_service_code"`
		ImageID        string `mapstructure:"image_id"`
	} `mapstructure:"base_image"`

	// SSH connection settings
	// Public key ** for "root" ** (optional)
	RootSSHKey string `mapstructure:"root_ssh_key"`

	// The label set to built image (optional)
	Label string `mapstructure:"label"`

	// If this is set true, P2 PUB builder connects VMs through Standard Private Network. (optional)
	// By default, this builder uses the Internet.
	DisableGlobalAddress bool `mapstructure:"disable_global_address"`
	// contains filtered or unexported fields
}

Config ...

Jump to

Keyboard shortcuts

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