cfg

package
v0.0.0-...-9cff73d Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Source          string     `hcl:"source,optional"`
	IncludeDotfiles bool       `hcl:"include_dotfiles,optional"`
	Ignore          []string   `hcl:"ignore,optional"`
	Metadata        []Metadata `hcl:"metadata,block"`
	Redirects       bool       `hcl:"redirects,optional"`
	TrimSuffix      []string   `hcl:"trim_suffix,optional"`
	// contains filtered or unexported fields
}

func Parse

func Parse(path string) (Config, error)

func (Config) SourceClean

func (c Config) SourceClean() string

type Metadata

type Metadata struct {
	Pattern      string  `hcl:"type,label"`
	ContentType  *string `hcl:"content_type"`
	CacheControl *string `hcl:"cache_control"`
}

Jump to

Keyboard shortcuts

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