borwein

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BorweinModelResultFetcherName = "borwein_model_result_fetcher"
)
View Source
const (
	NodeFeatureNodeName = "node_feature_name"
)

Variables

This section is empty.

Functions

func NewBorweinModelResultFetcher

func NewBorweinModelResultFetcher(fetcherName string, conf *config.Configuration, extraConf interface{},
	emitterPool metricspool.MetricsEmitterPool, metaServer *metaserver.MetaServer,
	metaCache metacache.MetaCache) (modelresultfetcher.ModelResultFetcher, error)

func SetGetContainerFeatureValueFunc

func SetGetContainerFeatureValueFunc(f GetContainerFeatureValueFunc)

RegisterGetContainerFeatureValueFunc allows to register pluggable function providing container features

func SetGetNodeFeatureValueFunc

func SetGetNodeFeatureValueFunc(f GetNodeFeatureValueFunc)

RegisterGetNodeFeatureValueFunc allows to register pluggable function providing node features

Types

type BorweinModelResultFetcher

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

func (*BorweinModelResultFetcher) FetchModelResult

func (bmrf *BorweinModelResultFetcher) FetchModelResult(ctx context.Context, metaReader metacache.MetaReader,
	metaWriter metacache.MetaWriter, metaServer *metaserver.MetaServer) error

type GetContainerFeatureValueFunc

type GetContainerFeatureValueFunc func(timestamp int64, podUID string, containerName string, featureName string,
	metaServer *metaserver.MetaServer, metaReader metacache.MetaReader) (string, error)

type GetNodeFeatureValueFunc

type GetNodeFeatureValueFunc func(timestamp int64, featureName string, metaServer *metaserver.MetaServer, metaReader metacache.MetaReader) (string, error)

Jump to

Keyboard shortcuts

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