...

Package utils

import "github.com/chaos-mesh/chaos-mesh/controllers/chaosimpl/utils"
Overview
Index

Overview ▾

Variables

var Module = fx.Provide(
    NewContainerRecordDecoder,
)

func IsFailToGet

func IsFailToGet(e error) bool

func NewFailToFindContainer

func NewFailToFindContainer(namespace string, name string, containerName string, err error) error

type ContainerRecordDecoder

type ContainerRecordDecoder struct {
    client.Client
    *chaosdaemon.ChaosDaemonClientBuilder
}

func NewContainerRecordDecoder

func NewContainerRecordDecoder(c client.Client, builder *chaosdaemon.ChaosDaemonClientBuilder) *ContainerRecordDecoder

func (*ContainerRecordDecoder) DecodeContainerRecord

func (d *ContainerRecordDecoder) DecodeContainerRecord(ctx context.Context, record *v1alpha1.Record) (decoded DecodedContainerRecord, err error)

type DecodedContainerRecord

type DecodedContainerRecord struct {
    PbClient    chaosdaemonclient.ChaosDaemonClientInterface
    ContainerId string

    Pod *v1.Pod
}