source

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolFeatureValue added in v0.4.0

type BoolFeatureValue bool

Boolean feature value

func (BoolFeatureValue) String added in v0.4.0

func (b BoolFeatureValue) String() string

type FeatureSource

type FeatureSource interface {
	// Name returns a friendly name for this source of node feature.
	Name() string

	// Discover returns discovered features for this node.
	Discover() (Features, error)
}

FeatureSource represents a source of a discovered node feature.

type FeatureValue added in v0.4.0

type FeatureValue interface {
}

Value of a feature

type Features added in v0.4.0

type Features map[string]FeatureValue

type MockFeatureSource added in v0.4.0

type MockFeatureSource struct {
	mock.Mock
}

MockFeatureSource is an autogenerated mock type for the FeatureSource type

func (*MockFeatureSource) Discover added in v0.4.0

func (_m *MockFeatureSource) Discover() (Features, error)

Discover provides a mock function with given fields:

func (*MockFeatureSource) Name added in v0.4.0

func (_m *MockFeatureSource) Name() string

Name provides a mock function with given fields:

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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