Documentation
¶
Index ¶
- Constants
- type StaticfileConfig
- type StaticfileProvider
- func (p *StaticfileProvider) CleansePlan(buildPlan *plan.BuildPlan)
- func (p *StaticfileProvider) Detect(ctx *generate.GenerateContext) (bool, error)
- func (p *StaticfileProvider) Initialize(ctx *generate.GenerateContext) error
- func (p *StaticfileProvider) Name() string
- func (p *StaticfileProvider) Plan(ctx *generate.GenerateContext) error
- func (p *StaticfileProvider) StartCommandHelp() string
Constants ¶
View Source
const ( StaticfileConfigName = "Staticfile" CaddyfilePath = "Caddyfile" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticfileConfig ¶
type StaticfileConfig struct {
RootDir string `yaml:"root"`
// IndexFallback controls whether to fall back to index.html for unmatched routes (default: true)
IndexFallback *bool `yaml:"index_fallback"`
}
Staticfile in a directory is parsed into this structure
type StaticfileProvider ¶
type StaticfileProvider struct{}
func (*StaticfileProvider) CleansePlan ¶ added in v0.13.0
func (p *StaticfileProvider) CleansePlan(buildPlan *plan.BuildPlan)
func (*StaticfileProvider) Detect ¶
func (p *StaticfileProvider) Detect(ctx *generate.GenerateContext) (bool, error)
func (*StaticfileProvider) Initialize ¶ added in v0.0.23
func (p *StaticfileProvider) Initialize(ctx *generate.GenerateContext) error
func (*StaticfileProvider) Name ¶
func (p *StaticfileProvider) Name() string
func (*StaticfileProvider) Plan ¶
func (p *StaticfileProvider) Plan(ctx *generate.GenerateContext) error
func (*StaticfileProvider) StartCommandHelp ¶ added in v0.0.28
func (p *StaticfileProvider) StartCommandHelp() string
Click to show internal directories.
Click to hide internal directories.