swarmscheduler

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client             *swarm.Client
	CASAddress         string
	CASInstance        string
	JobsRoot           string
	EntrypointHostPath string
	CacheRoot          string
	HostUID            string
	HostGID            string
}

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) *Scheduler

func (*Scheduler) Cancel

func (s *Scheduler) Cancel(ctx context.Context, id string) error

func (*Scheduler) Check

func (s *Scheduler) Check(ctx context.Context) error

func (*Scheduler) Create

func (s *Scheduler) Create(ctx context.Context, job control.Job) error

func (*Scheduler) Logs

func (s *Scheduler) Logs(ctx context.Context, id string, follow bool, output io.Writer) error

func (*Scheduler) ManagedJobs

func (s *Scheduler) ManagedJobs(ctx context.Context) ([]protocol.Job, error)

func (*Scheduler) Remove

func (s *Scheduler) Remove(ctx context.Context, id string) error

func (*Scheduler) Status

func (s *Scheduler) Status(ctx context.Context, id string) (protocol.Job, error)

func (*Scheduler) ValidateImage

func (s *Scheduler) ValidateImage(ctx context.Context, image string) error

Jump to

Keyboard shortcuts

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