request

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControllerToSelectableFields

func ControllerToSelectableFields(controller *api.FalcoEvent) fields.Set

ControllerToSelectableFields returns a field set that represents the object.

func ConvertToHumanReadableDateType

func ConvertToHumanReadableDateType(timestamp metav1.Time) string

ConvertToHumanReadableDateType returns the elapsed time since timestamp in human-readable approximation. ref: https://github.com/kubernetes/apimachinery/blob/v0.21.1/pkg/api/meta/table/table.go#L63-L70 But works for timestamp before or after now.

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

func MatchController

func MatchController(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate

MatchController is the filter used by the generic etcd backend to route watch events from etcd to clients of the apiserver only interested in specific labels/fields.

func NewStrategy

func NewStrategy(typer runtime.ObjectTyper) strategy

NewStrategy creates and returns a strategy instance

func NewTableConvertor

func NewTableConvertor(defaultQualifiedResource schema.GroupResource) rest.TableConvertor

NewTableConvertor creates a default convertor; the provided resource is used for error messages if no resource info can be determined from the context passed to ConvertToTable.

Types

type ControllerStorage

type ControllerStorage struct {
	Controller *REST
}

ControllerStorage includes dummy storage for FalcoEvents and for Status subresource.

type REST

type REST struct {
	*genericregistry.Store
}

func NewREST

func NewREST(scheme *runtime.Scheme, optsGetter generic.RESTOptionsGetter) (*REST, error)

NewREST returns a RESTStorage object that will work against replication controllers.

func NewStorage

func NewStorage(scheme *runtime.Scheme, optsGetter generic.RESTOptionsGetter) (*REST, error)

func (*REST) Categories

func (r *REST) Categories() []string

Categories implements the CategoriesProvider interface. Returns a list of categories a resource is part of.

func (*REST) ShortNames

func (r *REST) ShortNames() []string

ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.

Jump to

Keyboard shortcuts

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