package providers

import "github.com/open-policy-agent/opa/internal/providers"

Index

Functions

func AWSSignV4

func AWSSignV4(headers map[string][]string, method string, theURL *url.URL, body []byte, service string, awsCreds AWSCredentials, theTime time.Time) map[string][]string

AWSSignV4 modifies a map[string][]string of headers to include an AWS V4 signature based on the config/credentials provided.

Types

type AWSCredentials

type AWSCredentials struct {
	AccessKey    string
	SecretKey    string
	RegionName   string
	SessionToken string
}

func AWSCredentialsFromObject

func AWSCredentialsFromObject(v ast.Object) AWSCredentials

Source Files

aws.go

Version
v0.47.2
Published
Dec 9, 2022
Platform
js/wasm
Imports
8 packages
Last checked
47 minutes ago

Tools for package owners.