recommendation

package
v0.3.8-5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 13 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 (containerRepository *ContainerRepository) CreateContainerRecommendations(podRecommendations []*datahub_v1alpha1.PodRecommendation) 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

func (containerRepository *ContainerRepository) ListContainerRecommendations(podNamespacedName *datahub_v1alpha1.NamespacedName,
	queryCondition *datahub_v1alpha1.QueryCondition,
	kind datahub_v1alpha1.Kind) ([]*datahub_v1alpha1.PodRecommendation, error)

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

func (c *ControllerRepository) ListControllerRecommendations(controllerNamespacedName *datahub_v1alpha1.NamespacedName,
	queryCondition *datahub_v1alpha1.QueryCondition) ([]*datahub_v1alpha1.ControllerRecommendation, error)

ListContainerRecommendations list container recommendations

func (*ControllerRepository) NewRecommendationFromMap added in v0.3.8

func (c *ControllerRepository) NewRecommendationFromMap(data map[string]string) *datahub_v1alpha1.ControllerRecommendation

NewEntityFromMap Build entity from map

Jump to

Keyboard shortcuts

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