Documentation ¶
Index ¶
Constants ¶
const ( //Alpha represents alpha release track Alpha = "alpha" //Beta represents beta release track Beta = "beta" //GA represents GA release track GA = "ga" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskImporterInterface ¶
type DiskImporterInterface interface {
Import(context.Context, importer.ImageImportRequest, logging.Logger) (string, error)
}
DiskImporterInterface imports a GCE PD from a virtual disk file (e.g. vmdk).
type MachineTypeProviderInterface ¶
MachineTypeProviderInterface is responsible for providing GCE machine type
type MultiDiskImporterInterface ¶
type MultiDiskImporterInterface interface {
Import(ctx context.Context, params *OVFImportParams, fileURIs []string) (disks []domain.Disk, err error)
}
MultiDiskImporterInterface imports multiple disks files simultaneously, returning a list of disks resource URIs. The ordering of the returned list matches the ordering of fileURIs.
If an import fails, all running imports will be cancelled, and disk from finished disks will be deleted.
type OVFImportParams ¶
type OVFImportParams struct { // Instance import specific flags InstanceNames string // Machine image specific flags MachineImageName string MachineImageStorageLocation string // Common flags ClientID string OvfOvaGcsPath string NoGuestEnvironment bool CanIPForward bool DeletionProtection bool Description string Labels string MachineType string Network string NetworkTier string Subnet string PrivateNetworkIP string NoExternalIP bool NoRestartOnFailure bool OsID string BYOL bool ShieldedIntegrityMonitoring bool ShieldedSecureBoot bool ShieldedVtpm bool Tags string Zone string BootDiskKmskey string BootDiskKmsKeyring string BootDiskKmsLocation string BootDiskKmsProject string Timeout string Project *string ScratchBucketGcsPath string Oauth string ComputeServiceAccount string InstanceServiceAccount string InstanceAccessScopesFlag string GcsLogsDisabled bool CloudLogsDisabled bool StdoutLogsDisabled bool NodeAffinityLabelsFlag flags.StringArrayFlag ReleaseTrack string UefiCompatible bool Hostname string BuildID string NestedVirtualizationEnabled bool WorkerMachineSeries []string EndpointsOverride daisyutils.EndpointsOverride // Deadline of when timeout will occur. Deadline time.Time UserLabels map[string]string UserTags []string NodeAffinities []*compute.SchedulingNodeAffinity NodeAffinitiesBeta []*computeBeta.SchedulingNodeAffinity InstanceAccessScopes []string CurrentExecutablePath string Region string // Path to daisy_workflows directory. WorkflowDir string }
OVFImportParams holds flags for OVF import as well as derived (parsed) params
func (*OVFImportParams) EnvironmentSettings ¶
func (oip *OVFImportParams) EnvironmentSettings() daisyutils.EnvironmentSettings
EnvironmentSettings creates an EnvironmentSettings instance from the fields in this struct.
func (*OVFImportParams) GetTool ¶
func (oip *OVFImportParams) GetTool() daisyutils.Tool
GetTool returns a description of the tool being run that can be used for logging and messaging.
func (*OVFImportParams) IsInstanceImport ¶
func (oip *OVFImportParams) IsInstanceImport() bool
IsInstanceImport returns true if import represented by these params is instance import. False otherwise.
func (*OVFImportParams) IsMachineImageImport ¶
func (oip *OVFImportParams) IsMachineImageImport() bool
IsMachineImageImport returns true if import represented by these params is a machine image import. False otherwise.
func (*OVFImportParams) String ¶
func (oip *OVFImportParams) String() string
type OvfDescriptorLoaderInterface ¶
OvfDescriptorLoaderInterface represents a loader for OVF descriptors