Documentation
¶
Index ¶
- Constants
- func NewInstanceDisksExporter(computeClient daisyCompute.Client, storageClient domain.StorageClientInterface, ...) ovfexportdomain.InstanceDisksExporter
- func NewInstanceExportCleaner(logger logging.Logger) ovfexportdomain.InstanceExportCleaner
- func NewInstanceExportPreparer(logger logging.Logger) ovfexportdomain.InstanceExportPreparer
- func NewManifestFileGenerator(storageClient domain.StorageClientInterface) ovfexportdomain.OvfManifestGenerator
- func NewOvfDescriptorGenerator(computeClient daisyCompute.Client, storageClient domain.StorageClientInterface, ...) ovfexportdomain.OvfDescriptorGenerator
- func NewOvfExportParamValidator(computeClient daisyCompute.Client) ovfexportdomain.OvfExportParamValidator
- func NewPopulator(computeClient compute.Client, metadataClient domain.MetadataGCEInterface, ...) ovfexportdomain.OvfExportParamPopulator
- type OVFExporter
- type StartsWithMatcher
Constants ¶
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.
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