Documentation ¶
Overview ¶
Package flagsetscheme provides a runtime.TypeScheme with support for command line option sets for the described object types. Therefore, the object types (VersionTypedObjectType) have to provide a flagsets.ConfigOptionTypeSetHandler. To support CLI help information, they should additionally provide a description and structure information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeScheme ¶
type TypeScheme[T runtime.VersionedTypedObject, R VersionTypedObjectType[T]] interface { runtime.TypeScheme[T, R] CreateConfigTypeSetConfigProvider() flagsets.ConfigTypeOptionSetConfigProvider }
TypeScheme is the appropriately extended scheme interface based on runtime.TypeScheme.
func NewTypeScheme ¶
func NewTypeScheme[T runtime.VersionedTypedObject, R VersionTypedObjectType[T], S TypeScheme[T, R]](name, typeOption, desc, group string, unknown runtime.Unstructured, acceptUnknown bool, base ...S) TypeScheme[T, R]
NewTypeScheme provides an TypeScheme implementation based on the interfaces and the default runtime.TypeScheme implementation.
type VersionTypedObjectType ¶
type VersionTypedObjectType[T runtime.VersionedTypedObject] interface { runtime.VersionedTypedObjectType[T] ConfigOptionTypeSetHandler() flagsets.ConfigOptionTypeSetHandler Description() string Format() string }
VersionTypedObjectType is the appropriately extended type interface based on runtime.VersionTypedObjectType.