Documentation
¶
Index ¶
- func GetFirstFileWithExtension(extension string, artifact packer.Artifact) string
- type Image
- type LocalFiles
- type RemoteOVFPackage
- func (artifact *RemoteOVFPackage) BuilderId() string
- func (artifact *RemoteOVFPackage) Destroy() error
- func (artifact *RemoteOVFPackage) Files() []string
- func (artifact *RemoteOVFPackage) Id() string
- func (artifact *RemoteOVFPackage) State(name string) interface{}
- func (artifact *RemoteOVFPackage) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
BuilderId returns the ID of the builder that was used to create the artifact.
func (*Image) Destroy ¶
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 ¶
Files determines the set of files that comprise the artifact. If an artifact is not made up of files, then this will be empty.
type LocalFiles ¶
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.