Documentation
¶
Index ¶
- Variables
- func ArrayHookFn(td *gotype.TypeDict, hooks []crd.OpenAPI2GoHook, crdType *crd.CRDType) (*gotype.GoType, error)
- func DatetimeHookFn(_ *gotype.TypeDict, _ []crd.OpenAPI2GoHook, crdType *crd.CRDType) (*gotype.GoType, error)
- func DictHookFn(td *gotype.TypeDict, hooks []crd.OpenAPI2GoHook, crdType *crd.CRDType) (*gotype.GoType, error)
- func PrimitiveHookFn(_ *gotype.TypeDict, _ []crd.OpenAPI2GoHook, crdType *crd.CRDType) (*gotype.GoType, error)
- func StructHookFn(td *gotype.TypeDict, hooks []crd.OpenAPI2GoHook, crdType *crd.CRDType) (*gotype.GoType, error)
- func UnstructuredHookFn(_ *gotype.TypeDict, _ []crd.OpenAPI2GoHook, crdType *crd.CRDType) (*gotype.GoType, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Hooks = []crd.OpenAPI2GoHook{ UnstructuredHookFn, DictHookFn, DatetimeHookFn, PrimitiveHookFn, StructHookFn, ArrayHookFn, }
Functions ¶
func ArrayHookFn ¶
func ArrayHookFn(td *gotype.TypeDict, hooks []crd.OpenAPI2GoHook, crdType *crd.CRDType) (*gotype.GoType, error)
ArrayHookFn converts an OpenAPI array schema to a GoType array
func DatetimeHookFn ¶
func DictHookFn ¶
func PrimitiveHookFn ¶
func PrimitiveHookFn(_ *gotype.TypeDict, _ []crd.OpenAPI2GoHook, crdType *crd.CRDType) (*gotype.GoType, error)
PrimitiveHookFn converts an OpenAPI primitive type to a GoType
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.