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) EnableFlagNames ¶
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 ¶
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:
type MockProviderInterface ¶
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:
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) Collect ¶
func (p *Provider) Collect(ch chan<- prometheus.Metric)
func (*Provider) Describe ¶
func (p *Provider) Describe(ch chan<- *prometheus.Desc)
type ProviderInterface ¶
type ProviderInterface interface { prometheus.Collector Init(*cli.Context) error GetData() }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.