snapshot

package
v0.0.0-...-270f78c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Zlib Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BucketName = "snapshots"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(connection portainer.Connection) (*Service, error)

func (*Service) BucketName

func (service *Service) BucketName() string

func (*Service) Create

func (service *Service) Create(snapshot *portainer.Snapshot) error

func (*Service) DeleteSnapshot

func (service *Service) DeleteSnapshot(endpointID portainer.EndpointID) error

func (*Service) Snapshot

func (service *Service) Snapshot(endpointID portainer.EndpointID) (*portainer.Snapshot, error)

func (*Service) Snapshots

func (service *Service) Snapshots() ([]portainer.Snapshot, error)

func (*Service) UpdateSnapshot

func (service *Service) UpdateSnapshot(snapshot *portainer.Snapshot) error

Jump to

Keyboard shortcuts

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