Documentation ¶
Index ¶
- Constants
- func GetAssetImageURL(entry *Entry, imageURLs map[string]string)
- func GetBlob(repo string, path string, file string) (*string, error)
- func GetBlobURL(repo string, path string, file string) (string, error)
- func GetCMSEntries(contentType string, repo string, include int) (*Entries, *ContentTypes, error)
- func GetCloudflareImagesID(repoName string) string
- func GetContentfulType(fieldType string) string
- func GetImageFileName(fileName string, sysId string, locale string) string
- func GetLocalContentsRecursive(path string) ([]*github.RepositoryContent, error)
- func GetSyncToken(databaseURL string, schemaName string) (string, error)
- func IsVideoFile(fileName string) bool
- func MigrateGamesPGSQL(databaseURL string, newSchemaName string, contentSchemaName string, ...) error
- func MigratePGSQL(databaseURL string, newSchemaName string, locales []*Locale, ...) error
- func NewPGSQLTable(item *ContentType, items map[string]*ContentType, includeDepth int64) (*PGSQLTable, []*PGSQLTable, []*PGSQLReference, []*PGSQLDependency, ...)
- func PublishCFChanges(repo string, entries []gh.BlobEntry) (github.Rate, error)
- func SaveSyncToken(databaseURL string, schemaName string, token string) error
- func SwapSchemas(databaseURL string, schemaName string, oldSchemaName string, ...) error
- func TransformEntry(locales []*Locale, model *Entry, brand string, fmtVideoURL func(string) string) map[string]*content.ContentData
- func TransformModel(model *ContentType) *content.Schema
- func TransformPublishedEntry(locales []*Locale, model *PublishedEntry, localizedFields map[string]bool, ...) map[string]*content.ContentData
- type APIError
- type AccessDeniedError
- type AccessTokenInvalidError
- type AssetFields
- type AssetFile
- type AssetsService
- func (s *AssetsService) Create(body []byte) ([]byte, error)
- func (s *AssetsService) GetEntries(query url.Values) (*Entries, error)
- func (s *AssetsService) GetSingle(id string) ([]byte, error)
- func (s *AssetsService) Process(id string, locale string) ([]byte, error)
- func (s *AssetsService) Publish(id string, version string) ([]byte, error)
- type BadRequestError
- type Client
- type ClientOptions
- type Config
- type ContentType
- type ContentTypeField
- type ContentTypes
- type ContentTypesService
- func (s *ContentTypesService) Create(contentType string, body []byte) ([]byte, error)
- func (s *ContentTypesService) Delete(contentType string) ([]byte, error)
- func (s *ContentTypesService) Get(query url.Values) ([]byte, error)
- func (s *ContentTypesService) GetCMATypes() (*ContentTypes, error)
- func (s *ContentTypesService) GetSingle(contentTypeId string) ([]byte, error)
- func (s *ContentTypesService) GetSingleCMA(contentTypeId string) (*ContentType, error)
- func (s *ContentTypesService) GetTypes() (*ContentTypes, error)
- func (s *ContentTypesService) Publish(contentType string, version string) ([]byte, error)
- func (s *ContentTypesService) UnPublish(contentType string) ([]byte, error)
- func (s *ContentTypesService) Update(contentType string, body []byte, version string) ([]byte, error)
- type CreateSpace
- type Entries
- type EntriesService
- func (s *EntriesService) Archive(entryId string, version string) ([]byte, error)
- func (s *EntriesService) Create(contentType string, body []byte) ([]byte, error)
- func (s *EntriesService) Delete(entryId string, version string) ([]byte, error)
- func (s *EntriesService) Get(query url.Values) ([]byte, error)
- func (s *EntriesService) GetEntries(query url.Values) (*Entries, error)
- func (s *EntriesService) GetSingle(entryId string) ([]byte, error)
- func (s *EntriesService) Publish(entryId string, version string) ([]byte, error)
- func (s *EntriesService) UnArchive(entryId string, version string) ([]byte, error)
- func (s *EntriesService) UnPublish(entryId string, version string) ([]byte, error)
- func (s *EntriesService) Update(version string, entryId string, body []byte) ([]byte, error)
- type Entry
- type ErrorDetail
- type ErrorDetails
- type ErrorResponse
- type FieldTypeArrayItem
- type FieldValidation
- type Fields
- type GHDelete
- type GHDeleteContentType
- type GHPublish
- type GHSyncSchema
- type GraphQLField
- type GraphQLResolver
- type GraphQLResolverArg
- type GraphQLSchema
- type GraphQLType
- type Include
- type InvalidQueryError
- type Locale
- type Locales
- type LocalesService
- type NotFoundError
- type PGDelete
- type PGDeleteContentType
- type PGDeletedTable
- type PGDrop
- type PGFunctions
- type PGFunctionsPublish
- type PGJSONBMetaRow
- type PGJSONBModelTable
- type PGJSONBSchema
- type PGMatView
- type PGMatViews
- type PGPublish
- type PGQuery
- type PGReferences
- type PGSQLColumn
- type PGSQLData
- type PGSQLDeleteTrigger
- type PGSQLDependency
- type PGSQLMeta
- type PGSQLProcedure
- type PGSQLProcedureColumn
- type PGSQLProcedureReference
- type PGSQLReference
- type PGSQLSchema
- type PGSQLTable
- type PGSyncConTable
- type PGSyncField
- type PGSyncRow
- type PGSyncSchema
- type PGSyncTable
- type PublishFields
- type PublishedEntries
- type PublishedEntry
- type RangeValidation
- type RateLimitExceededError
- type RegexpValidation
- type ServerError
- type Space
- type Spaces
- type SpacesService
- func (s *SpacesService) Create(body []byte) ([]byte, error)
- func (s *SpacesService) Get(query url.Values) ([]byte, error)
- func (s *SpacesService) GetSpace() (*Space, error)
- func (s *SpacesService) Sync(token string) (*SyncResult, error)
- func (s *SpacesService) SyncPaged(token string, callback SyncCallback) (string, error)
- type SyncCallback
- type SyncJSONBRow
- type SyncJSONBSchema
- type SyncJSONBTable
- type SyncResponse
- type SyncResult
- type Sys
- type UploadsService
- type ValidationFailedError
- type VersionMismatchError
Constants ¶
View Source
const ( ASSET = "Asset" DELETED_ASSET = "DeletedAsset" ASSET_TABLE_NAME = "_asset" ASSET_DISPLAYFIELD = "title" IMAGE_FOLDER_NAME = "_images" )
View Source
const ( CONTENT_TYPE = "ContentType" DELETED_CONTENT_TYPE = "DeletedContentType" )
View Source
const ( ENTRY = "Entry" DELETED_ENTRY = "DeletedEntry" )
View Source
const ( LINK = "Link" ARRAY = "Array" )
View Source
const (
DefaultLocale = "en"
)
Variables ¶
This section is empty.
Functions ¶
func GetAssetImageURL ¶
func GetCMSEntries ¶
func GetCloudflareImagesID ¶
func GetContentfulType ¶
func GetLocalContentsRecursive ¶
func GetLocalContentsRecursive(path string) ([]*github.RepositoryContent, error)
func IsVideoFile ¶
func MigrateGamesPGSQL ¶
func MigrateGamesPGSQL(databaseURL string, newSchemaName string, contentSchemaName string, locales []*Locale, types []*ContentType, cmaTypes []*ContentType, entries []*Entry, syncToken string) error
func MigratePGSQL ¶
func MigratePGSQL(databaseURL string, newSchemaName string, locales []*Locale, types []*ContentType, cmaTypes []*ContentType, entries []*Entry, syncToken string, createFunctions bool, incrementalMigration bool) error
func NewPGSQLTable ¶
func NewPGSQLTable(item *ContentType, items map[string]*ContentType, includeDepth int64) (*PGSQLTable, []*PGSQLTable, []*PGSQLReference, []*PGSQLDependency, *PGSQLProcedure)
func PublishCFChanges ¶
func SwapSchemas ¶
func TransformEntry ¶
func TransformModel ¶
func TransformModel(model *ContentType) *content.Schema
func TransformPublishedEntry ¶
func TransformPublishedEntry(locales []*Locale, model *PublishedEntry, localizedFields map[string]bool, brand string, fmtVideoURL func(string) string) map[string]*content.ContentData
Types ¶
type AccessDeniedError ¶
type AccessDeniedError struct{}
type AccessTokenInvalidError ¶
type AccessTokenInvalidError struct {
APIError
}
AccessTokenInvalidError for 401 errors
func (AccessTokenInvalidError) Error ¶
func (e AccessTokenInvalidError) Error() string
type AssetsService ¶
type AssetsService service
func (*AssetsService) GetEntries ¶
func (s *AssetsService) GetEntries(query url.Values) (*Entries, error)
type BadRequestError ¶
type BadRequestError struct{}
type Client ¶
type Client struct { Options *ClientOptions AfterRequest func(c *Client, req *http.Request, res *http.Response, elapsed time.Duration) Entries *EntriesService Spaces *SpacesService Locales *LocalesService Assets *AssetsService Uploads *UploadsService ContentTypes *ContentTypesService // contains filtered or unexported fields }
func NewClient ¶
func NewClient(options *ClientOptions) *Client
type ClientOptions ¶
type ContentType ¶
type ContentType struct { Sys *Sys `json:"sys"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Fields []*ContentTypeField `json:"fields,omitempty"` DisplayField string `json:"displayField,omitempty"` }
func GetCMSSchema ¶
func GetCMSSchema(repo string, ct string) (*ContentType, error)
type ContentTypeField ¶
type ContentTypeField struct { ID string `json:"id,omitempty"` Name string `json:"name"` Type string `json:"type"` LinkType string `json:"linkType,omitempty"` Items *FieldTypeArrayItem `json:"items,omitempty"` Required bool `json:"required,omitempty"` Localized bool `json:"localized,omitempty"` Disabled bool `json:"disabled,omitempty"` Omitted bool `json:"omitted,omitempty"` Validations []*FieldValidation `json:"validations,omitempty"` DefaultValue map[string]interface{} `json:"defaultValue,omitempty"` }
type ContentTypes ¶
type ContentTypes struct { Total int `json:"total"` Limit int `json:"limit"` Skip int `json:"skip"` Items []*ContentType `json:"items"` }
func GetCMSSchemas ¶
func GetCMSSchemas(repo string, ct string) (*ContentTypes, error)
func GetCMSSchemasExpanded ¶
func GetCMSSchemasExpanded(repo string, ct string) (*ContentTypes, error)
type ContentTypesService ¶
type ContentTypesService service
func (*ContentTypesService) Create ¶
func (s *ContentTypesService) Create(contentType string, body []byte) ([]byte, error)
func (*ContentTypesService) Delete ¶
func (s *ContentTypesService) Delete(contentType string) ([]byte, error)
func (*ContentTypesService) Get ¶
func (s *ContentTypesService) Get(query url.Values) ([]byte, error)
func (*ContentTypesService) GetCMATypes ¶
func (s *ContentTypesService) GetCMATypes() (*ContentTypes, error)
func (*ContentTypesService) GetSingle ¶
func (s *ContentTypesService) GetSingle(contentTypeId string) ([]byte, error)
func (*ContentTypesService) GetSingleCMA ¶
func (s *ContentTypesService) GetSingleCMA(contentTypeId string) (*ContentType, error)
func (*ContentTypesService) GetTypes ¶
func (s *ContentTypesService) GetTypes() (*ContentTypes, error)
func (*ContentTypesService) Publish ¶
func (s *ContentTypesService) Publish(contentType string, version string) ([]byte, error)
type CreateSpace ¶
type Entries ¶
type EntriesService ¶
type EntriesService service
func (*EntriesService) Archive ¶
func (s *EntriesService) Archive(entryId string, version string) ([]byte, error)
func (*EntriesService) Create ¶
func (s *EntriesService) Create(contentType string, body []byte) ([]byte, error)
func (*EntriesService) Delete ¶
func (s *EntriesService) Delete(entryId string, version string) ([]byte, error)
func (*EntriesService) GetEntries ¶
func (s *EntriesService) GetEntries(query url.Values) (*Entries, error)
func (*EntriesService) GetSingle ¶
func (s *EntriesService) GetSingle(entryId string) ([]byte, error)
func (*EntriesService) Publish ¶
func (s *EntriesService) Publish(entryId string, version string) ([]byte, error)
func (*EntriesService) UnArchive ¶
func (s *EntriesService) UnArchive(entryId string, version string) ([]byte, error)
type Entry ¶
type ErrorDetail ¶
type ErrorDetail struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Path interface{} `json:"path,omitempty"` Details string `json:"details,omitempty"` Value interface{} `json:"value,omitempty"` }
ErrorDetail model
type ErrorDetails ¶
type ErrorDetails struct {
Errors []*ErrorDetail `json:"errors,omitempty"`
}
ErrorDetails model
type ErrorResponse ¶
type ErrorResponse struct { Sys *Sys `json:"sys"` Message string `json:"message,omitempty"` RequestID string `json:"requestId,omitempty"` Details *ErrorDetails `json:"details,omitempty"` }
ErrorResponse model
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
type FieldTypeArrayItem ¶
type FieldTypeArrayItem struct { Type string `json:"type,omitempty"` Validations []*FieldValidation `json:"validations,omitempty"` LinkType string `json:"linkType,omitempty"` }
type FieldValidation ¶
type FieldValidation struct { LinkContentType []string `json:"linkContentType"` LinkMimetypeGroup []string `json:"linkMimetypeGroup"` Unique bool `json:"unique"` In []string `json:"in,omitempty"` Size *RangeValidation `json:"size,omitempty"` Range *RangeValidation `json:"range,omitempty"` Regexp *RegexpValidation `json:"regexp,omitempty"` }
type GHDeleteContentType ¶
func NewGHDeleteContentType ¶
func NewGHDeleteContentType(sys *Sys) *GHDeleteContentType
func (*GHDeleteContentType) Exec ¶
func (s *GHDeleteContentType) Exec(repo string) error
type GHPublish ¶
type GHPublish struct { Entry *PublishedEntry RepoName string FileName string Locales []*Locale LocalizedFields map[string]bool }
func NewGHPublish ¶
type GHSyncSchema ¶
type GHSyncSchema struct { FolderName string Schema *ContentType }
func NewGHSyncSchema ¶
func NewGHSyncSchema(sys *Sys, schema *ContentType) *GHSyncSchema
func (*GHSyncSchema) Exec ¶
func (s *GHSyncSchema) Exec(repo string) error
type GraphQLField ¶
func NewGraphQLField ¶
func NewGraphQLField(schema *GraphQLSchema, f *ContentTypeField) *GraphQLField
type GraphQLResolver ¶
type GraphQLResolver struct { Name string Args []*GraphQLResolverArg Result string }
func NewGraphQLResolver ¶
func NewGraphQLResolver(collection bool, name string, args []*GraphQLResolverArg, result string) *GraphQLResolver
type GraphQLResolverArg ¶
type GraphQLSchema ¶
type GraphQLSchema struct { Items []*ContentType TypeDefs []*GraphQLType }
func NewGraphQLSchema ¶
func NewGraphQLSchema(items []*ContentType) *GraphQLSchema
func (*GraphQLSchema) Render ¶
func (s *GraphQLSchema) Render() (string, error)
type GraphQLType ¶
type GraphQLType struct { Schema GraphQLSchema TypeName string Fields []*GraphQLField Resolvers []*GraphQLResolver }
func NewGraphQLTypeDef ¶
func NewGraphQLTypeDef(schema *GraphQLSchema, typeName string, fields []*ContentTypeField) *GraphQLType
type InvalidQueryError ¶
type InvalidQueryError struct{}
type LocalesService ¶
type LocalesService service
func (*LocalesService) GetLocales ¶
func (s *LocalesService) GetLocales() (*Locales, error)
type NotFoundError ¶
type NotFoundError struct {
APIError
}
NotFoundError for 404 errors
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type PGDelete ¶
func NewPGDelete ¶
type PGDeleteContentType ¶
func NewPGDeleteContentType ¶
func NewPGDeleteContentType(schemaName string, sys *Sys) *PGDeleteContentType
func (*PGDeleteContentType) Exec ¶
func (s *PGDeleteContentType) Exec(databaseURL string) error
type PGDeletedTable ¶
type PGFunctions ¶
type PGFunctions struct {
Schema *PGSQLSchema
}
func NewPGFunctions ¶
func NewPGFunctions(schema *PGSQLSchema) *PGFunctions
func (*PGFunctions) Exec ¶
func (s *PGFunctions) Exec(databaseURL string) error
func (*PGFunctions) Render ¶
func (s *PGFunctions) Render() (string, error)
type PGFunctionsPublish ¶
type PGFunctionsPublish struct { Schema *PGSQLSchema Locale string FallbackLocale string }
func NewPGFunctionsPublish ¶
func NewPGFunctionsPublish(schema *PGSQLSchema, locale string, fallbackLocale string) *PGFunctionsPublish
func (*PGFunctionsPublish) Render ¶
func (s *PGFunctionsPublish) Render() (string, error)
type PGJSONBMetaRow ¶
type PGJSONBMetaRow struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` LinkType string `json:"linkType,omitempty"` Items string `json:"version,omitempty"` Required bool `json:"required,omitempty"` Localized bool `json:"localized,omitempty"` // Unique bool `json:"unique,omitempty"` Disabled bool `json:"disabled,omitempty"` Omitted bool `json:"omitted,omitempty"` Validations string `json:"validations,omitempty"` }
func NewPGJSONBMetaRow ¶
func NewPGJSONBMetaRow(field *ContentTypeField) *PGJSONBMetaRow
type PGJSONBModelTable ¶
type PGJSONBModelTable struct { TableName string `json:"tableName,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` DisplayField string `json:"displayField,omitempty"` Version int `json:"version,omitempty"` Revision int `json:"revision,omitempty"` PublishedVersion int `json:"publishedVersion,omitempty"` CreatedAt string `json:"createdAt,omitempty"` CreatedBy string `json:"createdBy,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` UpdatedBy string `json:"updatedBy,omitempty"` PublishedAt string `json:"publishedAt,omitempty"` PublishedBy string `json:"publishedBy,omitempty"` Metas []*PGJSONBMetaRow `json:"metas,omitempty"` }
func NewPGJSONBModelTable ¶
func NewPGJSONBModelTable(item *ContentType) *PGJSONBModelTable
type PGJSONBSchema ¶
type PGJSONBSchema struct { SchemaName string AssetTableName string ModelsTableName string Tables []*PGJSONBModelTable }
func NewPGJSONBSchema ¶
func NewPGJSONBSchema(schemaName string, items []*ContentType) *PGJSONBSchema
func (*PGJSONBSchema) Render ¶
func (s *PGJSONBSchema) Render() (string, error)
type PGMatViews ¶
type PGMatViews struct {
Schema *PGSQLSchema
}
func NewPGMatViews ¶
func NewPGMatViews(schema *PGSQLSchema) *PGMatViews
func (*PGMatViews) ExecPublish ¶
type PGPublish ¶
type PGPublish struct { SchemaName string TableName string Columns []string Rows []*PGSyncRow ConTables map[string]*PGSyncConTable DeletedConTables map[string]*PGSyncConTable Locales []*Locale }
func NewPGPublish ¶
func NewPGPublish(schemaName string, locales []*Locale, contentModel *ContentType, item *PublishedEntry) *PGPublish
type PGQuery ¶
type PGQuery struct { SchemaName string TableName string Locale string Filters *[]string Order string Limit int Skip int }
func NewPGQuery ¶
func ParsePGQuery ¶
type PGReferences ¶
type PGReferences struct {
Schema *PGSQLSchema
}
func NewPGReferences ¶
func NewPGReferences(schema *PGSQLSchema) *PGReferences
func (*PGReferences) Exec ¶
func (s *PGReferences) Exec(databaseURL string) error
func (*PGReferences) Render ¶
func (s *PGReferences) Render() (string, error)
type PGSQLColumn ¶
type PGSQLColumn struct { ColumnName string ColumnType string ColumnDesc string Required bool IsIndex bool }
func NewPGSQLColumn ¶
func NewPGSQLColumn(field *ContentTypeField) *PGSQLColumn
type PGSQLDeleteTrigger ¶
type PGSQLDependency ¶
type PGSQLProcedure ¶
type PGSQLProcedure struct { TableName string Columns []*PGSQLProcedureColumn HasLocalized bool }
type PGSQLProcedureColumn ¶
type PGSQLProcedureColumn struct { TableName string ColumnName string Alias string ConTableName string Reference *PGSQLProcedureReference JoinAlias string IsAsset bool Localized bool SqlType string }
func NewPGSQLProcedureColumn ¶
func NewPGSQLProcedureColumn(columnName string, field *ContentTypeField, items map[string]*ContentType, tableName string, maxIncludeDepth int64, includeDepth int64, path string) *PGSQLProcedureColumn
type PGSQLProcedureReference ¶
type PGSQLReference ¶
type PGSQLSchema ¶
type PGSQLSchema struct { SchemaName string Locales []*Locale Tables []*PGSQLTable ConTables []*PGSQLTable References []*PGSQLReference Dependencies []*PGSQLDependency Functions []*PGSQLProcedure DeleteTriggers []*PGSQLDeleteTrigger AssetTableName string AssetColumns []string DropTables bool ContentTypePublish bool ContentSchema string }
func NewPGSQLSchema ¶
func NewPGSQLSchema(schemaName string, locales []*Locale, contentTypeFilter string, items []*ContentType, includeDepth int64) *PGSQLSchema
func (*PGSQLSchema) Exec ¶
func (s *PGSQLSchema) Exec(databaseURL string) error
func (*PGSQLSchema) Render ¶
func (s *PGSQLSchema) Render() (string, error)
type PGSQLTable ¶
type PGSQLTable struct { TableName string Data *PGSQLData Columns []*PGSQLColumn Indices map[string]string Schema *content.Schema }
func NewPGSQLCon ¶
func NewPGSQLCon(tableName string, fieldName string, reference string) *PGSQLTable
type PGSyncConTable ¶
type PGSyncField ¶
type PGSyncField struct { Type string Value interface{} }
type PGSyncRow ¶
type PGSyncRow struct { ID string SysID string FieldColumns []string FieldValues map[string]interface{} Locale string Version int CreatedAt string UpdatedAt string }
func (*PGSyncRow) GetFieldValue ¶
type PGSyncSchema ¶
type PGSyncSchema struct { SchemaName string Locales []*Locale DefaultLocale string Tables map[string]*PGSyncTable Deleted map[string]*PGDeletedTable ConTables map[string]*PGSyncConTable DeletedConTables map[string]*PGSyncConTable InitSync bool }
func NewPGSyncSchema ¶
func NewPGSyncSchema(schemaName string, locales []*Locale, types []*ContentType, entries []*Entry, initSync bool) *PGSyncSchema
func (*PGSyncSchema) Exec ¶
func (s *PGSyncSchema) Exec(databaseURL string) error
func (*PGSyncSchema) Render ¶
func (s *PGSyncSchema) Render() (string, error)
type PGSyncTable ¶
type PublishFields ¶
type PublishedEntries ¶
type PublishedEntry ¶
type PublishedEntry struct { Sys *Sys `json:"sys"` Fields PublishFields `json:"fields"` }
func GetPublishedEntry ¶
func GetPublishedEntry(repo string, contentType string, files []string) (*PublishedEntry, error)
type RangeValidation ¶
type RateLimitExceededError ¶
type RateLimitExceededError struct {
APIError
}
RateLimitExceededError for rate limit errors
func (RateLimitExceededError) Error ¶
func (e RateLimitExceededError) Error() string
type RegexpValidation ¶
type ServerError ¶
type ServerError struct{}
type SpacesService ¶
type SpacesService service
func (*SpacesService) GetSpace ¶
func (s *SpacesService) GetSpace() (*Space, error)
func (*SpacesService) Sync ¶
func (s *SpacesService) Sync(token string) (*SyncResult, error)
func (*SpacesService) SyncPaged ¶
func (s *SpacesService) SyncPaged(token string, callback SyncCallback) (string, error)
type SyncCallback ¶
type SyncCallback func(*SyncResponse) error
type SyncJSONBRow ¶
type SyncJSONBRow struct { ID string `json:"id,omitempty"` Fields string `json:"fields,omitempty"` Type string `json:"type,omitempty"` Version int `json:"version,omitempty"` Revision int `json:"revision,omitempty"` PublishedVersion int `json:"publishedVersion,omitempty"` CreatedAt string `json:"createdAt,omitempty"` CreatedBy string `json:"createdBy,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` UpdatedBy string `json:"updatedBy,omitempty"` PublishedAt string `json:"publishedAt,omitempty"` PublishedBy string `json:"publishedBy,omitempty"` }
func NewSyncJSONBRow ¶
func NewSyncJSONBRow(item *Entry) SyncJSONBRow
type SyncJSONBSchema ¶
type SyncJSONBSchema struct { SchemaName string AssetTableName string Tables []SyncJSONBTable Deleted []SyncJSONBTable }
func NewSyncJSONBSchema ¶
func NewSyncJSONBSchema(schemaName string, assetTableName string, items []*Entry) SyncJSONBSchema
func (*SyncJSONBSchema) Render ¶
func (s *SyncJSONBSchema) Render() (string, error)
type SyncJSONBTable ¶
type SyncJSONBTable struct { TableName string Rows []SyncJSONBRow }
func NewSyncJSONBTable ¶
func NewSyncJSONBTable(tableName string, rows []SyncJSONBRow) SyncJSONBTable
type SyncResponse ¶
type SyncResult ¶
type Sys ¶
type Sys struct { ID string `json:"id,omitempty"` Type string `json:"type,omitempty"` LinkType string `json:"linkType,omitempty"` CreatedAt string `json:"createdAt,omitempty"` CreatedBy *Entry `json:"createdBy,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` UpdatedBy *Entry `json:"updatedBy,omitempty"` DeletedAt string `json:"deletedAt,omitempty"` DeletedBy *Entry `json:"deletedBy,omitempty"` Version int `json:"version,omitempty"` Revision int `json:"revision,omitempty"` ContentType *ContentType `json:"contentType,omitempty"` FirstPublishedAt string `json:"firstPublishedAt,omitempty"` PublishedCounter int `json:"publishedCounter,omitempty"` PublishedAt string `json:"publishedAt,omitempty"` PublishedBy *Entry `json:"publishedBy,omitempty"` PublishedVersion int `json:"publishedVersion,omitempty"` Space *Space `json:"space,omitempty"` }
type UploadsService ¶
type UploadsService service
type ValidationFailedError ¶
type ValidationFailedError struct {
APIError
}
ValidationFailedError model
func (ValidationFailedError) Error ¶
func (e ValidationFailedError) Error() string
type VersionMismatchError ¶
type VersionMismatchError struct {
APIError
}
VersionMismatchError for 409 errors
func (VersionMismatchError) Error ¶
func (e VersionMismatchError) Error() string
Source Files ¶
- assets.go
- cms_entries.go
- cms_helpers.go
- cms_types.go
- contenttypes.go
- delete_contenttype_gh.go
- delete_contenttype_pg.go
- delete_gh.go
- delete_pg.go
- drop_pg.go
- entries.go
- errors.go
- functions_pg.go
- functions_pg_publish.go
- functions_tpl.go
- functions_tpl_old.go
- gontentful.go
- locales.go
- matviews.go
- migrate_pg.go
- publish_gh.go
- publish_pg.go
- publish_pg_tpl.go
- query_pg.go
- references_pg.go
- references_tpl.go
- schema_gql.go
- schema_pg.go
- schema_pg_jsonb.go
- schema_pg_tpl.go
- schema_pg_tpl_old.go
- schema_pg_tpl_publish.go
- spaces.go
- sync.go
- sync_jsonb.go
- sync_pg.go
- sync_pg_token.go
- sync_pg_tpl.go
- sync_pg_tpl_publish.go
- sync_pg_utils.go
- sync_schema_gh.go
- transform.go
- trigger_pg_tpl.go
- types.go
- uploads.go
- utils.go
Click to show internal directories.
Click to hide internal directories.