scanner

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

nolint: wrapcheck

nolint: wrapcheck

nolint: wrapcheck

nolint:wrapcheck

nolint:wrapcheck

nolint: wrapcheck

Index

Constants

This section is empty.

Variables

View Source
var (
	NetworkInterfaceEstimateProvisionTime = 10 * time.Second
	NetworkInterfaceDeleteEstimateTime    = 10 * time.Second
)
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 {
	Cred             azcore.TokenCredential
	VMClient         *armcompute.VirtualMachinesClient
	SnapshotsClient  *armcompute.SnapshotsClient
	DisksClient      *armcompute.DisksClient
	InterfacesClient *armnetwork.InterfacesClient

	SubscriptionID              string
	ScannerLocation             string
	ScannerResourceGroup        string
	ScannerSubnet               string
	ScannerPublicKey            string
	ScannerVMSize               string
	ScannerImagePublisher       string
	ScannerImageOffer           string
	ScannerImageSKU             string
	ScannerImageVersion         string
	ScannerSecurityGroup        string
	ScannerStorageAccountName   string
	ScannerStorageContainerName 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