factory

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package factory ...

Package factory ...

Package factory ...

Package factory ...

Package factory ...

Package factory ...

Package factory ...

Package factory ...

Package factory ...

Index

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

func NewContentArtifact(efs *embed.FS, fs afero.Fs) *Artifact

NewContentArtifact create an Artifact struct.

func NewMenuArtifact

func NewMenuArtifact(efs *embed.FS, fs afero.Fs) *Artifact

NewMenuArtifact create an Artifact struct.

func NewMetadataArtifact

func NewMetadataArtifact(efs *embed.FS, fs afero.Fs) *Artifact

NewMetadataArtifact create an Artifact struct.

func NewNoPageArtifact

func NewNoPageArtifact(efs *embed.FS, fs afero.Fs) *Artifact

NewNoPageArtifact create an Artifact struct.

func NewPageArtifact

func NewPageArtifact(efs *embed.FS, fs afero.Fs) *Artifact

NewPageArtifact create an Artifact struct.

func NewProjectArtifact

func NewProjectArtifact(efs *embed.FS, fs afero.Fs) *Artifact

NewProjectArtifact create an Artifact struct.

func NewResourceArtifact

func NewResourceArtifact(efs *embed.FS, fs afero.Fs) *Artifact

NewResourceArtifact create an Artifact struct.

func NewThemeArtifact

func NewThemeArtifact(efs *embed.FS, fs afero.Fs) *Artifact

NewThemeArtifact create an Artifact struct.

func (*Artifact) CreateFolder

func (sf *Artifact) CreateFolder(x ...string) error

CreateFolder wraps Mkdir to create a folders structure on the file system.

func (*Artifact) GetBuilder

func (sf *Artifact) GetBuilder() string

GetBuilder returns the builder name used by the Artifact as string.

func (*Artifact) GetEFS

func (sf *Artifact) GetEFS() *embed.FS

GetEFS returns a pointer to the embedded file system used by the Artifect.

func (*Artifact) GetFS

func (sf *Artifact) GetFS() afero.Fs

GetFS returns the afero.Fs implementation used by the Artifact.

func (*Artifact) GetResources

func (sf *Artifact) GetResources() map[string]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL