Help us shape the future of Go! Take the 2026 Go Developer Survey

k8s

package
v1.0.1413 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 2

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 New added in v1.0.953

func (*K8sLogFetcher) Search added in v1.0.953

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