Documentation ¶
Overview ¶
Package factory ...
Package factory ...
Package factory ...
Package factory ...
Package factory ...
Package factory ...
Package factory ...
Package factory ...
Package factory ...
Index ¶
- type Artifact
- func NewContentArtifact(efs *embed.FS, fs afero.Fs) *Artifact
- func NewMenuArtifact(efs *embed.FS, fs afero.Fs) *Artifact
- func NewMetadataArtifact(efs *embed.FS, fs afero.Fs) *Artifact
- func NewNoPageArtifact(efs *embed.FS, fs afero.Fs) *Artifact
- func NewPageArtifact(efs *embed.FS, fs afero.Fs) *Artifact
- func NewProjectArtifact(efs *embed.FS, fs afero.Fs) *Artifact
- func NewResourceArtifact(efs *embed.FS, fs afero.Fs) *Artifact
- func NewThemeArtifact(efs *embed.FS, fs afero.Fs) *Artifact
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
Artifact is the struct with all is needed to define a sveltin's artifact.
func NewContentArtifact ¶
NewContentArtifact create an Artifact struct.
func NewMenuArtifact ¶
NewMenuArtifact create an Artifact struct.
func NewMetadataArtifact ¶
NewMetadataArtifact create an Artifact struct.
func NewNoPageArtifact ¶
NewNoPageArtifact create an Artifact struct.
func NewPageArtifact ¶
NewPageArtifact create an Artifact struct.
func NewProjectArtifact ¶
NewProjectArtifact create an Artifact struct.
func NewResourceArtifact ¶
NewResourceArtifact create an Artifact struct.
func NewThemeArtifact ¶
NewThemeArtifact create an Artifact struct.
func (*Artifact) CreateFolder ¶
CreateFolder wraps Mkdir to create a folders structure on the file system.
func (*Artifact) GetBuilder ¶
GetBuilder returns the builder name used by the Artifact as string.
func (*Artifact) GetEFS ¶
GetEFS returns a pointer to the embedded file system used by the Artifect.
func (*Artifact) GetResources ¶
GetResources returns the map representing the resources for the sveltin project.
func (*Artifact) GetTemplateData ¶
func (sf *Artifact) GetTemplateData() *config.TemplateData
GetTemplateData returns a pointer to the TemplateData struct used by the Artifact.