Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Expr = Expr Src Import
- type DuplicateHandler = (Text, [ModelName]) -> Maybe ModelName
- type Prefix = Text
- type ModelHierarchy = [ModelName]
- data Swagger = Swagger {}
- data Definition = Definition {}
- newtype Ref = Ref {}
- newtype ModelName = ModelName {
- unModelName :: Text
- newtype FieldName = FieldName {
- unFieldName :: Text
- data BaseData = BaseData {
- kind :: Text
- apiVersion :: Text
Documentation
type ModelHierarchy = [ModelName] Source #
Type for the Swagger specification.
There is such a type defined in the swagger2
package, but Kubernetes' OpenAPI
file doesn't conform to that, so here we implement a small version of that
tailored to our needs.
Instances
Show Swagger Source # | |
Generic Swagger Source # | |
FromJSON Swagger Source # | |
type Rep Swagger Source # | |
Defined in Dhall.Kubernetes.Types type Rep Swagger = D1 ('MetaData "Swagger" "Dhall.Kubernetes.Types" "dhall-openapi-1.0.0-KLOyMybef0aKROwSDb8K2s" 'False) (C1 ('MetaCons "Swagger" 'PrefixI 'True) (S1 ('MetaSel ('Just "definitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map ModelName Definition)))) |
data Definition Source #
Definition | |
|
Instances
Instances
Eq FieldName Source # | |
Ord FieldName Source # | |
Defined in Dhall.Kubernetes.Types | |
Show FieldName Source # | |
Generic FieldName Source # | |
FromJSON FieldName Source # | |
FromJSONKey FieldName Source # | |
Pretty FieldName Source # | |
Defined in Dhall.Kubernetes.Types | |
type Rep FieldName Source # | |
Defined in Dhall.Kubernetes.Types |
This contains the static data that a Model might have
This applies only to kubernetes resources where `$sel:kind:BaseData`
and
`$sel:apiVersion:BaseData`
are statically determined by the resource. See the
`Kubernetes OpenAPI Spec Readme`:
https:/github.comkuberneteskubernetesblobmasterapiopenapi-specREADME.md#x-kubernetes-group-version-kind
For example for a v1 Deployment we have
{ kind = Deployment , apiVersion = "apps/v1" }
BaseData | |
|
Instances
Eq BaseData Source # | |
Show BaseData Source # | |
Generic BaseData Source # | |
FromJSON BaseData Source # | |
type Rep BaseData Source # | |
Defined in Dhall.Kubernetes.Types type Rep BaseData = D1 ('MetaData "BaseData" "Dhall.Kubernetes.Types" "dhall-openapi-1.0.0-KLOyMybef0aKROwSDb8K2s" 'False) (C1 ('MetaCons "BaseData" 'PrefixI 'True) (S1 ('MetaSel ('Just "kind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "apiVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |