Documentation ¶
Index ¶
- func FailPretty(format string, args ...any)
- func GetAwsConfig(ctx context.Context, awsRegion string, creds *common.AwsCredentials) (*aws.Config, error)
- func GetEndToEndEncryptionCertificate(orgID, connectorID string) (*tls.Certificate, error)
- func GetFormattedHostname() (string, error)
- func GetUserHomeDir() (string, error)
- func Hostkey() (*ssh.Signer, error)
- func RunningAsAdministrator() bool
- func StoreCertificateFiles(key []byte, certficate []byte, path, keyFileName, certificateFileName string) error
- func StoreConnectorCertifcate(privateKey []byte, certificate []byte, orgID, connectorID string) error
- func StoreHostkey(key []byte, path, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAwsConfig ¶
func GetAwsConfig( ctx context.Context, awsRegion string, creds *common.AwsCredentials, ) (*aws.Config, error)
GetAwsConfig builds an aws.Config given some options.
func GetEndToEndEncryptionCertificate ¶
func GetEndToEndEncryptionCertificate(orgID, connectorID string) (*tls.Certificate, error)
func GetFormattedHostname ¶
GetFormattedHostname gets a hostname with no special characters.
func GetUserHomeDir ¶
GetUserHomeDir returns the home directory of the current user If the process is run as sudo, it will return the home directory of the sudo user ie. the orginal user (not root), based on the SUDO_USER env var
func RunningAsAdministrator ¶
func RunningAsAdministrator() bool
RunningAsAdministrator returns true if the runtime has administrative privileges.
func StoreCertificateFiles ¶
func StoreHostkey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.