storage

package
v0.0.0-...-7a62f64 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRefreshInterval = 6 * time.Hour

Variables

This section is empty.

Functions

func InitService

func InitService(ctx context.Context, opts ...ServiceOpt) (service.Storage, error)

Types

type Service

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

func (*Service) DescribeDisk

func (s *Service) DescribeDisk(ctx context.Context, name string) (*storage.Disk, error)

func (*Service) ListDisks

func (s *Service) ListDisks(ctx context.Context) ([]*storage.Disk, error)

type ServiceOpt

type ServiceOpt func(*Service)

func WithIgnoredDevices

func WithIgnoredDevices(ignored []string) ServiceOpt

func WithRefreshInterval

func WithRefreshInterval(interval time.Duration) ServiceOpt

Jump to

Keyboard shortcuts

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