manager

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(unique string)

func Download

func Download(ctx context.Context, p *configurations.Agent) error

func DownloadURL

func DownloadURL(p *configurations.Agent) string

func Downloaded added in v0.0.90

func Downloaded(p *configurations.Agent) bool

func PinToLatestRelease

func PinToLatestRelease(ctx context.Context, agent *configurations.Agent) error

func ValidURL

func ValidURL(s string) bool

Types

type AgentContext

type AgentContext interface {
	Key(p *configurations.Agent, unique string) string
	Default() plugin.Plugin
}

type GithubSource

type GithubSource struct {
	Owner string
	Repo  string
}

type Pluggable

type Pluggable interface {
	ImplementationKind() string
	Path() (string, error)
	Name() string
	Unique() string
}

type ProcessInfo added in v0.0.67

type ProcessInfo struct {
	PID int
}

func Load

func Load[P AgentContext, Instance any](ctx context.Context, p *configurations.Agent, unique string) (*Instance, *ProcessInfo, error)

Jump to

Keyboard shortcuts

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