Documentation
¶
Index ¶
- Constants
- func GetNetlifyConfigPath(base string) (path string, err error)
- func Save(conf *NetlifyToml) error
- func SaveTo(conf *NetlifyToml, path string) error
- type BuildConfig
- type DeployContext
- type FoundNoConfigPathError
- type NetlifyToml
- type Plugin
- type Redirect
- type RedirectCondition
- type Settings
Constants ¶
View Source
const DefaultFilename = "netlify.toml"
Variables ¶
This section is empty.
Functions ¶
func GetNetlifyConfigPath ¶
func Save ¶
func Save(conf *NetlifyToml) error
func SaveTo ¶
func SaveTo(conf *NetlifyToml, path string) error
Types ¶
type BuildConfig ¶
type DeployContext ¶
type DeployContext struct {
BuildConfig `yaml:",inline"`
}
type FoundNoConfigPathError ¶
type FoundNoConfigPathError struct {
// contains filtered or unexported fields
}
func (*FoundNoConfigPathError) Error ¶
func (f *FoundNoConfigPathError) Error() string
type NetlifyToml ¶
type NetlifyToml struct { Settings Settings `toml:"settings"` Redirects []Redirect `toml:"redirects,omitempty"` // this is the default context Build *BuildConfig `toml:"build"` Plugins []Plugin `toml:"plugins"` Context map[string]DeployContext `toml:"context,omitempty"` }
func Load ¶
func Load() (*NetlifyToml, error)
func LoadFrom ¶
func LoadFrom(paths ...string) (*NetlifyToml, error)
type RedirectCondition ¶
Click to show internal directories.
Click to hide internal directories.