Documentation ¶
Index ¶
- func Cleanup(unique string)
- func CopyFile(src, dst string) error
- func Download(ctx context.Context, p *resources.Agent) error
- func DownloadURL(p *resources.Agent) string
- func Downloaded(ctx context.Context, p *resources.Agent) (bool, error)
- func MoveFile(src, dst string) error
- func PinToLatestRelease(ctx context.Context, agent *resources.Agent) error
- func ValidURL(s string) bool
- type AgentContext
- type GithubSource
- type Pluggable
- type ProcessInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶ added in v0.1.132
CopyFile copies a file from src to dst. If dst does not exist, it is created with permissions copied from src.
func DownloadURL ¶
func Downloaded ¶ added in v0.0.90
func MoveFile ¶ added in v0.1.132
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 ¶
Types ¶
type AgentContext ¶
type GithubSource ¶
type ProcessInfo ¶ added in v0.0.67
type ProcessInfo struct {
PID int
}
Click to show internal directories.
Click to hide internal directories.