Documentation ¶
Index ¶
- func Cleanup(unique string)
- func Download(ctx context.Context, p *configurations.Agent) error
- func DownloadURL(p *configurations.Agent) string
- func Downloaded(p *configurations.Agent) bool
- func PinToLatestRelease(ctx context.Context, agent *configurations.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 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
Types ¶
type AgentContext ¶
type AgentContext interface { Key(p *configurations.Agent, unique string) string Default() plugin.Plugin }
type GithubSource ¶
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)
Click to show internal directories.
Click to hide internal directories.