Documentation ¶
Index ¶
- type BuildkiteAPI
- type BuildkiteAPIWrapper
- func (bk *BuildkiteAPIWrapper) ListAgents(org string, page, perPage int) ([]buildkite.Agent, int, error)
- func (bk *BuildkiteAPIWrapper) ListBuildsByPipeline(org, pipeline string, page, perPage int) ([]buildkite.Build, int, error)
- func (bk *BuildkiteAPIWrapper) ListBuildyByOrg(org string, page, perPage int) ([]buildkite.Build, int, error)
- type BuildkiteClient
- type CachedBuildkiteClient
- type Clock
- type CloudStorageClient
- type ComputeEngineClient
- type ComputeInstance
- type DefaultClock
- type StackdriverClient
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 (*BuildkiteAPIWrapper) ListBuildsByPipeline ¶
func (*BuildkiteAPIWrapper) ListBuildyByOrg ¶
type BuildkiteClient ¶
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 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 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
Click to show internal directories.
Click to hide internal directories.