Documentation
¶
Overview ¶
Manages the lifecycle of configuration folders for nginx
Index ¶
- Constants
- type Config
- func (c *Config) Create(name string, body []byte) error
- func (c *Config) Delete(name string) error
- func (c *Config) Disable(name string) error
- func (c *Config) Enable(name string) error
- func (c *Config) Reload() error
- func (c *Config) Render(name string) ([]byte, error)
- func (c Config) String() string
- func (c *Config) Template(name string) *Template
- func (c *Config) Templates() []*Template
- func (c *Config) Write(name string, body []byte) error
- type File
- type Folder
- type Template
Constants ¶
View Source
const ( R_OK = 4 W_OK = 2 X_OK = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Available *Folder
Enabled *Folder
Ext string
Recursive bool
DirMode os.FileMode
}
Config represents the set of files in the available and enabled folders
type File ¶
type File struct {
// Prefix
Prefix string
// Path to the file
Path string
// Hash of the file contents
Hash string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.