Documentation ¶
Index ¶
- func ExtractServiceName(tagValues 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 GetRoleCertFileName(certDir, fileName, certName string) string
- 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 UidGidForUserGroup(username, groupname string, sysLogger io.Writer) (int, int)
- func UpdateFile(fileName, contents string, uid, gid int, perm os.FileMode, sysLogger io.Writer) error
- func ZtsClient(ztsUrl, ztsServerName string, keyFile, certFile, caCertFile string, ...) (*zts.ZTSClient, error)
- func ZtsHostName(identity, ztsAzureDomain string) string
- type CertReqDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GetRoleCertFileName ¶
func PrivateKeyFromFile ¶
func PrivateKeyFromFile(filename string) (*rsa.PrivateKey, error)
func PrivatePem ¶
func PrivatePem(privateKey *rsa.PrivateKey) string
func SplitDomain ¶
func UidGidForUserGroup ¶
func UpdateFile ¶
func ZtsHostName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.