provutil

package
Version: v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

func SanitizeForShell(str string) string

SanitizeForShell allows to sanitize a string in order to be embedded in shell command

Types

This section is empty.

Jump to

Keyboard shortcuts

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