client

package
v19.10.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 20 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConnectionTimeout = temporal.GetConnectSSHTimeout()
	DefaultExecutionTimeout  = temporal.GetExecutionTimeout()
)

DefaultTimeout tells to use the timeout by default depending on context

Functions

func DecorateError

func DecorateError(err error, action string, maySucceed bool) error

DecorateError changes the error to something more comprehensible when timeout occurred

func IsProvisioningError

func IsProvisioningError(err error) bool

IsProvisioningError detects provisioning errors

func IsTimeoutError

func IsTimeoutError(err error) bool

IsTimeoutError tells if the err is a timeout kind

Types

type Client

type Client *Session

Client is a instance of Session used temporarily until the session logic in safescaled is implemented

func New

func New() Client

New returns an instance of safescale Client

type Session

type Session struct {
	Bucket     *bucket
	Data       *data
	Host       *host
	Image      *image
	JobManager *jobManager
	Network    *network
	Share      *share
	SSH        *ssh
	Template   *template
	Tenant     *tenant
	Volume     *volume
	// contains filtered or unexported fields
}

Session units the different resources proposed by safescaled as safescale client

func (*Session) Connect

func (s *Session) Connect()

Connect establishes connection with safescaled

func (*Session) Disconnect

func (s *Session) Disconnect()

Disconnect cuts the connection with safescaled

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL