azdo

package
v0.0.0-...-95ff4fc Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Size    int    `json:"size"`
	Version string `json:"version"`
	Enabled bool   `json:"enabled"`
	Status  string `json:"status"`
	// contains filtered or unexported fields
}

type AzDoClient

type AzDoClient struct {
	Client            *http.Client
	Name              string
	Address           string
	DefaultCollection string
	AccessToken       string
}

func (*AzDoClient) Agents

func (az *AzDoClient) Agents(poolID int) ([]Agent, error)

func (*AzDoClient) CurrentJobs

func (az *AzDoClient) CurrentJobs(poolID int) ([]Job, error)

func (*AzDoClient) JobsAfter

func (az *AzDoClient) JobsAfter(poolID int, after time.Time) (finishedJobs, currentJobs []Job, err error)

func (*AzDoClient) Pools

func (az *AzDoClient) Pools(ignoreHosted bool) ([]Pool, error)

It would be nice to query AzDo directly for non-hosted agents. Ideally via a query string on the API but not possible- "pools?ishosted=false"

type Job

type Job struct {
	RequestID   int       `json:"requestId"`
	Name        string    `json:"name"`
	QueueTime   time.Time `json:"queueTime"`
	AssignTime  time.Time `json:"assignTime"`
	ReceiveTime time.Time `json:"receiveTime"`
	FinishTime  time.Time `json:"finishTime"`
	Result      string    `json:"result"`
	JobID       string    `json:"jobId"`
	PlanType    string    `json:"planType"`
}

type Pool

type Pool struct {
	ID       int    `json:"id"`
	Name     string `json:"name"`
	Size     int    `json:"size"`
	IsHosted bool   `json:"isHosted"`
}

Jump to

Keyboard shortcuts

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