Documentation ¶
Index ¶
- Constants
- Variables
- func NewDebugCodeCommand(hostChecker ssh.ReachableChecker, retryStrategy retry.CallArgs, ...) cmd.Command
- func NewDebugHooksCommand(hostChecker ssh.ReachableChecker, retryStrategy retry.CallArgs, ...) cmd.Command
- func NewSCPCommand(hostChecker jujussh.ReachableChecker, retryStrategy retry.CallArgs, ...) cmd.Command
- func NewSSHCommand(hostChecker jujussh.ReachableChecker, isTerminal func(interface{}) bool, ...) cmd.Command
- type ApplicationAPI
- type CharmsAPI
- type CloudCredentialAPI
- type Context
- type LeaderAPI
- type ModelCommand
- type SSHClientAPI
- type SSHControllerAPI
Constants ¶
View Source
const ( // SSHRetryDelay is the time to wait for an SSH connection to be established // to a single endpoint of a target. SSHRetryDelay = 2 * time.Second // SSHTimeout is the time to wait for all SSH negotiation and authentication process. SSHTimeout = 20 * time.Second )
Variables ¶
View Source
var DefaultSSHPublicKeyRetryStrategy = retry.CallArgs{ Clock: clock.WallClock, MaxDelay: 60 * time.Second, Delay: 1 * time.Second, Attempts: 10, BackoffFunc: retry.DoubleDelay, }
View Source
var DefaultSSHRetryStrategy = retry.CallArgs{ Clock: clock.WallClock, MaxDuration: SSHTimeout, Delay: SSHRetryDelay, }
Functions ¶
func NewDebugCodeCommand ¶
func NewDebugHooksCommand ¶
func NewSCPCommand ¶
func NewSSHCommand ¶
Types ¶
type ApplicationAPI ¶
type ApplicationAPI interface { Leader(string) (string, error) Close() error UnitsInfo(units []names.UnitTag) ([]application.UnitInfo, error) }
ApplicationAPI defines application related APIs.
type CharmsAPI ¶
type CharmsAPI interface { Close() error CharmInfo(charmURL string) (*commoncharm.CharmInfo, error) }
type CloudCredentialAPI ¶
type CloudCredentialAPI interface { Cloud(tag names.CloudTag) (jujucloud.Cloud, error) CredentialContents(cloud, credential string, withSecrets bool) ([]params.CredentialContentResult, error) BestAPIVersion() int Close() error }
CloudCredentialAPI defines cloud credential related APIs.
type Context ¶
type Context interface { InterruptNotify(c chan<- os.Signal) StopInterruptNotify(c chan<- os.Signal) GetStdout() io.Writer GetStderr() io.Writer GetStdin() io.Reader }
Context defines methods for command context.
type LeaderAPI ¶
LeaderAPI is implemented by types that can query for a Leader based on application name.
type ModelCommand ¶
type ModelCommand interface { NewControllerAPIRoot() (api.Connection, error) ModelDetails() (string, *jujuclient.ModelDetails, error) NewAPIRoot() (api.Connection, error) NewAPIClient() (*apiclient.Client, error) ModelIdentifier() (string, error) }
ModelCommand defines methods of the model command.
type SSHClientAPI ¶
SSHClientAPI defines ssh client related APIs.
type SSHControllerAPI ¶
type SSHControllerAPI interface {
ControllerConfig() (controller.Config, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.