Documentation ¶
Overview ¶
Package tests holds tests related files
Package tests holds tests related files
Index ¶
- func NewFakeMonoResolver() tags.Resolver
- func NewFakeResolverDifferentImageNames() tags.Resolver
- type FakeManualResolver
- func (fmr *FakeManualResolver) GetContainerSelector(containerID string) *cgroupModel.WorkloadSelector
- func (fmr *FakeManualResolver) GetValue(id string, tag string) string
- func (fmr *FakeManualResolver) Resolve(containerID string) []string
- func (fmr *FakeManualResolver) ResolveWithErr(id string) ([]string, error)
- func (fmr *FakeManualResolver) SpecifyNextSelector(selector *cgroupModel.WorkloadSelector)
- func (fmr *FakeManualResolver) Start(_ context.Context) error
- func (fmr *FakeManualResolver) Stop() error
- type FakeMonoResolver
- func (fmr *FakeMonoResolver) GetValue(id string, tag string) string
- func (fmr *FakeMonoResolver) Resolve(containerID string) []string
- func (fmr *FakeMonoResolver) ResolveWithErr(id string) ([]string, error)
- func (fmr *FakeMonoResolver) Start(_ context.Context) error
- func (fmr *FakeMonoResolver) Stop() error
- type FakeResolver
- type TraceEvent
- type TracePipe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeMonoResolver ¶
NewFakeMonoResolver returns a new tags resolver
func NewFakeResolverDifferentImageNames ¶
NewFakeResolverDifferentImageNames returns a new tags resolver
Types ¶
type FakeManualResolver ¶
FakeManualResolver represents a fake manual resolver
func NewFakeManualResolver ¶
func NewFakeManualResolver() *FakeManualResolver
NewFakeManualResolver returns a new tags resolver
func (*FakeManualResolver) GetContainerSelector ¶
func (fmr *FakeManualResolver) GetContainerSelector(containerID string) *cgroupModel.WorkloadSelector
GetContainerSelector returns the container selector
func (*FakeManualResolver) GetValue ¶
func (fmr *FakeManualResolver) GetValue(id string, tag string) string
GetValue return the tag value for the given id and tag name
func (*FakeManualResolver) Resolve ¶
func (fmr *FakeManualResolver) Resolve(containerID string) []string
Resolve returns the tags for the given id
func (*FakeManualResolver) ResolveWithErr ¶
func (fmr *FakeManualResolver) ResolveWithErr(id string) ([]string, error)
ResolveWithErr returns the tags for the given id
func (*FakeManualResolver) SpecifyNextSelector ¶
func (fmr *FakeManualResolver) SpecifyNextSelector(selector *cgroupModel.WorkloadSelector)
SpecifyNextSelector specifies the next image name and tag to be resolved
type FakeMonoResolver ¶
type FakeMonoResolver struct { }
FakeMonoResolver represents a fake mono resolver
func (*FakeMonoResolver) GetValue ¶
func (fmr *FakeMonoResolver) GetValue(id string, tag string) string
GetValue return the tag value for the given id and tag name
func (*FakeMonoResolver) Resolve ¶
func (fmr *FakeMonoResolver) Resolve(containerID string) []string
Resolve returns the tags for the given id
func (*FakeMonoResolver) ResolveWithErr ¶
func (fmr *FakeMonoResolver) ResolveWithErr(id string) ([]string, error)
ResolveWithErr returns the tags for the given id
type FakeResolver ¶
FakeResolver represents a fake cache resolver
func (*FakeResolver) GetValue ¶
func (fr *FakeResolver) GetValue(id string, tag string) string
GetValue return the tag value for the given id and tag name
func (*FakeResolver) Resolve ¶
func (fr *FakeResolver) Resolve(containerID string) []string
Resolve returns the tags for the given id
func (*FakeResolver) ResolveWithErr ¶
func (fr *FakeResolver) ResolveWithErr(id string) ([]string, error)
ResolveWithErr returns the tags for the given id
type TraceEvent ¶
type TraceEvent struct { Raw string Task string PID string CPU string Flags string Timestamp string Function string Message string }
TraceEvent contains the raw event as well as the contents of every field as string, as defined under "Output format" in https://www.kernel.org/doc/Documentation/trace/ftrace.txt
type TracePipe ¶
type TracePipe struct {
// contains filtered or unexported fields
}
TracePipe to read from /sys/kernel/[debug/]tracing/trace_pipe Note that data can be read only once, i.e. if you have more than one tracer / channel, only one will receive an event: "Once data is read from this file, it is consumed, and will not be read again with a sequential read." https://www.kernel.org/doc/Documentation/trace/ftrace.txt
func NewTracePipe ¶
NewTracePipe instantiates a new trace pipe
func (*TracePipe) Channel ¶
func (t *TracePipe) Channel() (<-chan *TraceEvent, <-chan error)
Channel returns a channel of events and an other for errors
func (*TracePipe) ReadLine ¶
func (t *TracePipe) ReadLine() (*TraceEvent, error)
ReadLine reads a line
Directories ¶
Path | Synopsis |
---|---|
Package imdsutils holds utils related to the IMDS tests
|
Package imdsutils holds utils related to the IMDS tests |
Package statsdclient holds statsdclient related files
|
Package statsdclient holds statsdclient related files |