Documentation ¶
Index ¶
- Constants
- func Copy(sourceFile, destFile string, perm os.FileMode) error
- func CopyCertKeyFile(srcKey, destKey, srcCert, destCert string, keyPerm int) error
- func EnsureBackUpDir(backUpDir string) error
- func ExtractServiceName(arn, comp string) (string, string, error)
- func FileExists(path string) bool
- func GenerateCSR(key *rsa.PrivateKey, ...) (string, error)
- func GenerateKeyPair(bits int) (*rsa.PrivateKey, error)
- func GenerateX509CSR(key *rsa.PrivateKey, csrDetails CertReqDetails) (string, error)
- func GetAWSLambdaServiceCertificate(ztsUrl, domain, service, account, region, ztsAwsDomain string) (tls.Certificate, error)
- func GetRoleCertFileName(certDir, fileName, certName string) string
- func NewSysLogger() (io.Writer, error)
- func PrivateKey(keyFile string, rotateKey bool) (*rsa.PrivateKey, error)
- func PrivateKeyFromFile(filename string) (*rsa.PrivateKey, error)
- func PrivatePem(privateKey *rsa.PrivateKey) string
- func SetupSIADirs(siaMainDir, siaLinkDir string, sysLogger io.Writer) error
- func SplitDomain(domain string) (string, string)
- func SplitRoleName(roleName string) (string, string, error)
- func SvcAttrs(username, groupname string, sysLogger io.Writer) (int, int, int)
- func UpdateFile(fileName string, contents []byte, uid, gid int, perm os.FileMode, ...) error
- func UpdateKey(keyFile string, uid, gid int)
- func ZtsClient(ztsUrl, ztsServerName string, keyFile, certFile, caCertFile string, ...) (*zts.ZTSClient, error)
- func ZtsHostName(identity, ztsAwsDomain string) string
- type CertReqDetails
Constants ¶
View Source
const SshSupport = true
Variables ¶
This section is empty.
Functions ¶
func CopyCertKeyFile ¶ added in v1.10.14
func EnsureBackUpDir ¶ added in v1.10.14
func FileExists ¶
func GenerateCSR ¶
func GenerateKeyPair ¶
func GenerateKeyPair(bits int) (*rsa.PrivateKey, error)
func GenerateX509CSR ¶
func GenerateX509CSR(key *rsa.PrivateKey, csrDetails CertReqDetails) (string, error)
func GetAWSLambdaServiceCertificate ¶
func GetAWSLambdaServiceCertificate(ztsUrl, domain, service, account, region, ztsAwsDomain string) (tls.Certificate, error)
func GetRoleCertFileName ¶
func NewSysLogger ¶ added in v1.10.14
func PrivateKey ¶ added in v1.10.14
func PrivateKey(keyFile string, rotateKey bool) (*rsa.PrivateKey, error)
func PrivateKeyFromFile ¶
func PrivateKeyFromFile(filename string) (*rsa.PrivateKey, error)
func PrivatePem ¶
func PrivatePem(privateKey *rsa.PrivateKey) string
func SplitDomain ¶
func UpdateFile ¶
func ZtsHostName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.