Documentation ¶
Index ¶
- Variables
- type Architecture
- func (Architecture) Descriptor() protoreflect.EnumDescriptor
- func (x Architecture) Enum() *Architecture
- func (Architecture) EnumDescriptor() ([]byte, []int)deprecated
- func (x Architecture) Number() protoreflect.EnumNumber
- func (x Architecture) String() string
- func (Architecture) Type() protoreflect.EnumType
- type Distro
- type InspectionResults
- func (*InspectionResults) Descriptor() ([]byte, []int)deprecated
- func (x *InspectionResults) GetBiosBootable() bool
- func (x *InspectionResults) GetElapsedTimeMs() int64
- func (x *InspectionResults) GetErrorWhen() InspectionResults_ErrorWhen
- func (x *InspectionResults) GetOsCount() int32
- func (x *InspectionResults) GetOsRelease() *OsRelease
- func (x *InspectionResults) GetRootFs() string
- func (x *InspectionResults) GetUefiBootable() bool
- func (*InspectionResults) ProtoMessage()
- func (x *InspectionResults) ProtoReflect() protoreflect.Message
- func (x *InspectionResults) Reset()
- func (x *InspectionResults) String() string
- type InspectionResults_ErrorWhen
- func (InspectionResults_ErrorWhen) Descriptor() protoreflect.EnumDescriptor
- func (x InspectionResults_ErrorWhen) Enum() *InspectionResults_ErrorWhen
- func (InspectionResults_ErrorWhen) EnumDescriptor() ([]byte, []int)deprecated
- func (x InspectionResults_ErrorWhen) Number() protoreflect.EnumNumber
- func (x InspectionResults_ErrorWhen) String() string
- func (InspectionResults_ErrorWhen) Type() protoreflect.EnumType
- type OsRelease
- func (*OsRelease) Descriptor() ([]byte, []int)deprecated
- func (x *OsRelease) GetArchitecture() Architecture
- func (x *OsRelease) GetCliFormatted() string
- func (x *OsRelease) GetDistro() string
- func (x *OsRelease) GetDistroId() Distro
- func (x *OsRelease) GetMajorVersion() string
- func (x *OsRelease) GetMinorVersion() string
- func (*OsRelease) ProtoMessage()
- func (x *OsRelease) ProtoReflect() protoreflect.Message
- func (x *OsRelease) Reset()
- func (x *OsRelease) String() string
- type OutputInfo
- func (*OutputInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OutputInfo) GetDetectedSourcesSizeGb() []int64
- func (x *OutputInfo) GetFailureMessage() string
- func (x *OutputInfo) GetFailureMessageWithoutPrivacyInfo() string
- func (x *OutputInfo) GetImportFileFormat() string
- func (x *OutputInfo) GetInflationFallbackReason() string
- func (x *OutputInfo) GetInflationTimeMs() []int64
- func (x *OutputInfo) GetInflationType() string
- func (x *OutputInfo) GetInspectionResults() *InspectionResults
- func (x *OutputInfo) GetIsUefiCompatibleImage() bool
- func (x *OutputInfo) GetIsUefiDetected() bool
- func (x *OutputInfo) GetSerialOutputs() []string
- func (x *OutputInfo) GetShadowDiskMatchResult() string
- func (x *OutputInfo) GetShadowInflationTimeMs() []int64
- func (x *OutputInfo) GetSourcesSizeGb() []int64
- func (x *OutputInfo) GetTargetsSizeGb() []int64
- func (*OutputInfo) ProtoMessage()
- func (x *OutputInfo) ProtoReflect() protoreflect.Message
- func (x *OutputInfo) Reset()
- func (x *OutputInfo) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Distro_name = map[int32]string{ 0: "DISTRO_UNKNOWN", 1000: "WINDOWS", 2000: "DEBIAN", 2001: "UBUNTU", 2002: "KALI", 3000: "OPENSUSE", 3001: "SLES", 3002: "SLES_SAP", 4000: "FEDORA", 4001: "RHEL", 4002: "CENTOS", 4003: "AMAZON", 4004: "ORACLE", 4005: "ROCKY", 4006: "CENTOS_STREAM", 5000: "ARCH", 6000: "CLEAR", } Distro_value = map[string]int32{ "DISTRO_UNKNOWN": 0, "WINDOWS": 1000, "DEBIAN": 2000, "UBUNTU": 2001, "KALI": 2002, "OPENSUSE": 3000, "SLES": 3001, "SLES_SAP": 3002, "FEDORA": 4000, "RHEL": 4001, "CENTOS": 4002, "AMAZON": 4003, "ORACLE": 4004, "ROCKY": 4005, "CENTOS_STREAM": 4006, "ARCH": 5000, "CLEAR": 6000, } )
Enum value maps for Distro.
var ( Architecture_name = map[int32]string{ 0: "ARCHITECTURE_UNKNOWN", 1: "X86", 2: "X64", } Architecture_value = map[string]int32{ "ARCHITECTURE_UNKNOWN": 0, "X86": 1, "X64": 2, } )
Enum value maps for Architecture.
var ( InspectionResults_ErrorWhen_name = map[int32]string{ 0: "NO_ERROR", 100: "STARTING_WORKER", 101: "RUNNING_WORKER", 200: "MOUNTING_GUEST", 201: "INSPECTING_OS", 202: "INSPECTING_BOOTLOADER", 300: "DECODING_WORKER_RESPONSE", 301: "INTERPRETING_INSPECTION_RESULTS", } InspectionResults_ErrorWhen_value = map[string]int32{ "NO_ERROR": 0, "STARTING_WORKER": 100, "RUNNING_WORKER": 101, "MOUNTING_GUEST": 200, "INSPECTING_OS": 201, "INSPECTING_BOOTLOADER": 202, "DECODING_WORKER_RESPONSE": 300, "INTERPRETING_INSPECTION_RESULTS": 301, } )
Enum value maps for InspectionResults_ErrorWhen.
var File_inspect_proto protoreflect.FileDescriptor
var File_output_info_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Architecture ¶
type Architecture int32
const ( Architecture_ARCHITECTURE_UNKNOWN Architecture = 0 Architecture_X86 Architecture = 1 Architecture_X64 Architecture = 2 )
func (Architecture) Descriptor ¶
func (Architecture) Descriptor() protoreflect.EnumDescriptor
func (Architecture) Enum ¶
func (x Architecture) Enum() *Architecture
func (Architecture) EnumDescriptor
deprecated
func (Architecture) EnumDescriptor() ([]byte, []int)
Deprecated: Use Architecture.Descriptor instead.
func (Architecture) Number ¶
func (x Architecture) Number() protoreflect.EnumNumber
func (Architecture) String ¶
func (x Architecture) String() string
func (Architecture) Type ¶
func (Architecture) Type() protoreflect.EnumType
type Distro ¶
type Distro int32
Distro denotes a product line of operating systems, using the following test:
If two operating systems at the same version and CPU architecture can be imported using the same logic, then they have the same Distro. For example, if Ubuntu 20.04 and xubuntu 20.04 are importable using the same logic, then they'd both be categorized as Distro.UBUNTU.
When adding new members, keep in mind:
- Group distros by family, using buckets of size 1000.
- The following properties are orthogonal and should not be encoded here:
- CPU architecture
- Major or minor versions
- GCE licensing (such as BYOL)
const ( Distro_DISTRO_UNKNOWN Distro = 0 Distro_WINDOWS Distro = 1000 Distro_DEBIAN Distro = 2000 Distro_UBUNTU Distro = 2001 Distro_KALI Distro = 2002 Distro_OPENSUSE Distro = 3000 Distro_SLES Distro = 3001 Distro_SLES_SAP Distro = 3002 Distro_FEDORA Distro = 4000 Distro_RHEL Distro = 4001 Distro_CENTOS Distro = 4002 Distro_AMAZON Distro = 4003 Distro_ORACLE Distro = 4004 Distro_ROCKY Distro = 4005 Distro_CENTOS_STREAM Distro = 4006 Distro_ARCH Distro = 5000 Distro_CLEAR Distro = 6000 )
func (Distro) Descriptor ¶
func (Distro) Descriptor() protoreflect.EnumDescriptor
func (Distro) EnumDescriptor
deprecated
func (Distro) Number ¶
func (x Distro) Number() protoreflect.EnumNumber
func (Distro) Type ¶
func (Distro) Type() protoreflect.EnumType
type InspectionResults ¶
type InspectionResults struct { // The OS and version detected. Populated when a single OS is // detected. Empty when none or multiple are found. OsRelease *OsRelease `protobuf:"bytes,1,opt,name=os_release,json=osRelease,proto3" json:"os_release,omitempty"` // bios_bootable indicates whether `os_release` is bootable using bios. BiosBootable bool `protobuf:"varint,2,opt,name=bios_bootable,json=biosBootable,proto3" json:"bios_bootable,omitempty"` // uefi_bootable indicates whether `os_release` is bootable with UEFI. UefiBootable bool `protobuf:"varint,3,opt,name=uefi_bootable,json=uefiBootable,proto3" json:"uefi_bootable,omitempty"` // root_fs indicates the file system type of the partition containing // the root directory ("/") of `os_release`. RootFs string `protobuf:"bytes,4,opt,name=root_fs,json=rootFs,proto3" json:"root_fs,omitempty"` // If inspection is not successful, when the error occurred. // // Success is independent of whether results were found. For example, // inspection of an empty disk will have empty results, // and error_when will be 'NO_ERROR'. ErrorWhen InspectionResults_ErrorWhen `protobuf:"varint,5,opt,name=error_when,json=errorWhen,proto3,enum=InspectionResults_ErrorWhen" json:"error_when,omitempty"` // Total time spent inspecting. This includes prep, running the worker, // and tearing down the worker. ElapsedTimeMs int64 `protobuf:"varint,6,opt,name=elapsed_time_ms,json=elapsedTimeMs,proto3" json:"elapsed_time_ms,omitempty"` // Number of operating systems detected on the disk. OsCount int32 `protobuf:"varint,7,opt,name=os_count,json=osCount,proto3" json:"os_count,omitempty"` // contains filtered or unexported fields }
InspectionResults contains metadata determined using automated inspection of the guest image.
func (*InspectionResults) Descriptor
deprecated
func (*InspectionResults) Descriptor() ([]byte, []int)
Deprecated: Use InspectionResults.ProtoReflect.Descriptor instead.
func (*InspectionResults) GetBiosBootable ¶
func (x *InspectionResults) GetBiosBootable() bool
func (*InspectionResults) GetElapsedTimeMs ¶
func (x *InspectionResults) GetElapsedTimeMs() int64
func (*InspectionResults) GetErrorWhen ¶
func (x *InspectionResults) GetErrorWhen() InspectionResults_ErrorWhen
func (*InspectionResults) GetOsCount ¶
func (x *InspectionResults) GetOsCount() int32
func (*InspectionResults) GetOsRelease ¶
func (x *InspectionResults) GetOsRelease() *OsRelease
func (*InspectionResults) GetRootFs ¶
func (x *InspectionResults) GetRootFs() string
func (*InspectionResults) GetUefiBootable ¶
func (x *InspectionResults) GetUefiBootable() bool
func (*InspectionResults) ProtoMessage ¶
func (*InspectionResults) ProtoMessage()
func (*InspectionResults) ProtoReflect ¶
func (x *InspectionResults) ProtoReflect() protoreflect.Message
func (*InspectionResults) Reset ¶
func (x *InspectionResults) Reset()
func (*InspectionResults) String ¶
func (x *InspectionResults) String() string
type InspectionResults_ErrorWhen ¶
type InspectionResults_ErrorWhen int32
const ( InspectionResults_NO_ERROR InspectionResults_ErrorWhen = 0 InspectionResults_STARTING_WORKER InspectionResults_ErrorWhen = 100 InspectionResults_RUNNING_WORKER InspectionResults_ErrorWhen = 101 InspectionResults_MOUNTING_GUEST InspectionResults_ErrorWhen = 200 InspectionResults_INSPECTING_OS InspectionResults_ErrorWhen = 201 InspectionResults_INSPECTING_BOOTLOADER InspectionResults_ErrorWhen = 202 InspectionResults_DECODING_WORKER_RESPONSE InspectionResults_ErrorWhen = 300 InspectionResults_INTERPRETING_INSPECTION_RESULTS InspectionResults_ErrorWhen = 301 )
func (InspectionResults_ErrorWhen) Descriptor ¶
func (InspectionResults_ErrorWhen) Descriptor() protoreflect.EnumDescriptor
func (InspectionResults_ErrorWhen) Enum ¶
func (x InspectionResults_ErrorWhen) Enum() *InspectionResults_ErrorWhen
func (InspectionResults_ErrorWhen) EnumDescriptor
deprecated
func (InspectionResults_ErrorWhen) EnumDescriptor() ([]byte, []int)
Deprecated: Use InspectionResults_ErrorWhen.Descriptor instead.
func (InspectionResults_ErrorWhen) Number ¶
func (x InspectionResults_ErrorWhen) Number() protoreflect.EnumNumber
func (InspectionResults_ErrorWhen) String ¶
func (x InspectionResults_ErrorWhen) String() string
func (InspectionResults_ErrorWhen) Type ¶
func (InspectionResults_ErrorWhen) Type() protoreflect.EnumType
type OsRelease ¶
type OsRelease struct { // cli_formatted is a concatenation of distro, major_version, and // minor_version using the format expected by the `--os` flag. // For examples, see: // // https://cloud.google.com/sdk/gcloud/reference/compute/images/import#--os CliFormatted string `protobuf:"bytes,1,opt,name=cli_formatted,json=cliFormatted,proto3" json:"cli_formatted,omitempty"` // distro is the lowercase name of the distribution. Examples: // [centos, debian, opensuse, rhel, sles, sles-sap, ubuntu, windows] Distro string `protobuf:"bytes,2,opt,name=distro,proto3" json:"distro,omitempty"` // major_version of the OS, as represented by the vendor. // Examples: // - Windows 2008r2: 2008 // - Ubuntu 18.04: 18 // - OpenSUSE Tumbleweed: tumbleweed MajorVersion string `protobuf:"bytes,3,opt,name=major_version,json=majorVersion,proto3" json:"major_version,omitempty"` // minor_version of the OS, as formatted by the vendor. // Examples: // - Windows 2008r2: r2 // - Ubuntu 18.04: 04 // - OpenSUSE Tumbleweed: <empty> MinorVersion string `protobuf:"bytes,4,opt,name=minor_version,json=minorVersion,proto3" json:"minor_version,omitempty"` Architecture Architecture `protobuf:"varint,5,opt,name=architecture,proto3,enum=Architecture" json:"architecture,omitempty"` // Enumerated representation of the distro. Prefer this for // programmatic usage. DistroId Distro `protobuf:"varint,6,opt,name=distro_id,json=distroId,proto3,enum=Distro" json:"distro_id,omitempty"` // contains filtered or unexported fields }
OsRelease records the name and version of an operating system.
func (*OsRelease) Descriptor
deprecated
func (*OsRelease) GetArchitecture ¶
func (x *OsRelease) GetArchitecture() Architecture
func (*OsRelease) GetCliFormatted ¶
func (*OsRelease) GetDistroId ¶
func (*OsRelease) GetMajorVersion ¶
func (*OsRelease) GetMinorVersion ¶
func (*OsRelease) ProtoMessage ¶
func (*OsRelease) ProtoMessage()
func (*OsRelease) ProtoReflect ¶
func (x *OsRelease) ProtoReflect() protoreflect.Message
type OutputInfo ¶
type OutputInfo struct { // Size of import/export sources (image/disk/file) SourcesSizeGb []int64 `protobuf:"varint,1,rep,packed,name=sources_size_gb,json=sourcesSizeGb,proto3" json:"sources_size_gb,omitempty"` // Size of import/export targets (image/disk/file) TargetsSizeGb []int64 `protobuf:"varint,2,rep,packed,name=targets_size_gb,json=targetsSizeGb,proto3" json:"targets_size_gb,omitempty"` // Failure message of the command FailureMessage string `protobuf:"bytes,3,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"` // Failure message of the command without privacy info FailureMessageWithoutPrivacyInfo string `` /* 163-byte string literal not displayed */ // Each element is the serial output log of a worker instance. // This is only populated if the workflow fails. SerialOutputs []string `protobuf:"bytes,5,rep,name=serial_outputs,json=serialOutputs,proto3" json:"serial_outputs,omitempty"` // Import file format ImportFileFormat string `protobuf:"bytes,6,opt,name=import_file_format,json=importFileFormat,proto3" json:"import_file_format,omitempty"` // Size of import/export sources (image/disk/file) that was detected. // sources_size_gb, in contrast, contains the actual value. Ideally // these values will match; a mismatch indicates an error in our // detection. DetectedSourcesSizeGb []int64 `` /* 136-byte string literal not displayed */ // Inflation type, which can be qemu or API. InflationType string `protobuf:"bytes,8,opt,name=inflation_type,json=inflationType,proto3" json:"inflation_type,omitempty"` // Inflation time InflationTimeMs []int64 `protobuf:"varint,9,rep,packed,name=inflation_time_ms,json=inflationTimeMs,proto3" json:"inflation_time_ms,omitempty"` // Inflation time of the shadow disk. It's for new API validation. ShadowInflationTimeMs []int64 `` /* 137-byte string literal not displayed */ // Shadow disk match result for shadow disk inflater. It's for new API // validation. ShadowDiskMatchResult string `` /* 129-byte string literal not displayed */ // Indicates whether the image is imported and marked as UEFI_COMPATIBLE. IsUefiCompatibleImage bool `` /* 130-byte string literal not displayed */ // Indicates whether the image is auto-detected to be UEFI compatible. IsUefiDetected bool `protobuf:"varint,13,opt,name=is_uefi_detected,json=isUefiDetected,proto3" json:"is_uefi_detected,omitempty"` // Inspection results. Ref to the def of 'InspectionResults' to see details. InspectionResults *InspectionResults `protobuf:"bytes,14,opt,name=inspection_results,json=inspectionResults,proto3" json:"inspection_results,omitempty"` // Inflation fallback reason InflationFallbackReason string `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
OutputInfo records output info from the tools.
func (*OutputInfo) Descriptor
deprecated
func (*OutputInfo) Descriptor() ([]byte, []int)
Deprecated: Use OutputInfo.ProtoReflect.Descriptor instead.
func (*OutputInfo) GetDetectedSourcesSizeGb ¶
func (x *OutputInfo) GetDetectedSourcesSizeGb() []int64
func (*OutputInfo) GetFailureMessage ¶
func (x *OutputInfo) GetFailureMessage() string
func (*OutputInfo) GetFailureMessageWithoutPrivacyInfo ¶
func (x *OutputInfo) GetFailureMessageWithoutPrivacyInfo() string
func (*OutputInfo) GetImportFileFormat ¶
func (x *OutputInfo) GetImportFileFormat() string
func (*OutputInfo) GetInflationFallbackReason ¶
func (x *OutputInfo) GetInflationFallbackReason() string
func (*OutputInfo) GetInflationTimeMs ¶
func (x *OutputInfo) GetInflationTimeMs() []int64
func (*OutputInfo) GetInflationType ¶
func (x *OutputInfo) GetInflationType() string
func (*OutputInfo) GetInspectionResults ¶
func (x *OutputInfo) GetInspectionResults() *InspectionResults
func (*OutputInfo) GetIsUefiCompatibleImage ¶
func (x *OutputInfo) GetIsUefiCompatibleImage() bool
func (*OutputInfo) GetIsUefiDetected ¶
func (x *OutputInfo) GetIsUefiDetected() bool
func (*OutputInfo) GetSerialOutputs ¶
func (x *OutputInfo) GetSerialOutputs() []string
func (*OutputInfo) GetShadowDiskMatchResult ¶
func (x *OutputInfo) GetShadowDiskMatchResult() string
func (*OutputInfo) GetShadowInflationTimeMs ¶
func (x *OutputInfo) GetShadowInflationTimeMs() []int64
func (*OutputInfo) GetSourcesSizeGb ¶
func (x *OutputInfo) GetSourcesSizeGb() []int64
func (*OutputInfo) GetTargetsSizeGb ¶
func (x *OutputInfo) GetTargetsSizeGb() []int64
func (*OutputInfo) ProtoMessage ¶
func (*OutputInfo) ProtoMessage()
func (*OutputInfo) ProtoReflect ¶
func (x *OutputInfo) ProtoReflect() protoreflect.Message
func (*OutputInfo) Reset ¶
func (x *OutputInfo) Reset()
func (*OutputInfo) String ¶
func (x *OutputInfo) String() string