Documentation ¶
Index ¶
- func GenerateAPI(dir, packageName, spaceID, cmaKey, environment, exportFile string, ...) (err error)
- type ContentType
- type ContentTypeField
- type ContentTypeFieldItems
- type ContentTypeFieldItemsValidation
- type ContentTypeSys
- type ContentTypeSysAttributes
- type ContentfulSys
- type ExportFile
- type Locale
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentType ¶
type ContentType struct { Sys ContentfulSys `json:"sys,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Fields []ContentTypeField `json:"fields,omitempty"` }
ContentType VO
type ContentTypeField ¶
type ContentTypeField struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Items *ContentTypeFieldItems `json:"items,omitempty"` LinkType string `json:"linkType,omitempty"` Omitted bool `json:"omitted,omitempty"` ReferencedTypes []string }
ContentTypeField VO
type ContentTypeFieldItems ¶
type ContentTypeFieldItems struct { Type string `json:"type,omitempty"` Validations []ContentTypeFieldItemsValidation `json:"validations,omitempty"` LinkType string `json:"linkType,omitempty"` }
ContentTypeFieldItems VO
type ContentTypeFieldItemsValidation ¶
type ContentTypeFieldItemsValidation struct {
LinkContentType []string `json:"linkContentType,omitempty"`
}
ContentTypeFieldItemsValidation VO
type ContentTypeSys ¶
type ContentTypeSys struct {
Sys ContentTypeSysAttributes `json:"sys,omitempty"`
}
ContentTypeSys VO
type ContentTypeSysAttributes ¶
type ContentTypeSysAttributes struct { ID string `json:"id,omitempty"` Type string `json:"type,omitempty"` LinkType string `json:"linkType,omitempty"` }
ContentTypeSysAttributes VO
type ContentfulSys ¶
type ContentfulSys struct { ID string `json:"id,omitempty"` Type string `json:"type,omitempty"` LinkType string `json:"linkType,omitempty"` ContentType ContentTypeSys `json:"contentType,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` Revision float64 `json:"revision,omitempty"` Version float64 `json:"version,omitempty"` }
ContentfulSys VO
type ExportFile ¶
type ExportFile struct { ContentTypes []ContentType `json:"contentTypes"` Locales []Locale `json:"locales"` }
Click to show internal directories.
Click to hide internal directories.