Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileScanner ¶
type FileScanner interface {
ListThemeFiles(ctx context.Context, themePath string) ([]*dto.ThemeFile, error)
}
func NewFileScanner ¶
func NewFileScanner() FileScanner
type PropertyScanner ¶
type PropertyScanner interface { ListAll(ctx context.Context, themeRootPath string) ([]*dto.ThemeProperty, error) GetThemeByThemeID(ctx context.Context, themeID string) (*dto.ThemeProperty, error) ReadThemeProperty(ctx context.Context, themePath string) (*dto.ThemeProperty, error) ReadThemeConfig(ctx context.Context, themePath string) ([]*dto.ThemeConfigGroup, error) UnmarshalProperty(ctx context.Context, themePropertyContent []byte) (*dto.ThemeProperty, error) UnmarshalConfig(ctx context.Context, themeSettingContent []byte) ([]*dto.ThemeConfigGroup, error) }
func NewPropertyScanner ¶
func NewPropertyScanner(config *config.Config) PropertyScanner
type ThemeFetcher ¶ added in v1.1.2
type ThemeFetcher interface {
FetchTheme(ctx context.Context, file interface{}) (*dto.ThemeProperty, error)
}
func NewGitThemeFetcher ¶ added in v1.1.2
func NewGitThemeFetcher(propertyScanner PropertyScanner) ThemeFetcher
func NewMultipartZipThemeFetcher ¶
func NewMultipartZipThemeFetcher(propertyScanner PropertyScanner) ThemeFetcher
Click to show internal directories.
Click to hide internal directories.