input

package
v0.7.14 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object map[string]interface{}

Object is the JSON compatible map[string]interface{} mostly used through unstructured.Unstructured.

func (Object) Unstructured

func (u Object) Unstructured() *unstructured.Unstructured

type Objects

type Objects []Object

func (Objects) Len

func (u Objects) Len() int

func (Objects) Less

func (u Objects) Less(i, j int) bool

func (Objects) Swap

func (u Objects) Swap(i, j int)

type ResourceRepo

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

func NewResourceRepo

func NewResourceRepo(factory util.Factory) (*ResourceRepo, error)

func (*ResourceRepo) CLIQueryResults

func (r *ResourceRepo) CLIQueryResults(args []string) *resource.Result

func (*ResourceRepo) DynamicObject

func (r *ResourceRepo) DynamicObject(gvr schema.GroupVersionResource, namespace string, name string) (Object, error)

func (*ResourceRepo) DynamicObjects

func (r *ResourceRepo) DynamicObjects(gvr schema.GroupVersionResource, namespace string) (Objects, error)

func (*ResourceRepo) Endpoints

func (r *ResourceRepo) Endpoints(namespace string) (*corev1.EndpointsList, error)

func (*ResourceRepo) FirstObject

func (r *ResourceRepo) FirstObject(namespace string, args []string, labelSelector string) (Object, error)

func (*ResourceRepo) GVRFor

func (r *ResourceRepo) GVRFor(resourceOrKindArg string) (schema.GroupVersionResource, error)

func (*ResourceRepo) Ingresses

func (r *ResourceRepo) Ingresses(namespace string) (*netv1.IngressList, error)

func (*ResourceRepo) KubeGetNodeStatsSummary

func (r *ResourceRepo) KubeGetNodeStatsSummary(nodeName string) (Object, error)

KubeGetNodeStatsSummary returns this structure > kubectl get --raw /api/v1/nodes/{nodeName}/proxy/stats/summary The endpoint that this function uses will be disabled soon: https://github.com/kubernetes/kubernetes/issues/68522

func (*ResourceRepo) NonTerminatedPodsOnTheNode

func (r *ResourceRepo) NonTerminatedPodsOnTheNode(nodeName string) (Objects, error)

func (*ResourceRepo) ObjectEvents

func (r *ResourceRepo) ObjectEvents(u *unstructured.Unstructured) (*corev1.EventList, error)

func (*ResourceRepo) Objects

func (r *ResourceRepo) Objects(namespace string, args []string, labelSelector string) (Objects, error)

func (*ResourceRepo) Owners

func (r *ResourceRepo) Owners(obj Object) (out Objects, err error)

func (*ResourceRepo) Service

func (r *ResourceRepo) Service(namespace, name string) (*corev1.Service, error)

func (*ResourceRepo) Services

func (r *ResourceRepo) Services(namespace string) (*corev1.ServiceList, error)

Jump to

Keyboard shortcuts

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