brigade

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	ID        string
	ProjectID string
	Type      string
	Provider  string
	Version   string
	Status    string
	Duration  time.Duration
}

Build is a representation of a brigade build required by the application.

type Interface

type Interface interface {
	GetProjects() ([]*Project, error)
	GetBuilds() ([]*Build, error)
	GetJobs() ([]*Job, error)
}

Interface is the interface that knows how to get data from brigade so the collectors can get the data.

func New

func New(client storage.Store, logger log.Logger) Interface

New returns a new brigade.Interface implementation.

func NewFake

func NewFake() Interface

NewFake returns a new fake implementation of the Brigade interface.

type Job

type Job struct {
	ID       string
	BuildID  string
	Name     string
	Image    string
	Status   string
	Duration time.Duration
	Creation time.Time
	Start    time.Time
}

Job is a representation of a brigade build job required by the application.

type Project

type Project struct {
	ID         string
	Name       string
	Repository string
	Namespace  string
	Worker     string
}

Project is a representation of a brigade Project required by the application.

Jump to

Keyboard shortcuts

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