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) (string, map[string]string)

AWSSignV4 modifies a map[string][]string of headers to generate an AWS V4 signature + headers 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.3
Published
Dec 12, 2022
Platform
linux/amd64
Imports
8 packages
Last checked
32 seconds ago

Tools for package owners.