disks

package
v0.3.9-alpha.1-aksiot-... Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Client virtualharddisk.VirtualHardDiskClient
	Scope  scope.ScopeInterface
}

Service provides operations on resource groups

func NewService

func NewService(scope scope.ScopeInterface) *Service

NewService creates a new disks service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, spec interface{}) error

Delete deletes the disk associated with a VM.

func (*Service) Get

func (s *Service) Get(ctx context.Context, spec interface{}) (interface{}, error)

Get provides information about a disk.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context, spec interface{}) error

Reconcile gets/creates/updates a disk.

type Spec

type Spec struct {
	Name   string
	Source string
}

Spec specification for disk

Jump to

Keyboard shortcuts

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