Documentation ¶
Overview ¶
Package wd GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- type Dir
- type Local
- type Platform
- type Rel
- type Release
- type SSH
- type SSHFromConfig
- type Su
- type Sub
- type SysInfo
- type Temp
- type WorkDir
- func (w *WorkDir) Do(ctx context.Context, action func(ctx context.Context, wd wd.WorkDir) error, ...) error
- func (w *WorkDir) Get(ctx context.Context, optFns ...wd.OptionFunc) (wd.WorkDir, error)
- func (v WorkDir) RuntimeDoc(names ...string) ([]string, bool)
- func (w *WorkDir) ScopeName(ctx context.Context) (string, error)
- func (w *WorkDir) Sync(ctx context.Context, workdir wd.WorkDir) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Local ¶
type Local struct { task.Task // related dir on the root of project Source string `json:"source" default:"."` // the local workdir WorkDir WorkDir `json:"-" output:"dir"` }
Local create a local workdir
type Rel ¶
type Rel struct { task.Task BaseDir WorkDir `json:"baseDir"` TargetDir WorkDir `json:"targetDir"` Path string `json:"-" output:"path"` }
Rel to get related path between two dirs
type Release ¶
type SSH ¶
type SSH struct { task.Task // ssh address Address string `json:"address"` // ssh hostKey HostKey string `json:"hostKey,omitempty"` // ssh identity file IdentityFile string `json:"identityFile"` // ssh port Port int `json:"port,omitempty" default:"22"` // ssh user User string `json:"user,omitempty" default:"root"` // the workdir from ssh WorkDir WorkDir `json:"-" output:"dir"` }
SSH create ssh work dir for remote executing
type SSHFromConfig ¶
type SSHFromConfig struct { task.Task // path to ssh config Config string `json:"config"` // host key of ssh config HostKey string `json:"hostKey"` // the workdir from ssh WorkDir WorkDir `json:"-" output:"dir"` }
SSHFromConfig create ssh work dir for remote executing
func (SSHFromConfig) RuntimeDoc ¶
func (v SSHFromConfig) RuntimeDoc(names ...string) ([]string, bool)
type Su ¶
type Su struct { task.Task // current workdir Cwd WorkDir `json:"cwd"` // switched user User string `json:"user"` // switched workdir with the switched user WorkDir WorkDir `json:"-" output:"dir"` }
Su switch user
type Sub ¶
type Sub struct { task.Task // current workdir Cwd WorkDir `json:"cwd"` // related path from current workdir Path string `json:"path"` // new workdir WorkDir WorkDir `json:"-" output:"dir"` }
Sub create new work dir base on current work dir
type SysInfo ¶
type SysInfo struct { task.Task // current workdir Cwd WorkDir `json:"cwd"` // home Home string `json:"-" output:"home"` // os release info Release Release `json:"-" output:"release"` // os platform Platform Platform `json:"-" output:"platform"` }
SysInfo get sys info of current work dir
type Temp ¶
type Temp struct { task.Task // related dir on the root of project ID string `json:"id"` // the tmp workdir WorkDir WorkDir `json:"-" output:"dir"` }
Tm create a tmp workdir
Click to show internal directories.
Click to hide internal directories.