functions

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat added in v0.1.2

func Concat(existingHeaders map[string]string, args []string) (string, error)

Concat concatenates the args into a single string, substituting previously defined headers if available.

func Now

func Now(existingHeaders map[string]string, args []string) (string, error)

Now returns the number of seconds since the Unix epoch.

func PostFormURLEncoded added in v0.1.2

func PostFormURLEncoded(existingHeaders map[string]string, args []string) (string, error)

PostFormURLEncoded sends an HTTP POST request to a given URL with the data provided, returning either the whole response body or a specified JSON element.

func SignStringRS256PKCS8

func SignStringRS256PKCS8(existingHeaders map[string]string, args []string) (string, error)

SignStringRS256PKCS8 constructs a string from given args (delimited by newlines), signing it with the (possibly passphrase-encrypted) PKCS #8 private key, and returns the signature in base64.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL