anothermock

package
v0.16.1-beta Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

README

#PLEASE NOTE: These are not example plugins

The contents of plugin/ are used as part of our testing framework. If you are looking for examples of how to write a plugin for Snap, review the Plugin Authoring documentation.

Curious what plugins are under development? See the plugin-wishlist label in our issue backlog.

Documentation

Index

Constants

View Source
const (
	// Name of plugin
	Name = "anothermock"
	// Version of plugin
	Version = 1
	// Type of plugin
	Type = plugin.CollectorPluginType
)

Variables

This section is empty.

Functions

func Meta

func Meta() *plugin.PluginMeta

Meta returns meta data for testing

Types

type AnotherMock

type AnotherMock struct {
}

Mock collector implementation used for testing

func (*AnotherMock) CollectMetrics

func (f *AnotherMock) CollectMetrics(mts []plugin.MetricType) ([]plugin.MetricType, error)

CollectMetrics collects metrics for testing

func (*AnotherMock) GetConfigPolicy

func (f *AnotherMock) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy returns a ConfigPolicy for testing

func (*AnotherMock) GetMetricTypes

func (f *AnotherMock) GetMetricTypes(cfg plugin.ConfigType) ([]plugin.MetricType, error)

GetMetricTypes returns metric types for testing

Jump to

Keyboard shortcuts

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