Documentation
¶
Index ¶
- func ControllerToSelectableFields(controller *api.FalcoEvent) fields.Set
- func ConvertToHumanReadableDateType(timestamp metav1.Time) string
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchController(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
- func NewStrategy(typer runtime.ObjectTyper) strategy
- func NewTableConvertor(defaultQualifiedResource schema.GroupResource) rest.TableConvertor
- type ControllerStorage
- type REST
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 ¶
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 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 NewStorage ¶
func (*REST) Categories ¶
Categories implements the CategoriesProvider interface. Returns a list of categories a resource is part of.
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.