Documentation
¶
Index ¶
- func Client(ctx context.Context) *k8s.Client
- func Logger(ctx context.Context) *slog.Logger
- func RootLogger(ctx context.Context) *slog.Logger
- func Terminal(err error) error
- func Terminalf(format string, args ...any) error
- type Entry
- type Event
- type Funcs
- type HandleFunc
- type Instance
- type Params
- type Queue
- type ResourceCache
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
Name string
Namespace string
schema.GroupKind
// contains filtered or unexported fields
}
func (Event) WithoutMeta ¶
type Funcs ¶
type Funcs struct {
Handler HandleFunc
Teardown func()
}
type Instance ¶
type Instance struct {
Params
// contains filtered or unexported fields
}
func NewController ¶
func (*Instance) IsListeningForGK ¶
func (*Instance) ShutdownGK ¶
type Queue ¶
type Queue[T fmt.Stringer] struct { C chan T Stop func() // contains filtered or unexported fields }
type ResourceCache ¶ added in v0.20.16
type ResourceCache[T any] struct { // contains filtered or unexported fields }
func Cache ¶ added in v0.20.16
func Cache[T any, obj internalk8s.MetaObject[T]](ctx context.Context, gk schema.GroupKind, ns string) *ResourceCache[T]
func CacheFromEvent ¶ added in v0.20.16
func CacheFromEvent[T any, obj internalk8s.MetaObject[T]](ctx context.Context, evt Event) *ResourceCache[T]
func (ResourceCache[T]) Get ¶ added in v0.20.16
func (r ResourceCache[T]) Get(name string) (*T, error)
Click to show internal directories.
Click to hide internal directories.