Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstanceBastionHost ¶
func GetInstanceBastionHost(ctx context.Context, deploymentID, nodeName string) (*sshutil.BastionHostConfig, error)
GetInstanceBastionHost returns a sshutil.BastionHostConfig for a given hosts or nil when no bastion host is specified.
The function first looks for an explicit definition in a yorc.capabilities.Endpoint.ProvisioningAdmin capability. If there is not explicit definition, it looks for a DeploysThrough relationship to another host and returns a bastion host configuration for the first relationship that was found. If no relationship is found, nil is returned instead.
func SanitizeForShell ¶
SanitizeForShell allows to sanitize a string in order to be embedded in shell command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.