auth

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const None = "none"

None is a constant representing the None Authentication Scheme

View Source
const SigV4 = "sigv4"

SigV4 is a constant representing Authentication Scheme Signature Version 4

View Source
const SigV4A = "sigv4a"

SigV4A is a constant representing Authentication Scheme Signature Version 4A

Variables

View Source
var SupportedSchemes = map[string]bool{
	SigV4:  true,
	SigV4A: true,
	None:   true,
}

SupportedSchemes is a data structure that indicates the list of supported AWS authentication schemes

Functions

func GetDisableDoubleEncoding

func GetDisableDoubleEncoding(ctx context.Context) (value bool, ok bool)

GetDisableDoubleEncoding retrieves the disable double encoding option from the context.

Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues to clear all stack values.

func SetDisableDoubleEncoding

func SetDisableDoubleEncoding(ctx context.Context, value bool) context.Context

SetDisableDoubleEncoding sets or modifies the disable double encoding option on the context.

Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues to clear all stack values.

Types

type AuthenticationScheme

type AuthenticationScheme interface {
	// contains filtered or unexported methods
}

AuthenticationScheme is a representation of AWS authentication schemes

func GetAuthenticationSchemes

func GetAuthenticationSchemes(p *smithy.Properties) ([]AuthenticationScheme, error)

GetAuthenticationSchemes extracts the relevant authentication scheme data into a custom strongly typed Go data structure.

type AuthenticationSchemeNone

type AuthenticationSchemeNone struct{}

AuthenticationSchemeNone is a representation for the none auth scheme

type AuthenticationSchemeV4

type AuthenticationSchemeV4 struct {
	Name                  string
	SigningName           *string
	SigningRegion         *string
	DisableDoubleEncoding *bool
}

AuthenticationSchemeV4 is a AWS SigV4 representation

type AuthenticationSchemeV4A

type AuthenticationSchemeV4A struct {
	Name                  string
	SigningName           *string
	SigningRegionSet      []string
	DisableDoubleEncoding *bool
}

AuthenticationSchemeV4A is a AWS SigV4A representation

type NoAuthenticationSchemesFoundError

type NoAuthenticationSchemesFoundError struct{}

NoAuthenticationSchemesFoundError is used in signaling that no authentication schemes have been specified.

func (*NoAuthenticationSchemesFoundError) Error

type UnSupportedAuthenticationSchemeSpecifiedError

type UnSupportedAuthenticationSchemeSpecifiedError struct {
	UnsupportedSchemes []string
}

UnSupportedAuthenticationSchemeSpecifiedError is used in signaling that only unsupported authentication schemes were specified.

func (*UnSupportedAuthenticationSchemeSpecifiedError) Error

Jump to

Keyboard shortcuts

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