tasks

package
v0.0.0-...-426bf0d Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tasks implements tasks to be submitted to distros.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LandscapeConfigure

type LandscapeConfigure struct {
	Config string
}

LandscapeConfigure is a task that registers/disables Landscape in a distro: - to register: send the config to register with. - to disable: send an empty config.

func (LandscapeConfigure) Execute

func (t LandscapeConfigure) Execute(ctx context.Context, client task.Connection) error

Execute sends the config to the target WSL-Pro-Service so that the distro can be registered in Landscape.

func (LandscapeConfigure) Is

func (t LandscapeConfigure) Is(other task.Task) bool

Is is a custom comparator. All LandscapeConfigure tasks are considered equivalent. In other words: newer instructions to configure will override old ones.

func (LandscapeConfigure) String

func (t LandscapeConfigure) String() string

String returns the name of the task.

type ProAttachment

type ProAttachment struct {
	Token string
}

ProAttachment is a task that attaches/dettaches Ubuntu Pro to a distro: - to attach: send the token to attach with. - to detach: send an empty token.

func (ProAttachment) Execute

func (t ProAttachment) Execute(ctx context.Context, conn task.Connection) error

Execute is needed to fulfil Task.

func (ProAttachment) Is

func (t ProAttachment) Is(other task.Task) bool

Is is a custom comparator. All ProAttachment tasks are considered equivalent.

func (ProAttachment) String

func (t ProAttachment) String() string

String is needed to fulfil Task.

Jump to

Keyboard shortcuts

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