Documentation ¶
Index ¶
- Variables
- func IsShopwareVersion(projectRoot string, requiredVersion string) (bool, error)
- func NewShopClient(ctx context.Context, config *Config) (*adminSdk.Client, error)
- func NewUuid() string
- type Config
- type ConfigAdminApi
- type ConfigBuild
- type ConfigDump
- type ConfigSync
- type ConfigSyncConfig
- type EntitySync
- type MailTemplate
- type MailTemplateTranslation
- type ThemeConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoComposerFileFound = errors.New("could not determine Shopware version as no composer.json or composer.lock file was found") ErrShopwareDependencyNotFound = errors.New("could not determine Shopware version as no shopware/core dependency was found") )
Functions ¶
func IsShopwareVersion ¶
func NewShopClient ¶
Types ¶
type Config ¶
type Config struct { AdditionalConfigs []string `yaml:"include,omitempty"` URL string `yaml:"url"` Build *ConfigBuild `yaml:"build,omitempty"` AdminApi *ConfigAdminApi `yaml:"admin_api,omitempty"` ConfigDump *ConfigDump `yaml:"dump,omitempty"` Sync *ConfigSync `yaml:"sync,omitempty"` // contains filtered or unexported fields }
func (Config) IsFallback ¶
type ConfigAdminApi ¶
type ConfigBuild ¶
type ConfigBuild struct { DisableAssetCopy bool `yaml:"disable_asset_copy,omitempty"` RemoveExtensionAssets bool `yaml:"remove_extension_assets,omitempty"` KeepExtensionSource bool `yaml:"keep_extension_source,omitempty"` KeepSourceMaps bool `yaml:"keep_source_maps,omitempty"` CleanupPaths []string `yaml:"cleanup_paths,omitempty"` Browserslist string `yaml:"browserslist,omitempty"` ExcludeExtensions []string `yaml:"exclude_extensions,omitempty"` }
type ConfigDump ¶
type ConfigSync ¶
type ConfigSync struct { Config []ConfigSyncConfig `yaml:"config"` Theme []ThemeConfig `yaml:"theme"` MailTemplate []MailTemplate `yaml:"mail_template"` Entity []EntitySync `yaml:"entity"` }
type ConfigSyncConfig ¶
type EntitySync ¶
type MailTemplate ¶
type MailTemplate struct { Id string `yaml:"id"` Translations []MailTemplateTranslation `yaml:"translations"` }
type MailTemplateTranslation ¶
type ThemeConfig ¶
type ThemeConfig struct { Name string `yaml:"name"` Settings map[string]adminSdk.ThemeConfigValue `yaml:"settings"` }
Click to show internal directories.
Click to hide internal directories.