Documentation
¶
Index ¶
- func ApplicationIDFrom(ctx context.Context) (string, bool)
- func ApplicationIDValue(ctx context.Context) string
- func GetMessageAPIVersion(msg *beehiveModel.Message) string
- func GetMessageResourceType(msg *beehiveModel.Message) string
- func SetMetaType(obj runtime.Object) error
- func UnsafeKindToResource(k string) string
- func UnsafeResourceToKind(r string) string
- func UnstructuredAttr(obj runtime.Object) (labels.Set, fields.Set, error)
- func WithApplicationID(parent context.Context, appID string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationIDFrom ¶ added in v1.13.0
ApplicationIDFrom returns the value of the ApplicationID key on the ctx
func ApplicationIDValue ¶ added in v1.13.0
ApplicationIDValue returns the value of the applicationID key on the ctx, or the empty string if none
func GetMessageAPIVersion ¶ added in v1.10.0
func GetMessageAPIVersion(msg *beehiveModel.Message) string
GetMessageUID returns the UID of the object in message
func GetMessageResourceType ¶
func GetMessageResourceType(msg *beehiveModel.Message) string
GetMessageUID returns the UID of the object in message
func SetMetaType ¶
MetaType is generally consisted of apiversion, kind like: { apiVersion: apps/v1 kind: Deployments } TODO: support crd
func UnsafeKindToResource ¶
func UnsafeResourceToKind ¶
Sometimes, we need guess kind according to resource: 1. In most cases, is like pods to Pod, 2. In some unusual cases, requires special treatment like endpoints to Endpoints
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.