scanner

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProvisioningStateReady = "READY"
	InstanceStateRunning   = "RUNNING"
)
View Source
const (
	DiskSizeGB = 10
)

Variables

View Source
var (
	VMCreateEstimateProvisionTime = 2 * time.Minute
	VMDiskAttachEstimateTime      = 2 * time.Minute
	VMDeleteEstimateTime          = 2 * time.Minute
)
View Source
var (
	SnapshotCreateEstimateProvisionTime = 2 * time.Minute
	SnapshotDeleteEstimateTime          = 2 * time.Minute
)
View Source
var (
	DiskEstimateProvisionTime = 2 * time.Minute
	DiskDeleteEstimateTime    = 2 * time.Minute
)

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	InstancesClient *compute.InstancesClient
	SnapshotsClient *compute.SnapshotsClient
	DisksClient     *compute.DisksClient

	ScannerZone         string
	ProjectID           string
	ScannerSourceImage  string
	ScannerMachineType  string
	ScannerSubnetwork   string
	ScannerSSHPublicKey string
}

func (*Scanner) RemoveAssetScan

func (s *Scanner) RemoveAssetScan(ctx context.Context, config *provider.ScanJobConfig) error

func (*Scanner) RunAssetScan

func (s *Scanner) RunAssetScan(ctx context.Context, config *provider.ScanJobConfig) error

nolint:cyclop

Jump to

Keyboard shortcuts

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