settings

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

Documentation

Index

Constants

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

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 for managing environment(endpoint) data.

func NewService

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

NewService creates a new instance of a service.

func (*Service) BucketName

func (service *Service) BucketName() string

func (*Service) IsFeatureFlagEnabled

func (service *Service) IsFeatureFlagEnabled(feature portainer.Feature) bool

func (*Service) Settings

func (service *Service) Settings() (*portainer.Settings, error)

Settings retrieve the settings object.

func (*Service) UpdateSettings

func (service *Service) UpdateSettings(settings *portainer.Settings) error

UpdateSettings persists a Settings object.

Jump to

Keyboard shortcuts

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