collectors

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultServiceAccountFile = "~/.google-service-account.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func (*Map) Add

func (cm *Map) Add(collector col.Interface)

func (*Map) EnableFlagNames

func (cm *Map) EnableFlagNames() map[string]string

func (*Map) Flags

func (cm *Map) Flags() []cli.Flag

func (*Map) Get

func (cm *Map) Get(name string) col.Interface

type MapInterface

type MapInterface interface {
	Add(col.Interface)
	Get(string) col.Interface
	Flags() []cli.Flag
	EnableFlagNames() map[string]string
}
var (
	Collectors MapInterface = &Map{}
)

type MockMapInterface

type MockMapInterface struct {
	mock.Mock
}

MockMapInterface is an autogenerated mock type for the MapInterface type

func (*MockMapInterface) Add

func (_m *MockMapInterface) Add(_a0 collector.Interface)

Add provides a mock function with given fields: _a0

func (*MockMapInterface) EnableFlagNames

func (_m *MockMapInterface) EnableFlagNames() map[string]string

EnableFlagNames provides a mock function with given fields:

func (*MockMapInterface) Flags

func (_m *MockMapInterface) Flags() []cli.Flag

Flags provides a mock function with given fields:

func (*MockMapInterface) Get

Get provides a mock function with given fields: _a0

type MockProviderInterface

type MockProviderInterface struct {
	mock.Mock
}

MockProviderInterface is an autogenerated mock type for the ProviderInterface type

func (*MockProviderInterface) Collect

func (_m *MockProviderInterface) Collect(_a0 chan<- prometheus.Metric)

Collect provides a mock function with given fields: _a0

func (*MockProviderInterface) Describe

func (_m *MockProviderInterface) Describe(_a0 chan<- *prometheus.Desc)

Describe provides a mock function with given fields: _a0

func (*MockProviderInterface) GetData

func (_m *MockProviderInterface) GetData()

GetData provides a mock function with given fields:

func (*MockProviderInterface) Init

func (_m *MockProviderInterface) Init(_a0 *cli.Context) error

Init provides a mock function with given fields: _a0

type Provider

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

func NewProvider

func NewProvider(client *http.Client) *Provider

func (*Provider) Collect

func (p *Provider) Collect(ch chan<- prometheus.Metric)

func (*Provider) Describe

func (p *Provider) Describe(ch chan<- *prometheus.Desc)

func (*Provider) GetData

func (p *Provider) GetData()

func (*Provider) Init

func (p *Provider) Init(context *cli.Context) error

type ProviderInterface

type ProviderInterface interface {
	prometheus.Collector

	Init(*cli.Context) error
	GetData()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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