Documentation ¶
Index ¶
- type Container
- type Discovery
- func (d *Discovery) DiscoveryServerAddr(pods *corev1.PodList, hostIP string) (string, error)
- func (d *Discovery) GetContainerID(pod *corev1.Pod, containerName string) (string, error)
- func (d *Discovery) GetPod(ctx context.Context, namespace, podName string) (*corev1.Pod, error)
- func (d *Discovery) GetPodList(ctx context.Context, necoperfNS string) (*corev1.PodList, error)
- type PerfExecuter
- func (p *PerfExecuter) ExecRecord(ctx context.Context, workDir string, pid int, timeout time.Duration) (string, error)
- func (p *PerfExecuter) ExecScript(ctx context.Context, path, workDir string) (string, error)
- func (p *PerfExecuter) GetEvent(ctx context.Context, path string) (*bytes.Buffer, error)
- func (p *PerfExecuter) HasPerfEvent(ctx context.Context, buf *bytes.Buffer) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer(logger *slog.Logger, criClient criapi.RuntimeService) *Container
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
func NewDiscovery ¶
func (*Discovery) DiscoveryServerAddr ¶
func (*Discovery) GetContainerID ¶
type PerfExecuter ¶
type PerfExecuter struct {
// contains filtered or unexported fields
}
func NewPerfExecuter ¶
func NewPerfExecuter(logger *slog.Logger) (*PerfExecuter, error)
func (*PerfExecuter) ExecRecord ¶
func (*PerfExecuter) ExecScript ¶
func (*PerfExecuter) HasPerfEvent ¶
Check if events are contained in the perf.data file.
Click to show internal directories.
Click to hide internal directories.