Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigFileName = "netlify.toml"
Variables ¶
This section is empty.
Functions ¶
func Save ¶
func Save(configFile string, conf *Configuration) error
Types ¶
type Configuration ¶
type Configuration struct {
Settings Settings
Build Context
Redirects []Redirect
// contains filtered or unexported fields
}
func Load ¶
func Load(configFile string) (*Configuration, error)
func (Configuration) CopyConfigFile ¶ added in v0.4.0
func (c Configuration) CopyConfigFile(pubPath string) (string, error)
CopyConfigFile will copy over the toml file if there isn't one already in the publish path. That means a user can create the file there and we won't override it
func (Configuration) ExistConfFile ¶ added in v0.4.0
func (c Configuration) ExistConfFile() bool
func (Configuration) Root ¶ added in v0.0.2
func (c Configuration) Root() string
Click to show internal directories.
Click to hide internal directories.