Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) BucketName() string
- func (service *Service) Create(FDOProfile *portainer.FDOProfile) error
- func (service *Service) Delete(ID portainer.FDOProfileID) error
- func (service *Service) FDOProfile(ID portainer.FDOProfileID) (*portainer.FDOProfile, error)
- func (service *Service) FDOProfiles() ([]portainer.FDOProfile, error)
- func (service *Service) GetNextIdentifier() int
- func (service *Service) Update(ID portainer.FDOProfileID, FDOProfile *portainer.FDOProfile) error
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "fdo_profiles"
)
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 managingFDO Profiles data.
func NewService ¶
func NewService(connection portainer.Connection) (*Service, error)
NewService creates a new instance of a service.
func (*Service) BucketName ¶
func (*Service) Create ¶
func (service *Service) Create(FDOProfile *portainer.FDOProfile) error
Create assign an ID to a new FDO Profile and saves it.
func (*Service) Delete ¶
func (service *Service) Delete(ID portainer.FDOProfileID) error
Delete deletes an FDO Profile.
func (*Service) FDOProfile ¶
func (service *Service) FDOProfile(ID portainer.FDOProfileID) (*portainer.FDOProfile, error)
FDOProfile returns an FDO Profile by ID.
func (*Service) FDOProfiles ¶
func (service *Service) FDOProfiles() ([]portainer.FDOProfile, error)
FDOProfiles return an array containing all the FDO Profiles.
func (*Service) GetNextIdentifier ¶
GetNextIdentifier returns the next identifier for a FDO Profile.
func (*Service) Update ¶
func (service *Service) Update(ID portainer.FDOProfileID, FDOProfile *portainer.FDOProfile) error
Update updates an FDO Profile.
Click to show internal directories.
Click to hide internal directories.