tracker

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateAssignmentStatus

func UpdateAssignmentStatus(ctx context.Context, t *Tracker) error

func UpdateConfig

func UpdateConfig(agentName, cfgAssignmentID, cfgFile string, data []byte) error

func VerifyConfig

func VerifyConfig(ctx context.Context, agentName, cfgFile string) error

Types

type Poller

type Poller struct {
	// contains filtered or unexported fields
}

func NewPoller

func NewPoller() (*Poller, error)

func (*Poller) Start

func (p *Poller) Start(ctx context.Context)

type Tracker

type Tracker struct {
	AgentID      string `json:"agent_id"      yaml:"agent_id"`
	AssignmentID string `json:"assignment_id" yaml:"assignment_id"`
	S            string `json:"s"             yaml:"s"`
	D            string `json:"d"             yaml:"d"`
	Modified     bool   `json:"modified"      yaml:"modified"`
}

Jump to

Keyboard shortcuts

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