disk

package
v0.0.0-...-2ac3827 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata map[string]interface{}

type Service

type Service interface {
	Create(size int, iops int, location string, snapshotSpace int) (int, error)
	Delete(id int) error
	SetMetadata(id int, diskMetadata Metadata) error
	Find(id int) (*datatypes.Network_Storage, error)
}

type SoftlayerDiskService

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

func NewSoftlayerDiskService

func NewSoftlayerDiskService(
	softlayerClient bosl.Client,
	logger logger.Logger,
) SoftlayerDiskService

func (SoftlayerDiskService) Create

func (d SoftlayerDiskService) Create(size int, iops int, location string, snapshotSpace int) (int, error)

func (SoftlayerDiskService) Delete

func (d SoftlayerDiskService) Delete(id int) error

func (SoftlayerDiskService) Find

func (SoftlayerDiskService) SetMetadata

func (d SoftlayerDiskService) SetMetadata(id int, vmMetadata Metadata) error

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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