volume

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Overview

package volume defines the API service and handlers for the volumes API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(r types.VersionedRouter, service Service, conf *config.Config, logger flog.Logger)

Types

type CreateVolumeRequest

type CreateVolumeRequest struct {
	Name       string
	Driver     string
	DriverOpts map[string]string
	Labels     map[string]string
}

type Service

type Service interface {
	Create(ctx context.Context, name string, labels []string) (*native.Volume, error)
	List(ctx context.Context, filters []string) (*types.VolumesListResponse, error)
	Remove(ctx context.Context, volName string, force bool) error
	Inspect(volName string) (*native.Volume, error)
}

Jump to

Keyboard shortcuts

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