api

package
v0.0.0-...-04a098d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(port int) error

StartServer starts the API server

Types

type ProviderSvcer

type ProviderSvcer interface {
	ListVolumes() ([]Volume, error)
	TakeSnapshot(snapRule *models.SnapRule) (string, error)
}

ProviderSvcer is the interface Provider Services must implement

type Volume

type Volume struct {
	ID   string
	Name string
	// size in gigabytes
	Size   float64
	Region string
	// needed for scaleway
	Organization string
}

Jump to

Keyboard shortcuts

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