Documentation ¶
Index ¶
- func ContentItemPaginationQueryString(parameters ContentItemPaginationParameters) string
- func ContentTypePaginationQueryString(parameters StatusPaginationParameters) string
- func ContentTypeSchemaPaginationQueryString(parameters StatusPaginationParameters) string
- func PaginationQueryString(parameters PaginationParameters) string
- type AlgoliaIndex
- type AlgoliaIndexInput
- type AlgoliaIndexResults
- type AlgoliaIndexSettings
- type AmplienceDamSettings
- type ApplicationSettings
- type ArchiveInput
- type AssetManagementSettings
- type AssignedContentType
- type AssignedContentTypeInput
- type AssignedContentTypeResults
- type Client
- func (client *Client) AlgoliaIndexCreate(hub_id string, input AlgoliaIndexInput) (AlgoliaIndex, error)
- func (client *Client) AlgoliaIndexDelete(hub_id string, id string) (AlgoliaIndex, error)
- func (client *Client) AlgoliaIndexGet(hub_id string, id string) (AlgoliaIndex, error)
- func (client *Client) AlgoliaIndexList(hub_id string) (AlgoliaIndexResults, error)
- func (client *Client) AlgoliaIndexSettingsGet(hub_id string, id string) (AlgoliaIndexSettings, error)
- func (client *Client) AlgoliaIndexSettingsUpdate(hub_id string, id string, input AlgoliaIndexSettings) (AlgoliaIndexSettings, error)
- func (client *Client) AlgoliaIndexUpdate(hubID string, current AlgoliaIndex, input AlgoliaIndexInput) (AlgoliaIndex, error)
- func (client *Client) AlgoliaIndexWebhooksGet(hub_id string, id string) ([]Webhook, error)
- func (client *Client) ContentItemArchive(id string, version int) (ContentItem, error)
- func (client *Client) ContentItemCreate(repositoryID string, input ContentItemInput) (ContentItem, error)
- func (client *Client) ContentItemGet(id string) (ContentItem, error)
- func (client *Client) ContentItemGetAll(hubID string, status ContentStatus) ([]ContentItem, error)
- func (client *Client) ContentItemList(repositoryID string, parameters ContentItemPaginationParameters) (ContentItemResults, error)
- func (client *Client) ContentItemListHistory(id string, version int) (ContentItemVersionHistoryResults, error)
- func (client *Client) ContentItemUnarchive(id string, version int) (ContentItem, error)
- func (client *Client) ContentItemUpdate(current ContentItem, input ContentItemInput) (ContentItem, error)
- func (client *Client) ContentRepositoryAssignContentType(repositoryID string, typeID string) (ContentRepository, error)
- func (client *Client) ContentRepositoryAssignFeature(repositoryID string)
- func (client *Client) ContentRepositoryCreate(hubID string, input ContentRepositoryInput) (ContentRepository, error)
- func (client *Client) ContentRepositoryFind()
- func (client *Client) ContentRepositoryGet(id string) (ContentRepository, error)
- func (client *Client) ContentRepositoryGetAll(hubID string) ([]ContentRepository, error)
- func (client *Client) ContentRepositoryList(hubID string, parameters PaginationParameters) (ContentRepositoryResults, error)
- func (client *Client) ContentRepositoryRemoveContentType(repositoryID string, typeID string) (ContentRepository, error)
- func (client *Client) ContentRepositoryRemoveFeature(repositoryID string)
- func (client *Client) ContentRepositoryShare()
- func (client *Client) ContentRepositoryUpdate(current ContentRepository, input ContentRepositoryInput) (ContentRepository, error)
- func (client *Client) ContentTypeArchive(id string) (ContentType, error)
- func (client *Client) ContentTypeCreate(hubID string, input ContentTypeInput) (ContentType, error)
- func (client *Client) ContentTypeFindByUri(uri string, hubId string) (ContentType, error)
- func (client *Client) ContentTypeGet(id string) (ContentType, error)
- func (client *Client) ContentTypeGetAll(hubID string, status ContentStatus) ([]ContentType, error)
- func (client *Client) ContentTypeList(hubID string, parameters StatusPaginationParameters) (ContentTypeResults, error)
- func (client *Client) ContentTypeSchemaArchive(id string, version int) (ContentTypeSchema, error)
- func (client *Client) ContentTypeSchemaCreate(hubID string, update ContentTypeSchemaInput) (ContentTypeSchema, error)
- func (client *Client) ContentTypeSchemaFindBySchemaId(schemaId string, hubId string) (ContentTypeSchema, error)
- func (client *Client) ContentTypeSchemaGet(id string) (ContentTypeSchema, error)
- func (client *Client) ContentTypeSchemaGetAll(hubID string, status ContentStatus) ([]ContentTypeSchema, error)
- func (client *Client) ContentTypeSchemaList(hubID string, parameters StatusPaginationParameters) (ContentTypeSchemaResults, error)
- func (client *Client) ContentTypeSchemaUnarchive(id string, version int) (ContentTypeSchema, error)
- func (client *Client) ContentTypeSchemaUpdate(current ContentTypeSchema, update ContentTypeSchemaInput) (ContentTypeSchema, error)
- func (client *Client) ContentTypeSyncSchema(current ContentType) (ContentTypeSyncResult, error)
- func (client *Client) ContentTypeUnarchive(id string) (ContentType, error)
- func (client *Client) ContentTypeUpdate(current ContentType, input ContentTypeInput) (ContentType, error)
- func (client *Client) FolderCreate(repositoryID string, input FolderInput) (FolderInput, error)
- func (client *Client) FolderDelete(id string) (Folder, error)
- func (client *Client) FolderGet(id string) (Folder, error)
- func (client *Client) FolderGetAll(hubID string) ([]Folder, error)
- func (client *Client) FolderList(repositoryID string, parameters PaginationParameters) (FolderResults, error)
- func (client *Client) HubGet(id string) (Hub, error)
- func (client *Client) HubGetAll() ([]Hub, error)
- func (client *Client) HubList(parameters PaginationParameters) (HubResults, error)
- func (client *Client) HubPatch(id string, input HubUpdateInput) (Hub, error)
- func (client *Client) WebhookCreate(hubID string, input WebhookInput) (Webhook, error)
- func (client *Client) WebhookDelete(hub_id string, id string) error
- func (client *Client) WebhookGet(hubID string, ID string) (Webhook, error)
- func (client *Client) WebhookGetAll(hubID string) ([]Webhook, error)
- func (client *Client) WebhookList(hub_id string, parameters PaginationParameters) (WebhookResults, error)
- func (client *Client) WebhookUpdate(hubID string, current Webhook, input WebhookInput) (Webhook, error)
- type ClientConfig
- type ContentItem
- type ContentItemAction
- type ContentItemInput
- type ContentItemPaginationParameters
- type ContentItemResults
- type ContentItemVersionHistory
- type ContentItemVersionHistoryResults
- type ContentRepository
- type ContentRepositoryInput
- type ContentRepositoryResults
- type ContentStatus
- type ContentType
- type ContentTypeIcon
- type ContentTypeInput
- type ContentTypeReference
- type ContentTypeResults
- type ContentTypeSchema
- type ContentTypeSchemaInput
- type ContentTypeSchemaResults
- type ContentTypeSettings
- type ContentTypeSyncResult
- type ContentTypeVisualization
- type DeviceSettings
- type ErrorObject
- type ErrorResponse
- type Folder
- type FolderInput
- type FolderResults
- type GenericListResults
- type Hub
- type HubResults
- type HubUpdateInput
- type Link
- type LocalizationSettings
- type Notification
- type PageInformation
- type PaginationParameters
- type PlatformSettings
- type PreviewVirtualStagingEnvironmentSettings
- type Projection
- type PublishingSettings
- type Settings
- type StatusPaginationParameters
- type VirtualStagingEnvironmentSettings
- type Webhook
- type WebhookCustomPayload
- type WebhookEventsEnum
- type WebhookFilter
- type WebhookFilterEqual
- type WebhookFilterIn
- type WebhookHeader
- type WebhookInput
- type WebhookResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentItemPaginationQueryString ¶
func ContentItemPaginationQueryString(parameters ContentItemPaginationParameters) string
func ContentTypePaginationQueryString ¶
func ContentTypePaginationQueryString(parameters StatusPaginationParameters) string
func ContentTypeSchemaPaginationQueryString ¶
func ContentTypeSchemaPaginationQueryString(parameters StatusPaginationParameters) string
func PaginationQueryString ¶
func PaginationQueryString(parameters PaginationParameters) string
Types ¶
type AlgoliaIndex ¶
type AlgoliaIndex struct { ID string `json:"id,omitempty"` ParentID string `json:"parentId,omitempty"` Label string `json:"label"` Name string `json:"name"` Type string `json:"type"` // PRODUCTION, STAGING Suffix string `json:"suffix"` ReplicaCount int `json:"replicaCount"` CreatedDate *time.Time `json:"createdDate,omitempty"` LastModifiedDate *time.Time `json:"lastModifiedDate,omitempty"` Links map[string]Link `json:"_links"` }
type AlgoliaIndexInput ¶
type AlgoliaIndexInput struct { Suffix string `json:"suffix"` Label string `json:"label"` Type string `json:"type"` // PRODUCTION, STAGING AssignedContentTypes []AssignedContentTypeInput `json:"assignedContentTypes"` }
type AlgoliaIndexResults ¶
type AlgoliaIndexResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []AlgoliaIndex }
func (*AlgoliaIndexResults) UnmarshalJSON ¶
func (r *AlgoliaIndexResults) UnmarshalJSON(data []byte) error
type AlgoliaIndexSettings ¶
type AlgoliaIndexSettings struct { // NumericAttributesToIndex interface{} `json:"numericAttributesToIndex"` MinWordSizefor1Typo int `json:"minWordSizefor1Typo"` MinWordSizefor2Typos int `json:"minWordSizefor2Typos"` HitsPerPage int `json:"hitsPerPage"` MaxValuesPerFacet int `json:"maxValuesPerFacet"` Version int `json:"version"` SearchableAttributes []string `json:"searchableAttributes"` AttributesToRetrieve []string `json:"attributesToRetrieve"` UnretrievableAttributes []string `json:"unretrievableAttributes"` OptionalWords []string `json:"optionalWords"` AttributesForFaceting []string `json:"attributesForFaceting"` AttributesToSnippet []string `json:"attributesToSnippet"` AttributesToHighlight []string `json:"attributesToHighlight"` PaginationLimitedTo int `json:"paginationLimitedTo"` AttributeForDistinct string `json:"attributeForDistinct"` ExactOnSingleWordQuery string `json:"exactOnSingleWordQuery"` Ranking []string `json:"ranking"` CustomRanking []string `json:"customRanking"` SeparatorsToIndex string `json:"separatorsToIndex"` RemoveWordsIfNoResults string `json:"removeWordsIfNoResults"` QueryType string `json:"queryType"` HighlightPreTag string `json:"highlightPreTag"` HighlightPostTag string `json:"highlightPostTag"` SnippetEllipsisText string `json:"snippetEllipsisText"` AlternativesAsExact []string `json:"alternativesAsExact"` }
type AmplienceDamSettings ¶
type ApplicationSettings ¶
type ArchiveInput ¶
type ArchiveInput struct {
Version int `json:"version"`
}
type AssetManagementSettings ¶
type AssignedContentType ¶
type AssignedContentTypeInput ¶
type AssignedContentTypeInput struct {
ContentTypeUri string `json:"contentTypeUri"`
}
type AssignedContentTypeResults ¶
type AssignedContentTypeResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []AssignedContentType }
func (*AssignedContentTypeResults) UnmarshalJSON ¶
func (r *AssignedContentTypeResults) UnmarshalJSON(data []byte) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *ClientConfig) (*Client, error)
NewClient creates a new Client object
func (*Client) AlgoliaIndexCreate ¶
func (client *Client) AlgoliaIndexCreate(hub_id string, input AlgoliaIndexInput) (AlgoliaIndex, error)
func (*Client) AlgoliaIndexDelete ¶
func (client *Client) AlgoliaIndexDelete(hub_id string, id string) (AlgoliaIndex, error)
func (*Client) AlgoliaIndexGet ¶
func (client *Client) AlgoliaIndexGet(hub_id string, id string) (AlgoliaIndex, error)
func (*Client) AlgoliaIndexList ¶
func (client *Client) AlgoliaIndexList(hub_id string) (AlgoliaIndexResults, error)
func (*Client) AlgoliaIndexSettingsGet ¶
func (client *Client) AlgoliaIndexSettingsGet(hub_id string, id string) (AlgoliaIndexSettings, error)
func (*Client) AlgoliaIndexSettingsUpdate ¶
func (client *Client) AlgoliaIndexSettingsUpdate(hub_id string, id string, input AlgoliaIndexSettings) (AlgoliaIndexSettings, error)
func (*Client) AlgoliaIndexUpdate ¶
func (client *Client) AlgoliaIndexUpdate(hubID string, current AlgoliaIndex, input AlgoliaIndexInput) (AlgoliaIndex, error)
func (*Client) AlgoliaIndexWebhooksGet ¶
func (*Client) ContentItemArchive ¶
func (client *Client) ContentItemArchive(id string, version int) (ContentItem, error)
ContentItemArchive archives a content item
func (*Client) ContentItemCreate ¶
func (client *Client) ContentItemCreate(repositoryID string, input ContentItemInput) (ContentItem, error)
ContentItemCreate creates a new content item
func (*Client) ContentItemGet ¶
func (client *Client) ContentItemGet(id string) (ContentItem, error)
ContentItemGet returns the content item with the given id
func (*Client) ContentItemGetAll ¶
func (client *Client) ContentItemGetAll(hubID string, status ContentStatus) ([]ContentItem, error)
func (*Client) ContentItemList ¶
func (client *Client) ContentItemList(repositoryID string, parameters ContentItemPaginationParameters) (ContentItemResults, error)
ContentItemList lists all of the Content Items within the given Content Repository
func (*Client) ContentItemListHistory ¶
func (client *Client) ContentItemListHistory(id string, version int) (ContentItemVersionHistoryResults, error)
ContentItemListHistory list history of this item
func (*Client) ContentItemUnarchive ¶
func (client *Client) ContentItemUnarchive(id string, version int) (ContentItem, error)
ContentItemUnarchive unarchives a content item
func (*Client) ContentItemUpdate ¶
func (client *Client) ContentItemUpdate(current ContentItem, input ContentItemInput) (ContentItem, error)
ContentItemUpdate updates a Content Item. Please note that deliveryKey can only be set when Content Delivery 2 is enabled.
func (*Client) ContentRepositoryAssignContentType ¶
func (client *Client) ContentRepositoryAssignContentType(repositoryID string, typeID string) (ContentRepository, error)
ContentRepositoryAssignContentType assigns a Content Type to a Content Repository
func (*Client) ContentRepositoryAssignFeature ¶
func (*Client) ContentRepositoryCreate ¶
func (client *Client) ContentRepositoryCreate(hubID string, input ContentRepositoryInput) (ContentRepository, error)
func (*Client) ContentRepositoryFind ¶
func (client *Client) ContentRepositoryFind()
func (*Client) ContentRepositoryGet ¶
func (client *Client) ContentRepositoryGet(id string) (ContentRepository, error)
ContentRepositoryGet returns a ContentRepository for the given id
func (*Client) ContentRepositoryGetAll ¶
func (client *Client) ContentRepositoryGetAll(hubID string) ([]ContentRepository, error)
func (*Client) ContentRepositoryList ¶
func (client *Client) ContentRepositoryList(hubID string, parameters PaginationParameters) (ContentRepositoryResults, error)
func (*Client) ContentRepositoryRemoveContentType ¶
func (client *Client) ContentRepositoryRemoveContentType(repositoryID string, typeID string) (ContentRepository, error)
ContentRepositoryRemoveContentType removes a Content Type from a Content Repository
func (*Client) ContentRepositoryRemoveFeature ¶
func (*Client) ContentRepositoryShare ¶
func (client *Client) ContentRepositoryShare()
func (*Client) ContentRepositoryUpdate ¶
func (client *Client) ContentRepositoryUpdate(current ContentRepository, input ContentRepositoryInput) (ContentRepository, error)
func (*Client) ContentTypeArchive ¶
func (client *Client) ContentTypeArchive(id string) (ContentType, error)
func (*Client) ContentTypeCreate ¶
func (client *Client) ContentTypeCreate(hubID string, input ContentTypeInput) (ContentType, error)
func (*Client) ContentTypeFindByUri ¶
func (client *Client) ContentTypeFindByUri(uri string, hubId string) (ContentType, error)
func (*Client) ContentTypeGet ¶
func (client *Client) ContentTypeGet(id string) (ContentType, error)
func (*Client) ContentTypeGetAll ¶
func (client *Client) ContentTypeGetAll(hubID string, status ContentStatus) ([]ContentType, error)
func (*Client) ContentTypeList ¶
func (client *Client) ContentTypeList(hubID string, parameters StatusPaginationParameters) (ContentTypeResults, error)
func (*Client) ContentTypeSchemaArchive ¶
func (client *Client) ContentTypeSchemaArchive(id string, version int) (ContentTypeSchema, error)
func (*Client) ContentTypeSchemaCreate ¶
func (client *Client) ContentTypeSchemaCreate(hubID string, update ContentTypeSchemaInput) (ContentTypeSchema, error)
func (*Client) ContentTypeSchemaFindBySchemaId ¶
func (client *Client) ContentTypeSchemaFindBySchemaId(schemaId string, hubId string) (ContentTypeSchema, error)
func (*Client) ContentTypeSchemaGet ¶
func (client *Client) ContentTypeSchemaGet(id string) (ContentTypeSchema, error)
func (*Client) ContentTypeSchemaGetAll ¶
func (client *Client) ContentTypeSchemaGetAll(hubID string, status ContentStatus) ([]ContentTypeSchema, error)
func (*Client) ContentTypeSchemaList ¶
func (client *Client) ContentTypeSchemaList(hubID string, parameters StatusPaginationParameters) (ContentTypeSchemaResults, error)
func (*Client) ContentTypeSchemaUnarchive ¶
func (client *Client) ContentTypeSchemaUnarchive(id string, version int) (ContentTypeSchema, error)
func (*Client) ContentTypeSchemaUpdate ¶
func (client *Client) ContentTypeSchemaUpdate(current ContentTypeSchema, update ContentTypeSchemaInput) (ContentTypeSchema, error)
func (*Client) ContentTypeSyncSchema ¶
func (client *Client) ContentTypeSyncSchema(current ContentType) (ContentTypeSyncResult, error)
func (*Client) ContentTypeUnarchive ¶
func (client *Client) ContentTypeUnarchive(id string) (ContentType, error)
func (*Client) ContentTypeUpdate ¶
func (client *Client) ContentTypeUpdate(current ContentType, input ContentTypeInput) (ContentType, error)
func (*Client) FolderCreate ¶
func (client *Client) FolderCreate(repositoryID string, input FolderInput) (FolderInput, error)
func (*Client) FolderList ¶
func (client *Client) FolderList(repositoryID string, parameters PaginationParameters) (FolderResults, error)
func (*Client) HubList ¶
func (client *Client) HubList(parameters PaginationParameters) (HubResults, error)
func (*Client) HubPatch ¶
func (client *Client) HubPatch(id string, input HubUpdateInput) (Hub, error)
HubPatch will update hub settings. Note that if any settings are not provided they will be ignored during the patch, so they will continue existing.
func (*Client) WebhookCreate ¶
func (client *Client) WebhookCreate(hubID string, input WebhookInput) (Webhook, error)
func (*Client) WebhookGet ¶
func (*Client) WebhookList ¶
func (client *Client) WebhookList(hub_id string, parameters PaginationParameters) (WebhookResults, error)
func (*Client) WebhookUpdate ¶
type ClientConfig ¶
type ClientConfig struct { ClientID string ClientSecret string URL string AuthURL string HTTPClient *http.Client }
ClientConfig is used to initialize a new Client
type ContentItem ¶
type ContentItem struct { ID string `json:"id"` ContentRepositoryID string `json:"contentRepositoryId"` FolderID string `json:"folderId"` Body map[string]interface{} `json:"body"` Version int `json:"version"` Label string `json:"label"` Status string `json:"status"` CreatedBy string `json:"createdBy"` Locale string `json:"locale"` CreatedDate *time.Time `json:"createdDate"` LastModifiedBy string `json:"lastModifiedBy"` LastModifiedDate *time.Time `json:"lastModifiedDate"` LastPublishedVersion int `json:"lastPublishedVersion"` LastPublishedDate *time.Time `json:"lastPublishedDate"` DeliveryID string `json:"deliveryId"` Links map[string]Link `json:"_links"` }
type ContentItemAction ¶
type ContentItemInput ¶
type ContentItemPaginationParameters ¶
type ContentItemPaginationParameters struct { Page int Size int Sort string Status ContentStatus FolderId string Projection Projection ExcludeHierarchicalChildren bool }
type ContentItemResults ¶
type ContentItemResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []ContentItem }
ContentItemResults is returned by the ContentItemList func
func (*ContentItemResults) UnmarshalJSON ¶
func (r *ContentItemResults) UnmarshalJSON(data []byte) error
UnmarshalJSON is a custom unmarshaller for the embedded content
type ContentItemVersionHistoryResults ¶
type ContentItemVersionHistoryResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []ContentItemVersionHistory }
ContentItemResults is returned by the ContentItemList func
func (*ContentItemVersionHistoryResults) UnmarshalJSON ¶
func (r *ContentItemVersionHistoryResults) UnmarshalJSON(data []byte) error
UnmarshalJSON is a custom unmarshaller for the embedded content
type ContentRepository ¶
type ContentRepositoryInput ¶
type ContentRepositoryResults ¶
type ContentRepositoryResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []ContentRepository }
func (*ContentRepositoryResults) UnmarshalJSON ¶
func (r *ContentRepositoryResults) UnmarshalJSON(data []byte) error
type ContentStatus ¶
type ContentStatus string
const ( StatusAny ContentStatus = "" StatusActive ContentStatus = "ACTIVE" StatusArchived ContentStatus = "ARCHIVED" )
type ContentType ¶
type ContentTypeIcon ¶
type ContentTypeInput ¶
type ContentTypeInput struct { ContentTypeURI string `json:"contentTypeUri"` Settings ContentTypeSettings `json:"settings,omitempty"` }
type ContentTypeReference ¶
type ContentTypeResults ¶
type ContentTypeResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []ContentType }
func (*ContentTypeResults) UnmarshalJSON ¶
func (r *ContentTypeResults) UnmarshalJSON(data []byte) error
type ContentTypeSchema ¶
type ContentTypeSchema struct { ID string `json:"id"` Body string `json:"body"` Version int `json:"version"` Status string `json:"status"` CreatedBy string `json:"createdBy"` CreatedDate *time.Time `json:"createdDate"` LastModifiedBy string `json:"lastModifiedBy"` LastModifiedDate *time.Time `json:"lastModifiedDate"` Links map[string]Link `json:"_links"` SchemaID string `json:"schemaId"` ValidationLevel string `json:"validationLevel"` }
type ContentTypeSchemaInput ¶
type ContentTypeSchemaResults ¶
type ContentTypeSchemaResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []ContentTypeSchema }
func (*ContentTypeSchemaResults) UnmarshalJSON ¶
func (r *ContentTypeSchemaResults) UnmarshalJSON(data []byte) error
type ContentTypeSettings ¶
type ContentTypeSettings struct { Label string `json:"label"` Icons []ContentTypeIcon `json:"icons,omitempty"` Visualizations []ContentTypeVisualization `json:"visualizations,omitempty"` }
type ContentTypeSyncResult ¶
type ContentTypeSyncResult struct {
ContentTypeURI string `json:"contentTypeUri"`
}
type DeviceSettings ¶
type ErrorObject ¶
type ErrorResponse ¶
type ErrorResponse struct { Inner error StatusCode int Errors []ErrorObject `json:"errors"` }
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
func (*ErrorResponse) Unwrap ¶
func (e *ErrorResponse) Unwrap() error
Unwrap is used to make it work with errors.Is, errors.As.
type FolderInput ¶
type FolderInput struct {
Name string `json:"name"`
}
type FolderResults ¶
type FolderResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []Folder }
ContentItemResults is returned by the ContentItemList func
func (*FolderResults) UnmarshalJSON ¶
func (r *FolderResults) UnmarshalJSON(data []byte) error
UnmarshalJSON is a custom unmarshaller for the embedded content
type GenericListResults ¶
type GenericListResults struct { Embedded map[string]interface{} `json:"_embedded"` Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` }
type Hub ¶
type Hub struct { ID string `json:"id,omitempty"` Name string `json:"name"` Label string `json:"label"` Description *string `json:"description"` Plan *string `json:"plan,omitempty"` AlgoliaSearch string `json:"algoliaSearch"` CDV2 string `json:"cdv2"` OrganizationID string `json:"organizationId"` Settings *Settings `json:"settings"` Links map[string]Link `json:"_links"` }
type HubResults ¶
type HubResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []Hub }
func (*HubResults) UnmarshalJSON ¶
func (r *HubResults) UnmarshalJSON(data []byte) error
type HubUpdateInput ¶
type LocalizationSettings ¶
type LocalizationSettings struct {
Locales []string `json:"locales"`
}
type Notification ¶
type Notification struct {
Email string
}
type PageInformation ¶
type PaginationParameters ¶
type PlatformSettings ¶
type PlatformSettings struct {
AmplienceDam *AmplienceDamSettings `json:"amplience_dam"`
}
type PreviewVirtualStagingEnvironmentSettings ¶
type PreviewVirtualStagingEnvironmentSettings struct {
Hostname string `json:"hostname"`
}
type Projection ¶
type Projection string
const ( ProjectionAny Projection = "" ProjectionBasic Projection = "basic" )
type PublishingSettings ¶
type PublishingSettings struct {
Platforms *PlatformSettings `json:"platforms"`
}
type Settings ¶
type Settings struct { Publishing *PublishingSettings `json:"publishing"` Devices []DeviceSettings `json:"devices"` Localization *LocalizationSettings `json:"localization"` Applications []ApplicationSettings `json:"applications"` PreviewVirtualStagingEnvironment *PreviewVirtualStagingEnvironmentSettings `json:"previewVirtualStagingEnvironment"` VirtualStagingEnvironment *VirtualStagingEnvironmentSettings `json:"virtualStagingEnvironment"` AssetManagement *AssetManagementSettings `json:"assetManagement"` }
type StatusPaginationParameters ¶
type StatusPaginationParameters struct { Page int Size int Sort string Status ContentStatus }
type VirtualStagingEnvironmentSettings ¶
type VirtualStagingEnvironmentSettings struct {
Hostname string `json:"hostname"`
}
type Webhook ¶
type Webhook struct { ID string `json:"id,omitempty"` Label string `json:"label"` Events []string `json:"events"` Handlers []string `json:"handlers"` Active bool `json:"active"` Notifications []Notification `json:"notifications"` Secret string `json:"secret"` CreatedDate *time.Time `json:"createdDate,omitempty"` LastModifiedDate *time.Time `json:"lastModifiedDate,omitempty"` Headers []WebhookHeader `json:"headers,omitempty"` Filters []WebhookFilter `json:"filters,omitempty"` Method string `json:"method"` CustomPayload *WebhookCustomPayload `json:"customPayload,omitempty"` }
func (*Webhook) UnmarshalJSON ¶
type WebhookCustomPayload ¶
type WebhookEventsEnum ¶
type WebhookEventsEnum string
const ( WebhookContentItemAssigned WebhookEventsEnum = "dynamic-content.content-item.assigned" WebhookContentItemCreated WebhookEventsEnum = "dynamic-content.content-item.created" WebhookContentItemUpdated WebhookEventsEnum = "dynamic-content.content-item.updated" WebhookContentItemWorkflowUpdated WebhookEventsEnum = "dynamic-content.content-item.workflow.updated" WebhookEditionPublished WebhookEventsEnum = "dynamic-content.edition.published" WebhookEditionScheduled WebhookEventsEnum = "dynamic-content.edition.scheduled" WebhookEditionUnscheduled WebhookEventsEnum = "dynamic-content.edition.unscheduled" WebhookSnapshotPublished WebhookEventsEnum = "dynamic-content.snapshot.published" )
type WebhookFilter ¶
type WebhookFilter interface{}
type WebhookFilterEqual ¶
func (WebhookFilterEqual) MarshalJSON ¶
func (obj WebhookFilterEqual) MarshalJSON() ([]byte, error)
type WebhookFilterIn ¶
type WebhookFilterIn struct { Type string `json:"type"` JSONPath string Values []string `json:"values"` }
func (WebhookFilterIn) MarshalJSON ¶
func (obj WebhookFilterIn) MarshalJSON() ([]byte, error)
type WebhookHeader ¶
type WebhookInput ¶
type WebhookInput struct { Label string `json:"label"` Events []string `json:"events"` Handlers []string `json:"handlers"` Active bool `json:"active"` Notifications []Notification `json:"notifications"` Secret string `json:"secret"` Headers []WebhookHeader `json:"headers,omitempty"` Filters []WebhookFilter `json:"filters,omitempty"` Method string `json:"method"` CustomPayload *WebhookCustomPayload `json:"customPayload,omitempty"` }
func (*WebhookInput) UnmarshalJSON ¶
func (obj *WebhookInput) UnmarshalJSON(data []byte) error
type WebhookResults ¶
type WebhookResults struct { Links map[string]Link `json:"_links"` Page PageInformation `json:"page"` Items []Webhook }
func (*WebhookResults) UnmarshalJSON ¶
func (r *WebhookResults) UnmarshalJSON(data []byte) error