Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) Edition() (portainer.SoftwareEdition, error)
- func (service *Service) InstanceID() (string, error)
- func (service *Service) IsUpdating() (bool, error)
- func (service *Service) SchemaVersion() (string, error)
- func (service *Service) StoreIsUpdating(isUpdating bool) error
- func (service *Service) UpdateInstanceID(id string) error
- func (service *Service) UpdateSchemaVersion(version string) error
- func (service *Service) UpdateVersion(version *models.Version) error
- func (service *Service) Version() (*models.Version, error)
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) InstanceID ¶
InstanceID retrieves the stored instance ID.
func (*Service) IsUpdating ¶
IsUpdating retrieves the database updating status.
func (*Service) SchemaVersion ¶
func (*Service) StoreIsUpdating ¶
StoreIsUpdating store the database updating status.
func (*Service) UpdateInstanceID ¶
StoreInstanceID store the instance ID.
func (*Service) UpdateSchemaVersion ¶
func (*Service) UpdateVersion ¶
UpdateVersion persists a Version object.
Click to show internal directories.
Click to hide internal directories.