edgejob

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

Documentation

Index

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 *Service) BucketName() string

func (*Service) Create

func (service *Service) Create(ID portainer.EdgeJobID, edgeJob *portainer.EdgeJob) error

Create creates a new EdgeJob

func (*Service) DeleteEdgeJob

func (service *Service) DeleteEdgeJob(ID portainer.EdgeJobID) error

DeleteEdgeJob deletes an Edge job

func (*Service) EdgeJob

func (service *Service) EdgeJob(ID portainer.EdgeJobID) (*portainer.EdgeJob, error)

EdgeJob returns an Edge job by ID

func (*Service) EdgeJobs

func (service *Service) EdgeJobs() ([]portainer.EdgeJob, error)

EdgeJobs returns a list of Edge jobs

func (*Service) GetNextIdentifier

func (service *Service) GetNextIdentifier() int

GetNextIdentifier returns the next identifier for an environment(endpoint).

func (*Service) UpdateEdgeJob

func (service *Service) UpdateEdgeJob(ID portainer.EdgeJobID, edgeJob *portainer.EdgeJob) error

UpdateEdgeJob updates an Edge job by ID

Jump to

Keyboard shortcuts

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