version

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BucketName represents the name of the bucket where this service stores data.
	BucketName = "version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service represents a service to manage stored versions.

func NewService

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

NewService creates a new instance of a service.

func (*Service) Edition

func (service *Service) Edition() (portainer.SoftwareEdition, error)

func (*Service) InstanceID

func (service *Service) InstanceID() (string, error)

InstanceID retrieves the stored instance ID.

func (*Service) IsUpdating

func (service *Service) IsUpdating() (bool, error)

IsUpdating retrieves the database updating status.

func (*Service) SchemaVersion

func (service *Service) SchemaVersion() (string, error)

func (*Service) StoreIsUpdating

func (service *Service) StoreIsUpdating(isUpdating bool) error

StoreIsUpdating store the database updating status.

func (*Service) UpdateInstanceID

func (service *Service) UpdateInstanceID(id string) error

StoreInstanceID store the instance ID.

func (*Service) UpdateSchemaVersion

func (service *Service) UpdateSchemaVersion(version string) error

func (*Service) UpdateVersion

func (service *Service) UpdateVersion(version *models.Version) error

UpdateVersion persists a Version object.

func (*Service) Version

func (service *Service) Version() (*models.Version, error)

Version retrieve the version object.

Jump to

Keyboard shortcuts

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