Documentation ¶
Index ¶
- func ContainsString(slice []string, val string) bool
- func GetDefaultAccessTokenRequest(host string, path string, token string) (*http.Request, error)
- func GetKeyFingerprint(key *rsa.PublicKey) (string, error)
- func GetPubKeyPem(key *rsa.PublicKey) (string, error)
- func HashSha256(data []byte) ([]byte, error)
- func RemoveString(slice []string, val string) ([]string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString returns true if the provided value is in the provided slice
func GetDefaultAccessTokenRequest ¶ added in v1.0.7
GetDefaultAccessTokenRequest returns a HTTP request to get an access token using a static token
func GetKeyFingerprint ¶
GetKeyFingerprint returns the fingerprint for a given rsa.PublicKey
func GetPubKeyPem ¶
GetPubKeyPem returns the PEM encoded public key
func HashSha256 ¶
HashSha256 returns the SHA256 hash of the input
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.