Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Maximum time, in seconds, that a request timestamp can differ from the current time. MaxTimeSkew = 30.0 // Length, in bytes, of generated API keys KeySize = 32 SignatureHeader = "X-NAIS-Signature" FailedAuthenticationMsg = "failed authentication" DirectDeployGithubTask = "NAIS_DIRECT_DEPLOY" )
Variables ¶
This section is empty.
Functions ¶
func GenMAC ¶
GenMAC generates the HMAC signature for a message provided the secret key using SHA256
func ValidateAnyMAC ¶
func ValidateMAC ¶
ValidateMAC reports whether messageMAC is a valid HMAC tag for message.
Types ¶
type ClusterList ¶
type ClusterList []string
func (ClusterList) Contains ¶
func (c ClusterList) Contains(cluster string) error
type Key ¶
type Key []byte
func (Key) MarshalJSON ¶
func (*Key) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.