taskscheduler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("Task Scheduler is only available on Windows")

ErrUnsupported reports a host that has no Windows Task Scheduler.

Functions

This section is empty.

Types

type Config

type Config struct {
	Directory string
	Run       service.CommandRunner
}

type Manager

type Manager struct{}

Manager is a placeholder on hosts without Task Scheduler so importing the package stays portable and every lifecycle call fails explicitly.

func New

func New(Config) (*Manager, error)

func (*Manager) Name

func (*Manager) Name() string

func (*Manager) Platform

func (*Manager) Platform() service.Platform

func (*Manager) Register

func (*Manager) Start

func (*Manager) Status

func (*Manager) Stop

func (*Manager) Unregister

func (*Manager) Unregister(context.Context, service.Spec) error

Jump to

Keyboard shortcuts

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