Documentation ¶
Index ¶
- Constants
- func GetMessageAPIVerison(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)
Constants ¶
View Source
const (
EmptyString = ""
)
Variables ¶
This section is empty.
Functions ¶
func GetMessageAPIVerison ¶
func GetMessageAPIVerison(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.