Documentation ¶
Index ¶
- Constants
- func Check(err error)
- func CompressZlibBase64(data []byte) string
- func CreateCertificate(commonName string, emailAddress string, identifier string, ...) ([]byte, *rsa.PrivateKey)
- func DecompressZlibBase64(s string) []byte
- func GetUserUrn(pemEncodedCert []byte) (string, error)
- func GetUserUrnFromEscapedCert(escapedCert string) (string, error)
- func Keys(m map[string]string) []string
- func PEMDecodeMany(pemEncoded []byte) [][]byte
- func PEMEncodeMany(data [][]byte, pemType string) []byte
- func RemoveFile(name string)
- func RemoveFiles(names []string)
- func WriteTempFile(data []byte) (string, error)
- func WriteTempFilePem(data []byte, pemType string) (string, error)
- func WriteTempFilePems(data [][]byte, pemType string) (string, error)
- func WriteTempFiles(data [][]byte) ([]string, error)
- func WriteTempFilesPem(data [][]byte, pemType string) ([]string, error)
- type ArrayFlags
Constants ¶
const ( PEMBlockTypeCertificate = "CERTIFICATE" PEMBlockTypeRSA = "RSA PRIVATE KEY" )
Variables ¶
This section is empty.
Functions ¶
func CompressZlibBase64 ¶
func CreateCertificate ¶
func CreateCertificate( commonName string, emailAddress string, identifier string, parentCertificate []byte, parentPrivateKey *rsa.PrivateKey, ) ([]byte, *rsa.PrivateKey)
func DecompressZlibBase64 ¶
func GetUserUrn ¶
func PEMDecodeMany ¶
PEMDecodeMany decodes multiple PEM encoded blocks from a single byte slice.
func PEMEncodeMany ¶
PEMEncodeMany PEM encodes multiple byte slices to a single byte slice.
func RemoveFiles ¶
func RemoveFiles(names []string)
RemoveFiles removes multiple files, ignoring all errors.
func WriteTempFile ¶
WriteTempFile writes data to a temporary file and returns its name. It is the caller's responsibility to remove the file when it is no longer needed.
func WriteTempFilePem ¶
WriteTempFilePem writes PEM encoded data to a temporary file and return its name. It is the caller's responsibility to remove the file when it is no longer needed.
func WriteTempFilePems ¶
WriteTempFilePems writes multiple PEM encoded data to a temporary file and return its name. It is the caller's responsibility to remove the file when it is no longer needed.
func WriteTempFiles ¶
WriteTempFiles writes data to temporary files and returns their names. It is the caller's responsibility to remove the files when they are no longer needed.
Types ¶
type ArrayFlags ¶
type ArrayFlags []string
https://stackoverflow.com/a/28323276
func (*ArrayFlags) Set ¶
func (i *ArrayFlags) Set(value string) error
func (*ArrayFlags) String ¶
func (i *ArrayFlags) String() string