Documentation
¶
Index ¶
- func EnsureBaseDir(fpath string) error
- func FilterExecOutput(cmd *exec.Cmd, timeout time.Duration, filter func(line string) bool) ([]string, error)
- func OpenURL(url string) (io.ReadCloser, error)
- func RemoteCatLine(url string) (string, error)
- func RunCommand(prog string, args ...string) (string, error)
- func TeeToFile(in io.Reader, fpath string, handler func(io.Reader) error) error
- func UnsetEnv(envName string) (err error)
- func ValidURL(url string) bool
- func WriteData(fpath string, data interface{}) error
- type OSTree
- func (tree *OSTree) Cat(branch string, fpath string) (string, error)
- func (tree *OSTree) Checkout(branch string, target string, force bool) error
- func (tree *OSTree) HasBranch(branch string) bool
- func (tree *OSTree) List(branch string, root string) (string, error)
- func (tree *OSTree) NeedCheckout(branch string, target string) bool
- func (tree *OSTree) Pull(branch string) error
- func (tree *OSTree) RemoteURL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureBaseDir ¶
EnsureBaseDir make sure the parent directory of fpath exists
func FilterExecOutput ¶
func OpenURL ¶
func OpenURL(url string) (io.ReadCloser, error)
OpenURL open the url for reading It will reaturn error if open failed or the StatusCode is bigger than 299 NOTE: the return reader need be closed
func RemoteCatLine ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.