artifacts

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirstFileWithExtension

func GetFirstFileWithExtension(extension string, artifact packer.Artifact) string

GetFirstFileWithExtension retrieves the first file with the specified extension from the artifact's list of files.

Types

type Image

type Image struct {
	Image     compute.Image
	BuilderID string
	// contains filtered or unexported fields
}

Image represents a CloudControl image as a Packer Artifact.

func (*Image) BuilderId

func (artifact *Image) BuilderId() string

BuilderId returns the ID of the builder that was used to create the artifact.

func (*Image) Destroy

func (artifact *Image) Destroy() error

Destroy deletes the artifact. Packer calls this for various reasons, such as if a post-processor has processed this artifact and it is no longer needed.

func (*Image) Files

func (artifact *Image) Files() []string

Files determines the set of files that comprise the artifact. If an artifact is not made up of files, then this will be empty.

func (*Image) Id

func (artifact *Image) Id() string

Id gets the ID for the artifact. In this case, it's the image Id.

func (*Image) State

func (artifact *Image) State(name string) interface{}

State allows the caller to ask for builder specific state information relating to the artifact instance.

func (*Image) String

func (artifact *Image) String() string

Returns human-readable output that describes the artifact created. This is used for UI output. It can be multiple lines.

type LocalFiles

type LocalFiles struct {
	BaseDirectory string
	FilePaths     []string
	BuilderID     string
}

LocalFiles is an Artifact representing a set of local files.

func NewFromFilesInLocalDirectory

func NewFromFilesInLocalDirectory(directory string, builderID string) (artifact *LocalFiles, err error)

NewFromFilesInLocalDirectory creates a new LocalFiles artifact from the files in the specified directory.

func (*LocalFiles) BuilderId

func (artifact *LocalFiles) BuilderId() string

BuilderId returns the ID of the builder that was used to create the artifact.

func (*LocalFiles) Destroy

func (artifact *LocalFiles) Destroy() error

Destroy deletes the artifact. Packer calls this for various reasons, such as if a post-processor has processed this artifact and it is no longer needed.

func (*LocalFiles) Files

func (artifact *LocalFiles) Files() []string

Files determines the set of files that comprise the artifact. If an artifact is not made up of files, then this will be empty.

func (*LocalFiles) Id

func (artifact *LocalFiles) Id() string

Id gets the ID for the artifact. In this case, it's the directory name.

func (*LocalFiles) State

func (artifact *LocalFiles) State(name string) interface{}

State allows the caller to ask for builder specific state information relating to the artifact instance.

func (*LocalFiles) String

func (artifact *LocalFiles) String() string

Returns human-readable output that describes the artifact created. This is used for UI output. It can be multiple lines.

type RemoteOVFPackage

type RemoteOVFPackage struct {
	FTPSHostName  string
	PackagePrefix string
	BuilderID     string
	// contains filtered or unexported fields
}

RemoteOVFPackage represents an OVF package in CloudControl.

func (*RemoteOVFPackage) BuilderId

func (artifact *RemoteOVFPackage) BuilderId() string

BuilderId returns the ID of the builder that was used to create the artifact.

func (*RemoteOVFPackage) Destroy

func (artifact *RemoteOVFPackage) Destroy() error

Destroy deletes the artifact. Packer calls this for various reasons, such as if a post-processor has processed this artifact and it is no longer needed.

func (*RemoteOVFPackage) Files

func (artifact *RemoteOVFPackage) Files() []string

Files determines the set of files that comprise the artifact. If an artifact is not made up of files, then this will be empty.

func (*RemoteOVFPackage) Id

func (artifact *RemoteOVFPackage) Id() string

Id gets the ID for the artifact. In this case, it's "FTPSHostName/PackagePrefix".

func (*RemoteOVFPackage) State

func (artifact *RemoteOVFPackage) State(name string) interface{}

State allows the caller to ask for builder specific state information relating to the artifact instance.

func (*RemoteOVFPackage) String

func (artifact *RemoteOVFPackage) String() string

Returns human-readable output that describes the artifact created. This is used for UI output. It can be multiple lines.

Jump to

Keyboard shortcuts

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