Help us shape the future of Go! Take the 2026 Go Developer Survey

coprhd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of the driver
	Name = "coprhd"
	// Type of the driver
	Type = api.DriverType_DRIVER_TYPE_BLOCK
)

Variables

This section is empty.

Functions

func Init

func Init(params map[string]string) (volume.VolumeDriver, error)

Init initializes the driver

Types

type ApiError

type ApiError struct {
	Code        string `json:"code"`
	Retryable   string `json:"retryable"`
	Description string `json:"description"`
	Details     string `json:"details"`
}

ApiError represents the default api error code

type CreateVolumeArgs

type CreateVolumeArgs struct {
	ConsistencyGroup string `json:"consistency_group"`
	Count            int    `json:"count"`
	Name             string `json:"name"`
	Project          string `json:"project"`
	Size             string `json:"size"`
	VArray           string `json:"varray"`
	VPool            string `json:"vpool"`
}

CreateVolumeArgs represents the json parameters for the create volume REST call

type CreateVolumeReply

type CreateVolumeReply struct {
	Task []struct {
		Resource struct {
			Name string `json:"name"`
			Id   string `json:"id"`
		} `json:"resource"`
	} `json:"task"`
}

CreateVolumeReply is the reply from the create volume REST call

Jump to

Keyboard shortcuts

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