Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
Field is a representation of a struct field.
func (*Field) Description ¶
func (f *Field) Description() interface{}
Description returns the description of the field inferred from the comment string preceding it.
func (*Field) HasInternalType ¶
HasInternalType returns true when the data type of the field is defined in the prometheus-operator project.
func (*Field) IsRequired ¶
func (f *Field) IsRequired() interface{}
IsRequired returns true if the field is mandatory.
func (*Field) Name ¶
Name returns the name of the field as it should appear in JSON format "-" indicates that this field is not part of the JSON representation.
type StructType ¶
StructType is a struct data type.
func (*StructType) Description ¶
func (s *StructType) Description() string
Description returns the description of the struct inferred from the comment preceding it.
func (StructType) IsOnlyEmbedded ¶
func (s StructType) IsOnlyEmbedded() bool
IsOnlyEmbedded returns true if the struct is only used as an embedded field in other structs.
type TypeSet ¶
type TypeSet map[string]*StructType
TypeSet is a map from type name to *StructType.
func (TypeSet) SortedKeys ¶
SortedKeys returns a lexicographically sirted slice with the keys of the TypeSet.