Camphor Networks Platform API
Sh Class Reference

Public Member Functions

def runl (cls, cmd, retry=0, wait=3, timeout=0, ignore=False, debug=False, verbose=False, use_system=False, stderr=STDOUT, suppress_debug=False)
 
def resolveK8Name (cls, name, namespace='', retry=10, wait=6, timeout=10)
 
def apt_get (cls, cmd, repeat=30, wait=6, timeout=0, ignore=False, debug=False, verbose=False, use_system=False, stderr=STDOUT, ssh='')
 
tuple[str, int] run (cls, cmd, retry=0, wait=3, timeout=0, ignore=False, debug=False, verbose=False, use_system=False, stderr=STDOUT, invert=False, expect=None, suppress_debug=False)
 
def formNameSpace (cls, username='administrator', project='default')
 

Detailed Description

Definition at line 811 of file camphor_util.py.

Member Function Documentation

◆ runl()

def runl (   cls,
  cmd,
  retry = 0,
  wait = 3,
  timeout = 0,
  ignore = False,
  debug = False,
  verbose = False,
  use_system = False,
  stderr = STDOUT,
  suppress_debug = False 
)

Definition at line 813 of file camphor_util.py.

References Sh.run(), and CamphorSingleNodeSetup.run().

+ Here is the call graph for this function:

◆ resolveK8Name()

def resolveK8Name (   cls,
  name,
  namespace = '',
  retry = 10,
  wait = 6,
  timeout = 10 
)

Definition at line 822 of file camphor_util.py.

◆ apt_get()

def apt_get (   cls,
  cmd,
  repeat = 30,
  wait = 6,
  timeout = 0,
  ignore = False,
  debug = False,
  verbose = False,
  use_system = False,
  stderr = STDOUT,
  ssh = '' 
)

Definition at line 832 of file camphor_util.py.

◆ run()

tuple[str, int] run (   cls,
  cmd,
  retry = 0,
  wait = 3,
  timeout = 0,
  ignore = False,
  debug = False,
  verbose = False,
  use_system = False,
  stderr = STDOUT,
  invert = False,
  expect = None,
  suppress_debug = False 
)

◆ formNameSpace()

def formNameSpace (   cls,
  username = 'administrator',
  project = 'default' 
)

Definition at line 938 of file camphor_util.py.


The documentation for this class was generated from the following file: