Documentation ¶
Index ¶
- func Errorf(format string, a ...interface{}) error
- func IsPodIntallationError(err error) bool
- func LoadTokens(path string) ([]string, error)
- func MkdirChownAll(path string, uid, gid int, perm os.FileMode) error
- func Stack() []byte
- func WriteIfChanged(filename string, data []byte, perm os.FileMode) (bool, error)
- type Caller
- type CallsiteError
- type FileWatcher
- type PodIntallationError
- type StackError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errorf ¶
Errorf formats according to fmt.Errorf, but prefixes the error message with filename and line number.
func IsPodIntallationError ¶
func LoadTokens ¶
Types ¶
type Caller ¶
type Caller struct {
Filename string
}
func (*Caller) ExpandPath ¶
type CallsiteError ¶
type FileWatcher ¶
type FileWatcher struct {
// contains filtered or unexported fields
}
A FileWatcher caches data that is parsed from a file. Requests for the file's data are serialized through the FileWatcher. When the data are needed, if the file has changed since the last time it was read (determined by examining mtime), it will be re-loaded before returning the data.
func NewFileWatcher ¶
func NewFileWatcher( parse func(path string) (interface{}, error), path string, ) (FileWatcher, error)
func (FileWatcher) Close ¶
func (w FileWatcher) Close()
func (FileWatcher) GetAsync ¶
func (w FileWatcher) GetAsync() <-chan interface{}
type PodIntallationError ¶
func (PodIntallationError) Error ¶
func (r PodIntallationError) Error() string
type StackError ¶
type StackError interface { CallsiteError Stack() []byte }
StackError represents an error with an associated stack trace.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
The param package is a management system for configuration parameters.
|
The param package is a management system for configuration parameters. |
Package size provides a converter between a string representation of a size and a number of bytes, and reverse.
|
Package size provides a converter between a string representation of a size and a number of bytes, and reverse. |
Click to show internal directories.
Click to hide internal directories.