...

Package container

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

Overview ▾

type Container

type Container struct {
    v1.Pod
    ContainerName string
}

func (*Container) Id

func (c *Container) Id() string

type Params

type Params struct {
    fx.In

    Client client.Client
    Reader client.Reader `name:"no-cache"`
}

type SelectImpl

type SelectImpl struct {
    generic.Option
    // contains filtered or unexported fields
}

func New

func New(params Params) *SelectImpl

func (*SelectImpl) Select

func (impl *SelectImpl) Select(ctx context.Context, cs *v1alpha1.ContainerSelector) ([]*Container, error)