util

package
v0.0.0-...-7ff6187 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHmac

func ComputeHmac(secret string, data string) (string, error)

ComputeHmac computes a SHA256 hmac of the data based on the provided secret.

func CreateSasToken

func CreateSasToken(
	key string,
	resource string,
	keyName string,
	expiresAfter time.Duration) (string, error)

CreateSasToken creates a shared access signature token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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