confd

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2013 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindConfigs

func FindConfigs(confDir string) ([]string, error)

func IsFileExist

func IsFileExist(fpath string) bool

func SameFile

func SameFile(src, dest string) (error, bool)

Types

type Config

type Config struct {
	Path     string
	Template Template
}

func NewConfig

func NewConfig(path string) (*Config, error)

func (*Config) Process

func (c *Config) Process() error

type FileInfo

type FileInfo struct {
	Uid  uint32
	Gid  uint32
	Mode uint32
	Md5  string
}

func FileStat

func FileStat(name string) (fi FileInfo, err error)

type Template

type Template struct {
	Dest      string
	Gid       int
	Keys      []string
	Mode      string
	Uid       int
	ReloadCmd string `toml:"reload_cmd"`
	CheckCmd  string `toml:"check_cmd"`
	StageFile *os.File
	Src       string
	Vars      map[string]interface{}
}

func (*Template) Process

func (t *Template) Process() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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