mirror of
https://github.com/rancher/plugins.git
synced 2025-09-03 10:33:51 +00:00
pkg/types: add tests for args
This commit is contained in:
@@ -47,9 +47,9 @@ type CommonArgs struct {
|
||||
IgnoreUnknown UnmarshallableBool `json:"ignoreunknown,omitempty"`
|
||||
}
|
||||
|
||||
// getKeyField is a helper function to receive Values
|
||||
// GetKeyField is a helper function to receive Values
|
||||
// Values that represent a pointer to a struct
|
||||
func getKeyField(keyString string, v reflect.Value) reflect.Value {
|
||||
func GetKeyField(keyString string, v reflect.Value) reflect.Value {
|
||||
return v.Elem().FieldByName(keyString)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user