func WaitContainer(name: string) int
func PullImage(name: string) string
func ListContainerProcesses(name: string, opts: []string) []string
import socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
import fcntl, termios, struct | |
# Create the socket | |
sock = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET) | |
# parsing args for using this as a cli .... dwalsh hates the idea so you can | |
# nuke this when folding into the mix |
import socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
import fcntl, termios, struct | |
#hasVarlink = False | |
#try: | |
# from varlink import (Client, VarlinkError) | |
# hasVarlink = True | |
#except ImportError: |
import socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
import fcntl, termios, struct | |
hasVarlink = False | |
try: | |
import abcd1234 | |
from varlink import (Client, VarlinkError) | |
hasVarlink = True | |
except ImportError: |
import socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
import fcntl, termios, struct | |
hasVarlink = False | |
try: | |
import foobar1234 | |
from varlink import (Client, VarlinkError) | |
hasVarlink = True | |
except ImportError: |
import socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
import fcntl, termios, struct | |
hasVarlink = False | |
try: | |
from varlink import (Client, VarlinkError) | |
hasVarlink = True | |
except ImportError: | |
pass |
import socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
import fcntl, termios, struct | |
hasVarlink = False | |
try: | |
from varlink import (Client, VarlinkError) | |
hasVarlink = True | |
except ImportError: | |
pass |
import socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
import fcntl, termios, struct | |
hasVarlink = False | |
try: | |
from varlink import (Client, VarlinkError) | |
hasVarlink = True | |
except ImportError: | |
pass |
import socket, argparse | |
import select, sys, os, tty, atexit, termios, signal, shutil | |
hasVarlink = False | |
try: | |
import fiibar | |
from varlink import (Client, VarlinkError) | |
hasVarlink = True | |
except ImportError: | |
pass |
import socket | |
import select, sys, os, tty, atexit, termios | |
sock = socket.socket(socket.AF_UNIX, socket.SOCK_SEQPACKET) | |
# stdin 1 | |
# stdout 2 | |
# stderr 3 | |
def reset_fd(my_fd, old_settings): | |
termios.tcsetattr(my_fd, termios.TCSADRAIN, old_settings) |