Documentation ¶
Index ¶
- Constants
- func GetCertificatesFromPath(path string) ([]*x509.Certificate, error)
- func GetNamespace() string
- func GetServiceName() string
- func ParseDigest(digestStr string) (digest.Digest, error)
- func ParseSubjectReference(subRef string) (common.Reference, error)
- func ReplaceHomeShortcut(path string) string
- func TrimSpaceAndToLower(input string) string
Constants ¶
View Source
const RatifyNamespaceEnvVar = "RATIFY_NAMESPACE"
Variables ¶
This section is empty.
Functions ¶
func GetCertificatesFromPath ¶
func GetCertificatesFromPath(path string) ([]*x509.Certificate, error)
Return list of certificates loaded from path when path is a directory, this method loads all certs in directory and resolve symlink if needed
func ParseDigest ¶
ParseDigest parses the given string and returns a validated Digest object.
func ParseSubjectReference ¶
ParseSubjectReference parses the given subject and returns a valid reference
func ReplaceHomeShortcut ¶
Replace the shortcut prefix in a path with the home directory For example in a unix os, ~/.config/ becomes /home/azureuser/.config after replacement
func TrimSpaceAndToLower ¶
returns the string in lower case without leading and trailing space
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.