Documentation ¶
Index ¶
- Constants
- Variables
- func GetUserAgent() string
- type ApiBuildRequestBuilder
- type ApiBuildUploadRequestBuilder
- type ApiBuildUploadRequestMethodPost
- type ApiRequestBuilder
- type BuildMetadata
- type BuildUpload
- type BuildUploadResult
- type Client
- type ClientConfig
- type DataSourceConfiguration
- type DataSourceResponse
- type DataSources
- type Date
- type DecodeStruct
- type Environment
- type Error
- type Footer
- type FrontasticActionByNamespaceByActionRequestBuilder
- func (rb *FrontasticActionByNamespaceByActionRequestBuilder) Get() *FrontasticActionByNamespaceByActionRequestMethodGet
- func (rb *FrontasticActionByNamespaceByActionRequestBuilder) Post(body interface{}) *FrontasticActionByNamespaceByActionRequestMethodPost
- func (rb *FrontasticActionByNamespaceByActionRequestBuilder) Put(body interface{}) *FrontasticActionByNamespaceByActionRequestMethodPut
- type FrontasticActionByNamespaceByActionRequestMethodGet
- func (r *FrontasticActionByNamespaceByActionRequestMethodGet) Dump() map[string]interface{}
- func (rb *FrontasticActionByNamespaceByActionRequestMethodGet) Execute(ctx context.Context) (result *interface{}, err error)
- func (rb *FrontasticActionByNamespaceByActionRequestMethodGet) WithHeaders(headers http.Header) *FrontasticActionByNamespaceByActionRequestMethodGet
- type FrontasticActionByNamespaceByActionRequestMethodPost
- func (r *FrontasticActionByNamespaceByActionRequestMethodPost) Dump() map[string]interface{}
- func (rb *FrontasticActionByNamespaceByActionRequestMethodPost) Execute(ctx context.Context) (result *interface{}, err error)
- func (rb *FrontasticActionByNamespaceByActionRequestMethodPost) WithHeaders(headers http.Header) *FrontasticActionByNamespaceByActionRequestMethodPost
- type FrontasticActionByNamespaceByActionRequestMethodPut
- func (r *FrontasticActionByNamespaceByActionRequestMethodPut) Dump() map[string]interface{}
- func (rb *FrontasticActionByNamespaceByActionRequestMethodPut) Execute(ctx context.Context) (result *interface{}, err error)
- func (rb *FrontasticActionByNamespaceByActionRequestMethodPut) WithHeaders(headers http.Header) *FrontasticActionByNamespaceByActionRequestMethodPut
- type FrontasticActionRequestBuilder
- type FrontasticContextRequestBuilder
- type FrontasticContextRequestMethodGet
- type FrontasticDataSourceByIdentifierRequestBuilder
- type FrontasticDataSourceByIdentifierRequestMethodGet
- func (r *FrontasticDataSourceByIdentifierRequestMethodGet) Dump() map[string]interface{}
- func (rb *FrontasticDataSourceByIdentifierRequestMethodGet) Execute(ctx context.Context) (result *DataSourceResponse, err error)
- func (rb *FrontasticDataSourceByIdentifierRequestMethodGet) WithHeaders(headers http.Header) *FrontasticDataSourceByIdentifierRequestMethodGet
- type FrontasticDataSourceRequestBuilder
- type FrontasticPageRequestBuilder
- type FrontasticPageRequestMethodGet
- type FrontasticPreviewRequestBuilder
- type FrontasticPreviewRequestMethodGet
- func (r *FrontasticPreviewRequestMethodGet) Dump() map[string]interface{}
- func (rb *FrontasticPreviewRequestMethodGet) Execute(ctx context.Context) (result *PagePreviewDataResponse, err error)
- func (rb *FrontasticPreviewRequestMethodGet) Locale(v string) *FrontasticPreviewRequestMethodGet
- func (rb *FrontasticPreviewRequestMethodGet) PreviewId(v string) *FrontasticPreviewRequestMethodGet
- func (rb *FrontasticPreviewRequestMethodGet) WithHeaders(headers http.Header) *FrontasticPreviewRequestMethodGet
- func (rb *FrontasticPreviewRequestMethodGet) WithQueryParams(input FrontasticPreviewRequestMethodGetInput) *FrontasticPreviewRequestMethodGet
- type FrontasticPreviewRequestMethodGetInput
- type FrontasticRequestBuilder
- func (rb *FrontasticRequestBuilder) Action() *FrontasticActionRequestBuilder
- func (rb *FrontasticRequestBuilder) Context() *FrontasticContextRequestBuilder
- func (rb *FrontasticRequestBuilder) DataSource() *FrontasticDataSourceRequestBuilder
- func (rb *FrontasticRequestBuilder) Page() *FrontasticPageRequestBuilder
- func (rb *FrontasticRequestBuilder) Preview() *FrontasticPreviewRequestBuilder
- type GenericRequestError
- type Head
- type LayoutElement
- type LayoutElementConfiguration
- type Main
- type Page
- type PageDataResponse
- type PageFolder
- type PagePreviewContext
- type PagePreviewDataResponse
- type PathConfiguration
- type ProjectContext
- type RedirectResponse
- type Sections
- type SetUserAgentTransport
- type Tastic
- type TasticConfiguration
- type ViewData
Constants ¶
const Version = "1.5.0"
Version identifies the current library version. Should match the git tag
Variables ¶
var ErrNotFound = errors.New("resource not found")
Functions ¶
func GetUserAgent ¶
func GetUserAgent() string
Types ¶
type ApiBuildRequestBuilder ¶ added in v1.5.0
type ApiBuildRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ApiBuildRequestBuilder) Upload ¶ added in v1.5.0
func (rb *ApiBuildRequestBuilder) Upload() *ApiBuildUploadRequestBuilder
type ApiBuildUploadRequestBuilder ¶ added in v1.5.0
type ApiBuildUploadRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ApiBuildUploadRequestBuilder) Post ¶ added in v1.5.0
func (rb *ApiBuildUploadRequestBuilder) Post(body BuildUpload) *ApiBuildUploadRequestMethodPost
* * Uploads your backend builds from your custom CI environment to the Studio.
type ApiBuildUploadRequestMethodPost ¶ added in v1.5.0
type ApiBuildUploadRequestMethodPost struct {
// contains filtered or unexported fields
}
func (*ApiBuildUploadRequestMethodPost) Dump ¶ added in v1.5.0
func (r *ApiBuildUploadRequestMethodPost) Dump() map[string]interface{}
func (*ApiBuildUploadRequestMethodPost) Execute ¶ added in v1.5.0
func (rb *ApiBuildUploadRequestMethodPost) Execute(ctx context.Context) (result *interface{}, err error)
* * Uploads your backend builds from your custom CI environment to the Studio.
func (*ApiBuildUploadRequestMethodPost) WithHeaders ¶ added in v1.5.0
func (rb *ApiBuildUploadRequestMethodPost) WithHeaders(headers http.Header) *ApiBuildUploadRequestMethodPost
type ApiRequestBuilder ¶ added in v1.5.0
type ApiRequestBuilder struct {
// contains filtered or unexported fields
}
func (*ApiRequestBuilder) Build ¶ added in v1.5.0
func (rb *ApiRequestBuilder) Build() *ApiBuildRequestBuilder
type BuildMetadata ¶ added in v1.5.0
type BuildMetadata struct { // Name of the Git branch to deploy. Branch string `json:"branch"` // Full commit ID hash of the current HEAD. Revision string `json:"revision"` // Current time represented in the format `YYYY.MM.DD.HH.mm`. This value should be unique and sortable. VersionNumber string `json:"versionNumber"` // Node.js version for the [Extension runner](/../frontend-getting-started/development-concepts#extension-runner). NodeJsVersion *int `json:"nodeJsVersion,omitempty"` // If `true`, the build is marked as successful and [displayed in the Studio](/../frontend-studio/using-deployment-in-the-studio). BuildSuccessful bool `json:"buildSuccessful"` // Date and time of the build in the [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) format. For example, `2023-11-21T08:14:31.830Z`. BuildTime string `json:"buildTime"` // Build duration in seconds. BuildDuration int `json:"buildDuration"` // CI execution logs. BuildLog string `json:"buildLog"` // If `true`, the build is automatically deployed to the staging environment, if `buildSuccessful` is `true`. Deploy *bool `json:"deploy,omitempty"` }
type BuildUpload ¶ added in v1.5.0
type BuildUpload struct { // Metadata about the build. Metadata BuildMetadata `json:"metadata"` // Javascript bundle containing all code of the backend extensions. Extension io.Reader `json:"extension"` // Map for the build file. When provided, exceptions will be logged with readable stack traces. ExtensionMap *io.Reader `json:"extension_map,omitempty"` }
type BuildUploadResult ¶ added in v1.5.0
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg *ClientConfig) (*Client, error)
NewClient creates a new client based on the provided ClientConfig
func (*Client) Api ¶ added in v1.5.0
func (c *Client) Api() *ApiRequestBuilder
func (*Client) Frontastic ¶
func (c *Client) Frontastic() *FrontasticRequestBuilder
type ClientConfig ¶
type DataSourceConfiguration ¶
type DataSourceResponse ¶
type DataSourceResponse struct { DataSourcePayload interface{} `json:"dataSourcePayload"` PreviewPayload interface{} `json:"previewPayload"` }
type DataSources ¶
type DataSources map[string]interface{}
* * Object containing the data sources configured for the page folder and referenced in the page.
type Date ¶
Date holds date information for Commercetools API format
func (*Date) MarshalJSON ¶
MarshalJSON marshals into the commercetools date format
func (*Date) UnmarshalJSON ¶
UnmarshalJSON decodes JSON data into a Date struct
type DecodeStruct ¶
type Environment ¶
type Environment string
const ( EnvironmentProduction Environment = "production" EnvironmentDevelopment Environment = "development" )
type FrontasticActionByNamespaceByActionRequestBuilder ¶
type FrontasticActionByNamespaceByActionRequestBuilder struct {
// contains filtered or unexported fields
}
func (*FrontasticActionByNamespaceByActionRequestBuilder) Get ¶
func (rb *FrontasticActionByNamespaceByActionRequestBuilder) Get() *FrontasticActionByNamespaceByActionRequestMethodGet
* * Use the GET method to allow the frontend to fetch data from a backend system. For the response, we recommend to use standard HTTP codes and `application/json` encoded content. The response will be structured [as defined by the `body` property of the action](/../frontend-development/developing-an-action-extension#1-implement-the-action). The following response example contains information about a cart.
func (*FrontasticActionByNamespaceByActionRequestBuilder) Post ¶
func (rb *FrontasticActionByNamespaceByActionRequestBuilder) Post(body interface{}) *FrontasticActionByNamespaceByActionRequestMethodPost
* * Use the POST method to write data to a backend system. Any JSON serializable payload is accepted. The following request example adds a product to a cart. For the response, we recommend to use standard HTTP codes and `application/json` encoded content. The response will be structured [as defined by the `body` property of the action](/../frontend-development/developing-an-action-extension#1-implement-the-action). The following response example contains the updated cart information, which includes the added product.
func (*FrontasticActionByNamespaceByActionRequestBuilder) Put ¶
func (rb *FrontasticActionByNamespaceByActionRequestBuilder) Put(body interface{}) *FrontasticActionByNamespaceByActionRequestMethodPut
* * Use the PUT method to write data to a backend system. Any JSON serializable payload is accepted. The following request example adds a product to a cart. For the response, we recommend to use standard HTTP codes and `application/json` encoded content. The response will be structured [as defined by the `body` property of the action](/../frontend-development/developing-an-action-extension#1-implement-the-action). The following response example contains the updated cart information, which includes the added product.
type FrontasticActionByNamespaceByActionRequestMethodGet ¶
type FrontasticActionByNamespaceByActionRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*FrontasticActionByNamespaceByActionRequestMethodGet) Dump ¶
func (r *FrontasticActionByNamespaceByActionRequestMethodGet) Dump() map[string]interface{}
func (*FrontasticActionByNamespaceByActionRequestMethodGet) Execute ¶
func (rb *FrontasticActionByNamespaceByActionRequestMethodGet) Execute(ctx context.Context) (result *interface{}, err error)
* * Use the GET method to allow the frontend to fetch data from a backend system. For the response, we recommend to use standard HTTP codes and `application/json` encoded content. The response will be structured [as defined by the `body` property of the action](/../frontend-development/developing-an-action-extension#1-implement-the-action). The following response example contains information about a cart.
func (*FrontasticActionByNamespaceByActionRequestMethodGet) WithHeaders ¶
func (rb *FrontasticActionByNamespaceByActionRequestMethodGet) WithHeaders(headers http.Header) *FrontasticActionByNamespaceByActionRequestMethodGet
type FrontasticActionByNamespaceByActionRequestMethodPost ¶
type FrontasticActionByNamespaceByActionRequestMethodPost struct {
// contains filtered or unexported fields
}
func (*FrontasticActionByNamespaceByActionRequestMethodPost) Dump ¶
func (r *FrontasticActionByNamespaceByActionRequestMethodPost) Dump() map[string]interface{}
func (*FrontasticActionByNamespaceByActionRequestMethodPost) Execute ¶
func (rb *FrontasticActionByNamespaceByActionRequestMethodPost) Execute(ctx context.Context) (result *interface{}, err error)
* * Use the POST method to write data to a backend system. Any JSON serializable payload is accepted. The following request example adds a product to a cart. For the response, we recommend to use standard HTTP codes and `application/json` encoded content. The response will be structured [as defined by the `body` property of the action](/../frontend-development/developing-an-action-extension#1-implement-the-action). The following response example contains the updated cart information, which includes the added product.
func (*FrontasticActionByNamespaceByActionRequestMethodPost) WithHeaders ¶
func (rb *FrontasticActionByNamespaceByActionRequestMethodPost) WithHeaders(headers http.Header) *FrontasticActionByNamespaceByActionRequestMethodPost
type FrontasticActionByNamespaceByActionRequestMethodPut ¶
type FrontasticActionByNamespaceByActionRequestMethodPut struct {
// contains filtered or unexported fields
}
func (*FrontasticActionByNamespaceByActionRequestMethodPut) Dump ¶
func (r *FrontasticActionByNamespaceByActionRequestMethodPut) Dump() map[string]interface{}
func (*FrontasticActionByNamespaceByActionRequestMethodPut) Execute ¶
func (rb *FrontasticActionByNamespaceByActionRequestMethodPut) Execute(ctx context.Context) (result *interface{}, err error)
* * Use the PUT method to write data to a backend system. Any JSON serializable payload is accepted. The following request example adds a product to a cart. For the response, we recommend to use standard HTTP codes and `application/json` encoded content. The response will be structured [as defined by the `body` property of the action](/../frontend-development/developing-an-action-extension#1-implement-the-action). The following response example contains the updated cart information, which includes the added product.
func (*FrontasticActionByNamespaceByActionRequestMethodPut) WithHeaders ¶
func (rb *FrontasticActionByNamespaceByActionRequestMethodPut) WithHeaders(headers http.Header) *FrontasticActionByNamespaceByActionRequestMethodPut
type FrontasticActionRequestBuilder ¶
type FrontasticActionRequestBuilder struct {
// contains filtered or unexported fields
}
func (*FrontasticActionRequestBuilder) WithNamespaceValueWithActionValue ¶
func (rb *FrontasticActionRequestBuilder) WithNamespaceValueWithActionValue(namespace string, action string) *FrontasticActionByNamespaceByActionRequestBuilder
type FrontasticContextRequestBuilder ¶
type FrontasticContextRequestBuilder struct {
// contains filtered or unexported fields
}
func (*FrontasticContextRequestBuilder) Get ¶
func (rb *FrontasticContextRequestBuilder) Get() *FrontasticContextRequestMethodGet
* * Returns information about the project locales setup and the environment in which the requested host acts in. \ * * Headers: * * - `Accept` - `application/json` - Required *
type FrontasticContextRequestMethodGet ¶
type FrontasticContextRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*FrontasticContextRequestMethodGet) Dump ¶
func (r *FrontasticContextRequestMethodGet) Dump() map[string]interface{}
func (*FrontasticContextRequestMethodGet) Execute ¶
func (rb *FrontasticContextRequestMethodGet) Execute(ctx context.Context) (result *ProjectContext, err error)
* * Returns information about the project locales setup and the environment in which the requested host acts in. \ * * Headers: * * - `Accept` - `application/json` - Required *
func (*FrontasticContextRequestMethodGet) WithHeaders ¶
func (rb *FrontasticContextRequestMethodGet) WithHeaders(headers http.Header) *FrontasticContextRequestMethodGet
type FrontasticDataSourceByIdentifierRequestBuilder ¶
type FrontasticDataSourceByIdentifierRequestBuilder struct {
// contains filtered or unexported fields
}
func (*FrontasticDataSourceByIdentifierRequestBuilder) Get ¶
func (rb *FrontasticDataSourceByIdentifierRequestBuilder) Get(body interface{}) *FrontasticDataSourceByIdentifierRequestMethodGet
* * Returns data and preview from the data source.
type FrontasticDataSourceByIdentifierRequestMethodGet ¶
type FrontasticDataSourceByIdentifierRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*FrontasticDataSourceByIdentifierRequestMethodGet) Dump ¶
func (r *FrontasticDataSourceByIdentifierRequestMethodGet) Dump() map[string]interface{}
func (*FrontasticDataSourceByIdentifierRequestMethodGet) Execute ¶
func (rb *FrontasticDataSourceByIdentifierRequestMethodGet) Execute(ctx context.Context) (result *DataSourceResponse, err error)
* * Returns data and preview from the data source.
func (*FrontasticDataSourceByIdentifierRequestMethodGet) WithHeaders ¶
func (rb *FrontasticDataSourceByIdentifierRequestMethodGet) WithHeaders(headers http.Header) *FrontasticDataSourceByIdentifierRequestMethodGet
type FrontasticDataSourceRequestBuilder ¶
type FrontasticDataSourceRequestBuilder struct {
// contains filtered or unexported fields
}
func (*FrontasticDataSourceRequestBuilder) WithIdentifierValue ¶
func (rb *FrontasticDataSourceRequestBuilder) WithIdentifierValue(identifier string) *FrontasticDataSourceByIdentifierRequestBuilder
type FrontasticPageRequestBuilder ¶
type FrontasticPageRequestBuilder struct {
// contains filtered or unexported fields
}
func (*FrontasticPageRequestBuilder) Get ¶
func (rb *FrontasticPageRequestBuilder) Get() *FrontasticPageRequestMethodGet
* * Returns the structure and data of the published page displayed from commercetools Frontend. \ * * Headers: * * - `Frontastic-Path` - `^/.*$` - Required * - `Accept` - `application/json` - Required * - `Frontastic-Locale` - [Locale](ctp:frontend-api:type:Locale) - Required *
type FrontasticPageRequestMethodGet ¶
type FrontasticPageRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*FrontasticPageRequestMethodGet) Dump ¶
func (r *FrontasticPageRequestMethodGet) Dump() map[string]interface{}
func (*FrontasticPageRequestMethodGet) Execute ¶
func (rb *FrontasticPageRequestMethodGet) Execute(ctx context.Context) (result *PageDataResponse, err error)
* * Returns the structure and data of the published page displayed from commercetools Frontend. \ * * Headers: * * - `Frontastic-Path` - `^/.*$` - Required * - `Accept` - `application/json` - Required * - `Frontastic-Locale` - [Locale](ctp:frontend-api:type:Locale) - Required *
func (*FrontasticPageRequestMethodGet) WithHeaders ¶
func (rb *FrontasticPageRequestMethodGet) WithHeaders(headers http.Header) *FrontasticPageRequestMethodGet
type FrontasticPreviewRequestBuilder ¶
type FrontasticPreviewRequestBuilder struct {
// contains filtered or unexported fields
}
func (*FrontasticPreviewRequestBuilder) Get ¶
func (rb *FrontasticPreviewRequestBuilder) Get() *FrontasticPreviewRequestMethodGet
* * Returns the page structure and data for a specific [preview](/../frontend-studio/using-the-page-builder) by its `previewId`. \ * * Headers: * * - `Accept` - `application/json` - Required *
type FrontasticPreviewRequestMethodGet ¶
type FrontasticPreviewRequestMethodGet struct {
// contains filtered or unexported fields
}
func (*FrontasticPreviewRequestMethodGet) Dump ¶
func (r *FrontasticPreviewRequestMethodGet) Dump() map[string]interface{}
func (*FrontasticPreviewRequestMethodGet) Execute ¶
func (rb *FrontasticPreviewRequestMethodGet) Execute(ctx context.Context) (result *PagePreviewDataResponse, err error)
* * Returns the page structure and data for a specific [preview](/../frontend-studio/using-the-page-builder) by its `previewId`. \ * * Headers: * * - `Accept` - `application/json` - Required *
func (*FrontasticPreviewRequestMethodGet) Locale ¶
func (rb *FrontasticPreviewRequestMethodGet) Locale(v string) *FrontasticPreviewRequestMethodGet
func (*FrontasticPreviewRequestMethodGet) PreviewId ¶
func (rb *FrontasticPreviewRequestMethodGet) PreviewId(v string) *FrontasticPreviewRequestMethodGet
func (*FrontasticPreviewRequestMethodGet) WithHeaders ¶
func (rb *FrontasticPreviewRequestMethodGet) WithHeaders(headers http.Header) *FrontasticPreviewRequestMethodGet
func (*FrontasticPreviewRequestMethodGet) WithQueryParams ¶
func (rb *FrontasticPreviewRequestMethodGet) WithQueryParams(input FrontasticPreviewRequestMethodGetInput) *FrontasticPreviewRequestMethodGet
type FrontasticPreviewRequestMethodGetInput ¶
func (*FrontasticPreviewRequestMethodGetInput) Values ¶
func (input *FrontasticPreviewRequestMethodGetInput) Values() url.Values
type FrontasticRequestBuilder ¶
type FrontasticRequestBuilder struct {
// contains filtered or unexported fields
}
func (*FrontasticRequestBuilder) Action ¶
func (rb *FrontasticRequestBuilder) Action() *FrontasticActionRequestBuilder
func (*FrontasticRequestBuilder) Context ¶
func (rb *FrontasticRequestBuilder) Context() *FrontasticContextRequestBuilder
func (*FrontasticRequestBuilder) DataSource ¶
func (rb *FrontasticRequestBuilder) DataSource() *FrontasticDataSourceRequestBuilder
func (*FrontasticRequestBuilder) Page ¶
func (rb *FrontasticRequestBuilder) Page() *FrontasticPageRequestBuilder
func (*FrontasticRequestBuilder) Preview ¶
func (rb *FrontasticRequestBuilder) Preview() *FrontasticPreviewRequestBuilder
type GenericRequestError ¶
func (GenericRequestError) Error ¶
func (e GenericRequestError) Error() string
type Head ¶
type Head struct {
LayoutElements []LayoutElement `json:"layoutElements"`
}
type LayoutElement ¶
type LayoutElement struct { LayoutElementId string `json:"layoutElementId"` Configuration LayoutElementConfiguration `json:"configuration"` Tastics []Tastic `json:"tastics"` }
type Main ¶
type Main struct {
LayoutElements []LayoutElement `json:"layoutElements"`
}
type Page ¶
type Page struct { PageId string `json:"pageId"` Sections Sections `json:"sections"` State string `json:"state"` }
* * Page represents the structure and data of the published page displayed through commercetools Frontend. *
type PageDataResponse ¶
type PageDataResponse struct { PageFolder PageFolder `json:"pageFolder"` // Page represents the structure and data of the published page displayed through commercetools Frontend. Page Page `json:"page"` Data ViewData `json:"data"` }
type PageFolder ¶
type PageFolder struct { PageFolderId string `json:"pageFolderId"` IsDynamic bool `json:"isDynamic"` PageFolderType string `json:"pageFolderType"` Configuration interface{} `json:"configuration"` DataSourceConfigurations []DataSourceConfiguration `json:"dataSourceConfigurations"` Name *string `json:"name,omitempty"` AncestorIdsMaterializedPath string `json:"ancestorIdsMaterializedPath"` Depth float64 `json:"depth"` Sort float64 `json:"sort"` }
type PagePreviewContext ¶
type PagePreviewContext struct {
CustomerName string `json:"customerName"`
}
type PagePreviewDataResponse ¶
type PagePreviewDataResponse struct { PageFolder PageFolder `json:"pageFolder"` // Page represents the structure and data of the published page displayed through commercetools Frontend. Page Page `json:"page"` Data ViewData `json:"data"` PreviewId string `json:"previewId"` PreviewContext PagePreviewContext `json:"previewContext"` }
type PathConfiguration ¶
type ProjectContext ¶
type ProjectContext struct { // Indicates whether the project is intended as production or development environment. Environment Environment `json:"environment"` // Locales that can be used in the project. Locales []string `json:"locales"` // Locale used by default in the project. DefaultLocale string `json:"defaultLocale"` }
type RedirectResponse ¶
type SetUserAgentTransport ¶
type SetUserAgentTransport struct { T http.RoundTripper // contains filtered or unexported fields }
type Tastic ¶
type Tastic struct { TasticId string `json:"tasticId"` TasticType string `json:"tasticType"` Configuration TasticConfiguration `json:"configuration"` }
type TasticConfiguration ¶
type ViewData ¶
type ViewData struct { // Data sources configured for the page folder and referenced in the page. They are indexed by data source identifier. DataSources DataSources `json:"dataSources"` }
Source Files ¶
- client.go
- client_action_frontastic_action.go
- client_action_frontastic_action_by_namespace_by_action.go
- client_action_frontastic_action_by_namespace_by_action_get.go
- client_action_frontastic_action_by_namespace_by_action_post.go
- client_action_frontastic_action_by_namespace_by_action_put.go
- client_api_api.go
- client_api_root.go
- client_build_api_build.go
- client_context_frontastic_context.go
- client_context_frontastic_context_get.go
- client_data_source_frontastic_data_source.go
- client_data_source_frontastic_data_source_by_identifier.go
- client_data_source_frontastic_data_source_by_identifier_get.go
- client_frontastic_frontastic.go
- client_page_frontastic_page.go
- client_page_frontastic_page_get.go
- client_preview_frontastic_preview.go
- client_preview_frontastic_preview_get.go
- client_upload_api_build_upload.go
- client_upload_api_build_upload_post.go
- date.go
- errors.go
- types_common.go
- utils.go