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

type GnosticCommonValidations

func (k *CommonValidations) FromGnostic(g GnosticCommonValidations) error {}

type GnosticSimpleSchema

func (k *SimpleSchema) FromGnostic(g GnosticSimpleSchema) error {}

func (k *Items) FromGnostic(g *openapi_v2.PrimitivesItems) error {}

func (k *VendorExtensible) FromGnostic(g []*openapi_v2.NamedAny) error {}

func (k *Refable) FromGnostic(g string) error {}

func (k *Ref) FromGnostic(g string) error {}

// Converts a gnostic v2 Document to a kube-openapi Swagger Document
//
// Caveats:
//
// - gnostic v2 documents treats zero as unspecified for numerical fields of
// CommonValidations fields such as Maximum, Minimum, MaximumItems, etc.
// There will always be data loss if one of the values of these fields is set to zero.
//
// Returns:
//
// - `ok`: `false` if a value was present in the gnostic document which cannot be
// roundtripped into kube-openapi types. In these instances, `ok` is set to
// `false` and the value is skipped.
//
// - `err`: an unexpected error occurred in the conversion from the gnostic type
// to kube-openapi type.
func (k *Swagger) FromGnostic(g *openapi_v2.Document) (ok bool, err error) {}

func (k *SwaggerProps) FromGnostic(g *openapi_v2.Document) (ok bool, err error) {}

func (k *Info) FromGnostic(g *openapi_v2.Info) (ok bool, err error) {}

func (k *InfoProps) FromGnostic(g *openapi_v2.Info) (ok bool, err error) {}

func (k *License) FromGnostic(g *openapi_v2.License) (ok bool, err error) {}

func (k *ContactInfo) FromGnostic(g *openapi_v2.Contact) (ok bool, err error) {}

func (k *Paths) FromGnostic(g *openapi_v2.Paths) (ok bool, err error) {}

func (k *PathItem) FromGnostic(g *openapi_v2.PathItem) (ok bool, err error) {}

func (k *PathItemProps) FromGnostic(g *openapi_v2.PathItem) (ok bool, err error) {}

func (k *Operation) FromGnostic(g *openapi_v2.Operation) (ok bool, err error) {}

func (k *OperationProps) FromGnostic(g *openapi_v2.Operation) (ok bool, err error) {}

func (k *Responses) FromGnostic(g *openapi_v2.Responses) (ok bool, err error) {}

func (k *ResponsesProps) FromGnostic(g *openapi_v2.Responses) (ok bool, err error) {}

func (k *Response) FromGnostic(g *openapi_v2.Response) (ok bool, err error) {}

func (k *Response) FromGnosticResponseValue(g *openapi_v2.ResponseValue) (ok bool, err error) {}

func (k *ResponseProps) FromGnostic(g *openapi_v2.Response) (ok bool, err error) {}

func (k *Header) FromGnostic(g *openapi_v2.Header) (err error) {}

func (k *HeaderProps) FromGnostic(g *openapi_v2.Header) error {}

func (k *Parameter) FromGnostic(g *openapi_v2.Parameter) (ok bool, err error) {}

type GnosticCommonParamProps

type GnosticCommonParamPropsBodyParameter

type GnosticCommonParamPropsFormData

func (k *ParamProps) FromGnostic(g GnosticCommonParamProps) (ok bool, err error) {}

// PB types use a different structure than we do for "refable". For PB, there is
// a wrappign oneof type that could be a ref or the type
func (k *Parameter) FromGnosticParametersItem(g *openapi_v2.ParametersItem) (ok bool, err error) {}

func (k *Schema) FromGnostic(g *openapi_v2.Schema) (ok bool, err error) {}

func (k *Schema) FromGnosticSchemaItem(g *openapi_v2.SchemaItem) (ok bool, err error) {}

func (k SecurityDefinitions) FromGnostic(g *openapi_v2.SecurityDefinitions) error {}

type GnosticCommonSecurityDefinition

func (k *SecuritySchemeProps) FromGnostic(g GnosticCommonSecurityDefinition) error {}

func (k *SecurityScheme) FromGnostic(g *openapi_v2.SecurityDefinitionsItem) error {}

func (k *Tag) FromGnostic(g *openapi_v2.Tag) (ok bool, err error) {}

func (k *TagProps) FromGnostic(g *openapi_v2.Tag) (ok bool, err error) {}

func (k *ExternalDocumentation) FromGnostic(g *openapi_v2.ExternalDocs) (ok bool, err error) {}