Documentation ¶
Index ¶
- func NormalizeFilesystemPath(abs bool, appName string) func(*Opt) error
- func NormalizeNetworkAddress(defaultPort string, userOnly bool) func(*Opt) error
- type Hook
- type Opt
- func (o *Opt) Expanded() (s string)
- func (o *Opt) FromString(s string) (e error)
- func (o *Opt) FromValue(v []string) *Opt
- func (o *Opt) Meta() meta.Metadata
- func (o *Opt) Path() (p path.Path)
- func (o *Opt) RunHooks() (e error)
- func (o *Opt) SetExpanded(s string)
- func (o *Opt) SetPath(p path.Path)
- func (o *Opt) String() (s string)
- func (o *Opt) ToOption() config.Option
- func (o *Opt) Type() meta.Type
- func (o *Opt) Value() (c config.Concrete)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeFilesystemPath ¶ added in v0.1.26
NormalizeFilesystemPath cleans a directory specification, expands the ~ home folder shortcut, and if abs is set to true, returns the absolute path from filesystem root
func NormalizeNetworkAddress ¶ added in v0.1.26
NormalizeNetworkAddress checks correctness of a network address specification, and adds a default path if needed, and enforces whether the port requires root permission and clamps it if not.
Types ¶
type Opt ¶
type Opt struct {
// contains filtered or unexported fields
}
func (*Opt) FromString ¶ added in v0.1.18
func (*Opt) SetExpanded ¶ added in v0.1.37
Click to show internal directories.
Click to hide internal directories.