mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-23 10:32:03 +00:00
add trivial FindStructFieldNames to TypeProvider.
This commit is contained in:
parent
ac5391fa21
commit
73d67d8613
@ -60,6 +60,12 @@ func (p *TypeProvider) FindStructType(structType string) (*types.Type, bool) {
|
|||||||
return p.underlyingTypeProvider.FindStructType(structType)
|
return p.underlyingTypeProvider.FindStructType(structType)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FindStructFieldNames returns the field names associated with the type, if the type
|
||||||
|
// is found.
|
||||||
|
func (p *TypeProvider) FindStructFieldNames(structType string) ([]string, bool) {
|
||||||
|
return nil, true
|
||||||
|
}
|
||||||
|
|
||||||
// FindStructFieldType returns the field type for a checked type value.
|
// FindStructFieldType returns the field type for a checked type value.
|
||||||
// Returns false if the field could not be found.
|
// Returns false if the field could not be found.
|
||||||
func (p *TypeProvider) FindStructFieldType(structType, fieldName string) (*types.FieldType, bool) {
|
func (p *TypeProvider) FindStructFieldType(structType, fieldName string) (*types.FieldType, bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user