genutils

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL