recommendation

package
v0.3.49 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Container is container measurement
	Container  influxdb.Measurement = "container"
	Controller influxdb.Measurement = "controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerRepository

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

ContainerRepository is used to operate node measurement of recommendation database

func NewContainerRepository

func NewContainerRepository(influxDBCfg *influxdb.Config) *ContainerRepository

NewContainerRepository creates the ContainerRepository instance

func (*ContainerRepository) CreateContainerRecommendations

func (c *ContainerRepository) CreateContainerRecommendations(in *datahub_v1alpha1.CreatePodRecommendationsRequest) error

CreateContainerRecommendations add containers information container measurement

func (*ContainerRepository) IsTag

func (containerRepository *ContainerRepository) IsTag(column string) bool

IsTag checks the column is tag or not

func (*ContainerRepository) ListAvailablePodRecommendations added in v0.3.8

func (*ContainerRepository) ListContainerRecommendations

ListContainerRecommendations list container recommendations

type ControllerRepository added in v0.3.8

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

func NewControllerRepository added in v0.3.8

func NewControllerRepository(influxDBCfg *influxdb.Config) *ControllerRepository

func (*ControllerRepository) CreateControllerRecommendations added in v0.3.8

func (c *ControllerRepository) CreateControllerRecommendations(controllerRecommendations []*datahub_v1alpha1.ControllerRecommendation) error

func (*ControllerRepository) ListControllerRecommendations added in v0.3.8

Jump to

Keyboard shortcuts

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