clients

package
v0.0.0-...-496c0a9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildkiteAPI

type BuildkiteAPI interface {
	ListAgents(org string, page, perPage int) ([]buildkite.Agent, int, error)
	ListBuildyByOrg(org string, page, perPage int) ([]buildkite.Build, int, error)
	ListBuildsByPipeline(org, pipeline string, page, perPage int) ([]buildkite.Build, int, error)
}

func CreateBuildkiteAPI

func CreateBuildkiteAPI(apiToken string, debug bool) (BuildkiteAPI, error)

type BuildkiteAPIWrapper

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

func (*BuildkiteAPIWrapper) ListAgents

func (bk *BuildkiteAPIWrapper) ListAgents(org string, page, perPage int) ([]buildkite.Agent, int, error)

func (*BuildkiteAPIWrapper) ListBuildsByPipeline

func (bk *BuildkiteAPIWrapper) ListBuildsByPipeline(org, pipeline string, page, perPage int) ([]buildkite.Build, int, error)

func (*BuildkiteAPIWrapper) ListBuildyByOrg

func (bk *BuildkiteAPIWrapper) ListBuildyByOrg(org string, page, perPage int) ([]buildkite.Build, int, error)

type BuildkiteClient

type BuildkiteClient interface {
	GetMostRecentBuilds(*data.PipelineID, int) ([]buildkite.Build, error)
	GetAgents(string) ([]buildkite.Agent, error)
}

type CachedBuildkiteClient

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

func CreateCachedBuildkiteClient

func CreateCachedBuildkiteClient(api BuildkiteAPI, cacheTimeout time.Duration) *CachedBuildkiteClient

func (*CachedBuildkiteClient) GetAgents

func (client *CachedBuildkiteClient) GetAgents(org string) ([]buildkite.Agent, error)

func (*CachedBuildkiteClient) GetMostRecentBuilds

func (client *CachedBuildkiteClient) GetMostRecentBuilds(pipeline *data.PipelineID, atLeastNBuilds int) ([]buildkite.Build, error)

type Clock

type Clock interface {
	CurrentTime() time.Time
}

type CloudStorageClient

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

func CreateCloudStorageClient

func CreateCloudStorageClient() (*CloudStorageClient, error)

func (*CloudStorageClient) ReadAllFiles

func (c *CloudStorageClient) ReadAllFiles(bucket, directory string) (*cloudStorageFileIter, error)

type ComputeEngineClient

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

func CreateComputeEngineClient

func CreateComputeEngineClient() (*ComputeEngineClient, error)

func (*ComputeEngineClient) GetAllInstances

func (c *ComputeEngineClient) GetAllInstances(projects []string) ([]*ComputeInstance, error)

type ComputeInstance

type ComputeInstance struct {
	Name         string
	Zone         string
	Project      string
	Status       string
	CreationTime time.Time
}

type DefaultClock

type DefaultClock struct{}

func (DefaultClock) CurrentTime

func (DefaultClock) CurrentTime() time.Time

type StackdriverClient

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

func CreateStackdriverClient

func CreateStackdriverClient() (*StackdriverClient, error)

func (*StackdriverClient) WriteTimeSeries

func (sc *StackdriverClient) WriteTimeSeries(request *monitoringpb.CreateTimeSeriesRequest) error

Jump to

Keyboard shortcuts

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