Package netem

import "github.com/chaos-mesh/chaos-mesh/pkg/netem"

Overview ▾

func FromBandwidth

func FromBandwidth(in *v1alpha1.BandwidthSpec) (*chaosdaemonpb.Tbf, error)

FromBandwidth converts BandwidthSpec to *chaosdaemonpb.Tbf Bandwidth action use TBF under the hood. TBF stands for Token Bucket Filter, is a classful queueing discipline available for traffic control with the tc command. http://man7.org/linux/man-pages/man8/tc-tbf.8.html

func FromCorrupt

func FromCorrupt(in *v1alpha1.CorruptSpec) (*chaosdaemonpb.Netem, error)

FromCorrupt convert corrupt to netem

func FromDelay

func FromDelay(in *v1alpha1.DelaySpec) (*chaosdaemonpb.Netem, error)

FromDelay convert delay to netem

func FromDuplicate

func FromDuplicate(in *v1alpha1.DuplicateSpec) (*chaosdaemonpb.Netem, error)

FromDuplicate convert duplicate to netem

func FromLoss

func FromLoss(in *v1alpha1.LossSpec) (*chaosdaemonpb.Netem, error)

FromLoss convert loss to netem

func FromRate

func FromRate(in *v1alpha1.RateSpec) (*chaosdaemonpb.Netem, error)

FromRate convert RateSpec to netem