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 GetSocketTLSCertificate(orgID, socketID string) (*tls.Certificate, error)
- func GetUserHomeDir() (string, error)
- func Hostkey() (*ssh.Signer, error)
- func RunningAsAdministrator() bool
- func StoreConnectorCertificate(privateKey []byte, certificate []byte, orgID, connectorID string) error
- func StoreConnectorSocketCertificate(privateKey []byte, certificate []byte, orgID, socketID 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)
GetEndToEndEncryptionCertificate returns the org-wide-ca-signed mTLS certificate for a given org or connector.
func GetFormattedHostname ¶
GetFormattedHostname gets a hostname with no special characters.
func GetSocketTLSCertificate ¶
func GetSocketTLSCertificate(orgID, socketID string) (*tls.Certificate, error)
GetSocketTLSCertificate returns the org-wide-ca-signed TLS certificate for a given socket.
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 StoreConnectorCertificate ¶
func StoreConnectorCertificate(privateKey []byte, certificate []byte, orgID, connectorID string) error
StoreConnectorCertificate stores the org-wide-ca-signed mTLS certificate for a given org or connector.
func StoreConnectorSocketCertificate ¶
func StoreConnectorSocketCertificate(privateKey []byte, certificate []byte, orgID, socketID string) error
StoreConnectorSocketCertificate stores the org-wide-ca-signed TLS certificate for a given socket.
func StoreHostkey ¶
Types ¶
This section is empty.