...

Package selector

import "github.com/chaos-mesh/chaos-mesh/pkg/selector"
Overview
Index
Subdirectories

Overview ▾

Variables

var Module = fx.Provide(
    New,

    pod.New,
    container.New,
    aws.New,
    azure.New,
    gcp.New,
    physicalmachine.New,
    nodevolumepath.New,
)

type Selector

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

func New

func New(p SelectorParams) *Selector

func (*Selector) Select

func (s *Selector) Select(ctx context.Context, spec interface{}) ([]Target, error)

type SelectorParams

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

type Target interface {
    Id() string
}

Subdirectories