types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 2 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 {
	Time     time.Time
	Status   string
	BuildId  int64
	Number   int64
	WaitTime int64
	Duration int64
	Name     string
	Event    string
	Source   string
	Target   string
	Created  int64
	Started  int64
	Finished int64
	Tags     Tags
}

func (Build) GetFields

func (p Build) GetFields() map[string]interface{}

func (Build) GetMeasurement

func (p Build) GetMeasurement() string

func (Build) GetTags

func (p Build) GetTags() map[string]string

func (Build) GetTime

func (p Build) GetTime() time.Time

type Driver

type Driver interface {
	Close() error
	Batch(measurement string, fieldList []map[string]interface{}) error
	LastBuildId(slug string) int
}

type Point

type Point interface {
	GetTime() time.Time
	GetFields() map[string]interface{}
	GetTags() map[string]string
	GetMeasurement() string
}

type Stage

type Stage struct {
	Time      time.Time
	BuildId   int64
	WaitTime  int64
	Duration  int64
	Created   int64
	Started   int64
	Stopped   int64
	OS        string
	Arch      string
	Status    string
	StatusInt int64
	Name      string
	Tags      Tags
}

func (Stage) GetFields

func (p Stage) GetFields() map[string]interface{}

func (Stage) GetMeasurement

func (p Stage) GetMeasurement() string

func (Stage) GetTags

func (p Stage) GetTags() map[string]string

func (Stage) GetTime

func (p Stage) GetTime() time.Time

type Step

type Step struct {
	Time     time.Time
	BuildId  int64
	Duration int64
	Started  int64
	Stopped  int64
	Number   int
	Name     string
	Status   string
	Tags     Tags
}

func (Step) GetFields

func (p Step) GetFields() map[string]interface{}

func (Step) GetMeasurement

func (p Step) GetMeasurement() string

func (Step) GetTags

func (p Step) GetTags() map[string]string

func (Step) GetTime

func (p Step) GetTime() time.Time

type Tags

type Tags map[string]string

Jump to

Keyboard shortcuts

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