...

Package randomsampling

import "framework/plugins/randomsampling"
Overview
Index

Overview ▾

Constants

const (
    PluginName                 = "RandomSamplingStrategy"
    RandomSamplingStrategyName = "random"
)

func NewRandomSamplingStrategy

func NewRandomSamplingStrategy(pluginConfig config.PluginConfig, clusterAgentServices pipeline.ClusterAgentServices) (pipeline.Plugin, error)

type RandomSamplingStrategy

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

func (*RandomSamplingStrategy) Name

func (rs *RandomSamplingStrategy) Name() string

func (*RandomSamplingStrategy) SampleNodes

func (rs *RandomSamplingStrategy) SampleNodes(ctx pipeline.SchedulingContext, podInfo *pipeline.PodInfo, sampleSize int) ([]*pipeline.NodeInfo, pipeline.Status)

func (*RandomSamplingStrategy) StrategyName

func (rs *RandomSamplingStrategy) StrategyName() string