Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Open opens a conda env as a session, if the env // does not exist, create it and install needed deps. Open(string, ...string) (Session, error) // List lists all envs. Like `conda env list` List() ([]string, error) // Close blocks until all sessions are closed. Close() error }
type ExecOption ¶
type ExecOption func(*ExecOptions)
func ExecArgs ¶
func ExecArgs(args ...string) ExecOption
func ExecEnv ¶
func ExecEnv(env ...string) ExecOption
func ExecLiveStream ¶
func ExecLiveStream() ExecOption
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
type Session ¶
type Session interface { // Sync synchronizes dependencies. Sync(...SyncOption) error // Exec executes a command Exec(string, ...ExecOption) (*Task, error) // Wait blocks until all task are done Wait() }
type SyncOption ¶
type SyncOption func(*SyncOptions)
func SyncDeps ¶
func SyncDeps(deps ...string) SyncOption
func SyncLiveStream ¶
func SyncLiveStream() SyncOption
Click to show internal directories.
Click to hide internal directories.