Documentation ¶
Index ¶
Constants ¶
View Source
const (
WarnEvt = "Warning"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor interface { Lister Getter // Init the resource with a factory object. Init(types.Factory, types.GVR) // GVR returns a gvr a string. GVR() string }
Accessor represents an accessible k8s resource.
type EventInfos ¶ added in v0.20.0
type EventInfos []EventInfo
func (EventInfos) Issues ¶ added in v0.20.0
func (ee EventInfos) Issues() []string
type Generic ¶
type Generic struct {
NonResource
}
Generic represents a generic resource.
type Getter ¶
type Getter interface { // Get return a given resource. Get(ctx context.Context, path string) (runtime.Object, error) }
Getter represents a resource getter.
type Lister ¶
type Lister interface { // List returns a resource collection. List(ctx context.Context) ([]runtime.Object, error) }
Lister represents a resource lister.
type NonResource ¶
NonResource represents a non k8s resource.
type Resource ¶
type Resource struct {
Generic
}
Resource represents an informer based resource.
type ResourceMetas ¶
type ResourceMetas map[types.GVR]metav1.APIResource
ResourceMetas represents a collection of resource metadata.
Click to show internal directories.
Click to hide internal directories.