disk

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package disk contains abstract utility function to filter disks in MachineState.Disk call.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(options *Options)

Option defines a function that can alter MachineState.Disk() method output.

func WithPartitionLabel

func WithPartitionLabel(label string) Option

WithPartitionLabel select a disk which has the partition labeled.

type Options

type Options struct {
	Label string
}

Options contains disk selection options.

Jump to

Keyboard shortcuts

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