kubernetes/vendor/k8s.io/kube-openapi/pkg/validation/spec/info.go

type Extensions

// Add adds a value to these extensions
func (e Extensions) Add(key string, value interface{}

// GetString gets a string value from the extensions
func (e Extensions) GetString(key string) (string, bool) {}

// GetBool gets a string value from the extensions
func (e Extensions) GetBool(key string) (bool, bool) {}

// GetStringSlice gets a string value from the extensions
func (e Extensions) GetStringSlice(key string) ([]string, bool) {}

// GetObject gets the object value from the extensions.
// out must be a json serializable type; the json go struct
// tags of out are used to populate it.
func (e Extensions) GetObject(key string, out interface{}

func (e Extensions) sanitizeWithExtra() (extra map[string]any) {}

type VendorExtensible

// AddExtension adds an extension to this extensible object
func (v *VendorExtensible) AddExtension(key string, value interface{}

// MarshalJSON marshals the extensions to json
func (v VendorExtensible) MarshalJSON() ([]byte, error) {}

// UnmarshalJSON for this extensible object
func (v *VendorExtensible) UnmarshalJSON(data []byte) error {}

type InfoProps

type Info

// MarshalJSON marshal this to JSON
func (i Info) MarshalJSON() ([]byte, error) {}

func (i Info) MarshalNextJSON(opts jsonv2.MarshalOptions, enc *jsonv2.Encoder) error {}

// UnmarshalJSON marshal this from JSON
func (i *Info) UnmarshalJSON(data []byte) error {}

func (i *Info) UnmarshalNextJSON(opts jsonv2.UnmarshalOptions, dec *jsonv2.Decoder) error {}