Documentation
¶
Index ¶
- Variables
- type Config
- type Legacy
- type Resources
- type Server
- type Settings
- func (s Settings) Create(path string, name string) *os.File
- func (s Settings) Fatal(err error, msg ...interface{})
- func (s *Settings) Flimit() error
- func (s Settings) Name(name string, path string) string
- func (s Settings) Path(path string) string
- func (s *Settings) Read(out interface{}) error
- func (s *Settings) Record(out interface{}) error
- func (s *Settings) Remove() error
- func (s Settings) Stream(file string) ([]byte, error)
- func (s Settings) Validate(err error) error
- func (s Settings) Wdir() string
- func (s Settings) Write(name string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Dir = ".realize/"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Create bool `yaml:"-" json:"-"` Flimit int64 `yaml:"flimit,omitempty" json:"flimit,omitempty"` Legacy `yaml:"legacy,omitempty" json:"legacy,omitempty"` }
Config defines structural options
type Legacy ¶ added in v1.4.1
type Legacy struct { Status bool `yaml:"status" json:"status"` Interval time.Duration `yaml:"interval" json:"interval"` }
Legacy configuration
type Resources ¶
type Resources struct { Config string `yaml:"-" json:"-"` Outputs string `yaml:"outputs" json:"outputs"` Logs string `yaml:"logs" json:"log"` Errors string `yaml:"errors" json:"error"` }
Resources defines the files generated by realize
type Server ¶
type Server struct { Status bool `yaml:"status" json:"status"` Open bool `yaml:"open" json:"open"` Host string `yaml:"host" json:"host"` Port int `yaml:"port" json:"port"` }
Server settings, used for the web panel
type Settings ¶
type Settings struct { Config `yaml:",inline" json:"config"` Resources `yaml:"resources" json:"resources"` Server `yaml:"server,omitempty" json:"server,omitempty"` }
Settings defines a group of general settings
Click to show internal directories.
Click to hide internal directories.