disk

package
v0.0.0-...-a74b21b 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

This section is empty.

Variables

This section is empty.

Functions

func NewDisk

func NewDisk(project, zone, diskName string) (disk domain.Disk, err error)

NewDisk constructs a convenience object for passing the disk's project, disk name, disk zone, and URI.

Types

type Inspector

type Inspector interface {
	// Inspect finds partition and boot-related properties for a disk and
	// returns an InspectionResult. The reference is implementation specific.
	Inspect(reference string) (*pb.InspectionResults, error)
	Cancel(reason string) bool
}

Inspector finds partition and boot-related properties for a disk.

func NewInspector

func NewInspector(env daisyutils.EnvironmentSettings, logger logging.Logger) (Inspector, error)

NewInspector creates an Inspector that can inspect GCP disks. A GCE instance runs the inspection; network and subnet are used for its network interface.

Directories

Path Synopsis
Package diskmocks is a generated GoMock package.
Package diskmocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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