imagestorage

package
v0.0.0-...-57b83e3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capacity

type Capacity struct {
	// total size(byte)
	Total uint64 `json:"total"`
	// available size(byte)
	Free uint64 `json:"free"`
}

Capacity holds information about capacity of image storage

type Driver

type Driver interface {
	// Name returns a human-readable name of the driver
	Name() string
	// Cap returns the capacity of the image storage
	Cap() (*Capacity, error)
}

Driver defines methods that an image storage driver must implement

var GlobalDriver Driver

GlobalDriver is a global image storage driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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