Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) BucketName() string
- func (service *Service) Create(ID portainer.EdgeJobID, edgeJob *portainer.EdgeJob) error
- func (service *Service) DeleteEdgeJob(ID portainer.EdgeJobID) error
- func (service *Service) EdgeJob(ID portainer.EdgeJobID) (*portainer.EdgeJob, error)
- func (service *Service) EdgeJobs() ([]portainer.EdgeJob, error)
- func (service *Service) GetNextIdentifier() int
- func (service *Service) UpdateEdgeJob(ID portainer.EdgeJobID, edgeJob *portainer.EdgeJob) error
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "edgejobs"
)
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 edge jobs data.
func NewService ¶
func NewService(connection portainer.Connection) (*Service, error)
NewService creates a new instance of a service.
func (*Service) BucketName ¶
func (*Service) DeleteEdgeJob ¶
DeleteEdgeJob deletes an Edge job
func (*Service) GetNextIdentifier ¶
GetNextIdentifier returns the next identifier for an environment(endpoint).
Click to show internal directories.
Click to hide internal directories.