Documentation ¶
Index ¶
Constants ¶
View Source
const (
// errors
NotFound = "not found"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[T1 any] interface { Get(types.NamespacedName) (T1, error) Upsert(context.Context, types.NamespacedName, T1) Delete(context.Context, types.NamespacedName) List() map[types.NamespacedName]T1 AddWatch(fn ResourceCallbackFn) }
type CallbackFn ¶
type CallbackFn func([]types.NamespacedName, string)
type DaemonWirer ¶
type DaemonWirer interface { Node2NodeWirer Ep2NodeWirer }
type Ep2NodeWirer ¶
type Ep2NodeWirer interface { EndpointGet(ctx context.Context, req *endpointpb.EndpointRequest) (*endpointpb.EndpointResponse, error) EndpointUpSert(ctx context.Context, req *endpointpb.EndpointRequest) (*endpointpb.EmptyResponse, error) EndpointDelete(ctx context.Context, req *endpointpb.EndpointRequest) (*endpointpb.EmptyResponse, error) AddEndpointWatch(fn CallbackFn) DeleteEndpointWatch() }
type InClusterWirer ¶
type InClusterWirer interface { Node2NodeWirer Ep2NodeWirer }
type InterClusterWirer ¶
type InterClusterWirer interface { Node2NodeWirer }
type Node2NodeWirer ¶
type Node2NodeWirer interface { WireGet(ctx context.Context, req *wirepb.WireRequest) (*wirepb.WireResponse, error) WireUpSert(ctx context.Context, req *wirepb.WireRequest) (*wirepb.EmptyResponse, error) WireDelete(ctx context.Context, req *wirepb.WireRequest) (*wirepb.EmptyResponse, error) AddWireWatch(fn CallbackFn) DeleteWireWatch() }
type ResourceCallbackFn ¶
type Wirer ¶
type Wirer interface { Node2NodeWirer Ep2NodeWirer }
Click to show internal directories.
Click to hide internal directories.