diskmanager

package
v0.0.0-...-0a271de Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

type State

type State struct {
	// contains filtered or unexported fields
}

State provides access to a diskmanager worker's view of the state.

func NewState

func NewState(caller base.APICaller, authTag names.MachineTag, options ...Option) *State

NewState creates a new client-side DiskManager facade.

func (*State) SetMachineBlockDevices

func (st *State) SetMachineBlockDevices(ctx context.Context, devices []blockdevice.BlockDevice) error

SetMachineBlockDevices sets the block devices attached to the machine identified by the authenticated machine tag.

Jump to

Keyboard shortcuts

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