Help us shape the future of Go! Take the 2026 Go Developer Survey

manager

package
v0.1.133 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 19 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(unique string)

func CopyFile added in v0.1.132

func CopyFile(src, dst string) error

CopyFile copies a file from src to dst. If dst does not exist, it is created with permissions copied from src.

func Download

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

func DownloadURL

func DownloadURL(p *resources.Agent) string

func Downloaded added in v0.0.90

func Downloaded(ctx context.Context, p *resources.Agent) (bool, error)

func MoveFile added in v0.1.132

func MoveFile(src, dst string) error

MoveFile attempts to rename the file, and if it fails due to an invalid cross-device link, it falls back to copying the file and then removing the original file.

func PinToLatestRelease

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

func ValidURL

func ValidURL(s string) bool

Types

type AgentContext

type AgentContext interface {
	Key(p *resources.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 *resources.Agent, unique string) (*Instance, *ProcessInfo, error)

Jump to

Keyboard shortcuts

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