volume

package
v0.1.59 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Shared

type Shared struct {
	Manager *manager.Manager
	Client  *clients.Http
}

func (*Shared) Drain

func (shared *Shared) Drain()

func (*Shared) GetCluster

func (shared *Shared) GetCluster() *cluster.Cluster

func (*Shared) IsDrained

func (shared *Shared) IsDrained() bool

type Volume

type Volume struct {
	Started bool
	Shared  *Shared
	Client  *http.Client
}

func New

func New(mgr *manager.Manager) *Volume

func (*Volume) Apply

func (volume *Volume) Apply(user *authentication.User, definition []byte, agent string) (iresponse.Response, error)

func (*Volume) Delete

func (volume *Volume) Delete(user *authentication.User, definition []byte, agent string) (iresponse.Response, error)

func (*Volume) Event

func (volume *Volume) Event(event ievents.Event) error

func (*Volume) GetShared

func (volume *Volume) GetShared() ishared.Shared

func (*Volume) Start

func (volume *Volume) Start() error

func (*Volume) State

func (volume *Volume) State(user *authentication.User, definition []byte, agent string) (iresponse.Response, error)

Jump to

Keyboard shortcuts

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