Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KumaResourceForMessage ¶
func KumaResourceForMessage(desc protoreflect.MessageDescriptor) *mesh.KumaResourceOptions
KumaResourceForMessage fetches the Kuma resource option out of a message.
func SelectorsForMessage ¶
func SelectorsForMessage(m protoreflect.MessageDescriptor) []string
SelectorsForMessage finds all the top-level fields in the message are repeated selectors. We want to generate convenience accessors for these.
Types ¶
type ResourceInfo ¶
type ResourceInfo struct { ResourceName string ResourceType string ProtoType string Selectors []string SkipRegistration bool SkipKubernetesWrappers bool ScopeNamespace bool Global bool KumactlSingular string KumactlPlural string WsReadOnly bool WsAdminOnly bool WsPath string KdsDirection string AllowToInspect bool StorageVersion bool IsPolicy bool SingularDisplayName string PluralDisplayName string IsExperimental bool }
func ToResourceInfo ¶
func ToResourceInfo(desc protoreflect.MessageDescriptor) ResourceInfo
Click to show internal directories.
Click to hide internal directories.