Documentation
¶
Overview ¶
Package wd GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- func GoArch(os string, unameM string) (string, bool)
- func GoOS(id string) (string, bool)
- func ListFile(f filesystem.FileSystem, root string, each func(filename string) error) error
- func RealPath(dir WorkDir) (string, error)
- func SameFileSystem(a *url.URL, b *url.URL) bool
- func WrapRigFS(fsys rigfs.Fsys) filesystem.FileSystem
- func WrapSFTP(c *ssh.Client) (filesystem.FileSystem, error)
- type CanOSInfo
- type Dir
- type OSInfo
- type OptionFunc
- type Options
- type Platform
- type WorkDir
- type WorkDirConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListFile ¶
func ListFile(f filesystem.FileSystem, root string, each func(filename string) error) error
func WrapRigFS ¶
func WrapRigFS(fsys rigfs.Fsys) filesystem.FileSystem
func WrapSFTP ¶
func WrapSFTP(c *ssh.Client) (filesystem.FileSystem, error)
Types ¶
type OptionFunc ¶
type OptionFunc func(opt *Options)
func WithDir ¶
func WithDir(dir string) OptionFunc
func WithEnv ¶
func WithEnv(env map[string]string) OptionFunc
func WithStderr ¶
func WithStderr(stderr io.Writer) OptionFunc
func WithStdout ¶
func WithStdout(stdout io.Writer) OptionFunc
func WithUser ¶
func WithUser(user string) OptionFunc
func (OptionFunc) RuntimeDoc ¶
func (OptionFunc) RuntimeDoc(names ...string) ([]string, bool)
type Options ¶
type Options struct { BasePath Dir Env map[string]string User string Stdout io.Writer Stderr io.Writer }
func (*Options) Build ¶
func (o *Options) Build(optionFuncs ...OptionFunc)
type Platform ¶
func ParsePlatform ¶
ParsePlatform parses a string representing a Platform, if possible.
type WorkDir ¶
type WorkDir interface { fmt.Stringer filesystem.FileSystem Options() Options Digest(ctx context.Context, path string) (digest.Digest, error) Exec(ctx context.Context, cmd string, optFns ...OptionFunc) error Addr() *url.URL }
func Wrap ¶
func Wrap(c *rig.Connection, optionFuncs ...OptionFunc) (WorkDir, error)
type WorkDirConnection ¶
type WorkDirConnection interface {
Connection() *rig.Connection
}
Click to show internal directories.
Click to hide internal directories.