ovfexporter

package
v0.0.0-...-fa603ae Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogPrefix is prefix for OVF export log lines
	LogPrefix = "[ovf-export]"
)

Variables

This section is empty.

Functions

func NewInstanceDisksExporter

func NewInstanceDisksExporter(computeClient daisyCompute.Client, storageClient domain.StorageClientInterface, logger logging.Logger) ovfexportdomain.InstanceDisksExporter

NewInstanceDisksExporter creates a new instance disk exporter

func NewInstanceExportCleaner

func NewInstanceExportCleaner(logger logging.Logger) ovfexportdomain.InstanceExportCleaner

NewInstanceExportCleaner creates a new instance export cleaner which is responsible for bringing the exported VM back to its pre-export state

func NewInstanceExportPreparer

func NewInstanceExportPreparer(logger logging.Logger) ovfexportdomain.InstanceExportPreparer

NewInstanceExportPreparer creates a new instance export preparer

func NewManifestFileGenerator

func NewManifestFileGenerator(storageClient domain.StorageClientInterface) ovfexportdomain.OvfManifestGenerator

NewManifestFileGenerator creates a new manifest file generator

func NewOvfDescriptorGenerator

func NewOvfDescriptorGenerator(computeClient daisyCompute.Client, storageClient domain.StorageClientInterface,
	project string, zone string) ovfexportdomain.OvfDescriptorGenerator

NewOvfDescriptorGenerator creates a new OvfDescriptorGenerator

func NewOvfExportParamValidator

func NewOvfExportParamValidator(computeClient daisyCompute.Client) ovfexportdomain.OvfExportParamValidator

NewOvfExportParamValidator creates a new OVF export params validator

func NewPopulator

func NewPopulator(
	computeClient compute.Client,
	metadataClient domain.MetadataGCEInterface,
	storageClient domain.StorageClientInterface,
	resourceLocationRetriever domain.ResourceLocationRetrieverInterface,
	scratchBucketCreator domain.ScratchBucketCreatorInterface) ovfexportdomain.OvfExportParamPopulator

NewPopulator returns an object that implements OvfExportParamPopulator.

Types

type OVFExporter

type OVFExporter struct {
	Logger logging.Logger

	// BuildID is ID of Cloud Build in which this OVF export runs in
	BuildID string
	// contains filtered or unexported fields
}

OVFExporter is responsible for exporting GCE VMs/GMIs to OVF/OVA

func NewOVFExporter

func NewOVFExporter(params *ovfexportdomain.OVFExportArgs, logger logging.ToolLogger) (*OVFExporter, error)

NewOVFExporter creates an OVF exporter, including automatically populating dependencies, such as compute/storage clients.

func (*OVFExporter) Run

func (oe *OVFExporter) Run(ctx context.Context) error

Run runs OVF export.

type StartsWithMatcher

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

StartsWithMatcher is a matcher that matches string prefixes

func StartsWith

func StartsWith(prefix string) *StartsWithMatcher

StartsWith returns a StartsWithMatcher that matches string prefixes

func (*StartsWithMatcher) Matches

func (m *StartsWithMatcher) Matches(x interface{}) bool

Matches returns true if x is a string and it matches a string prefix

func (*StartsWithMatcher) String

func (m *StartsWithMatcher) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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