k8s

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sLogFetcher

type K8sLogFetcher struct {
	// contains filtered or unexported fields
}

func (*K8sLogFetcher) Search

func (t *K8sLogFetcher) Search(ctx context.Context, request Request) ([]logs.LogResult, error)

type Request

type Request struct {
	logs.LogsRequestBase `json:",inline" yaml:",inline" template:"true"`

	Kind       string `json:"kind" template:"true"`
	ApiVersion string `json:"apiVersion" template:"true"`
	Namespace  string `json:"namespace" template:"true"`
	Name       string `json:"name" template:"true"`

	// Logs will include pods that match any of these selectors.
	//
	// This applies when retrieving logs at a higher resource level,
	// such as fetching logs for a deployment spanning multiple pods.
	Pods types.ResourceSelectors `json:"pods,omitempty"`

	// Containers filters logs from only these containers.
	Containers types.MatchExpressions `json:"containers,omitempty"`
}

Request represents available parameters for Kubernetes log queries.

+kubebuilder:object:generate=true

func (*Request) DeepCopy

func (in *Request) DeepCopy() *Request

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Request.

func (*Request) DeepCopyInto

func (in *Request) DeepCopyInto(out *Request)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL