...
Package selector
Variables
var Module = fx.Provide(
New,
pod.New,
container.New,
aws.New,
azure.New,
gcp.New,
physicalmachine.New,
nodevolumepath.New,
)
type Selector struct {
}
func New(p SelectorParams) *Selector
func (*Selector) Select
¶
func (s *Selector) Select(ctx context.Context, spec interface{}) ([]Target, error)
type SelectorParams struct {
fx.In
PodSelector *pod.SelectImpl
ContainerSelector *container.SelectImpl
AWSSelector *aws.SelectImpl
AzureSelector *azure.SelectImpl
GCPSelector *gcp.SelectImpl
PhysicalMachineSelector *physicalmachine.SelectImpl
NodeVolumePath *nodevolumepath.SelectImpl
}
type Target interface {
Id() string
}
Subdirectories