Documentation
¶
Overview ¶
Package oidcutil offers parsing and formatting utilities for AWS OIDC authentication information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSOIDCInfo ¶
type AWSOIDCInfo struct {
RoleARN *arn.ARN
SessionDuration *time.Duration
SessionName string
Region string
}
AWSOIDCInfo contains AWS OIDC authentication information.
func ParseAWSOIDCInfo ¶
func ParseAWSOIDCInfo(oidcInfo string) (*AWSOIDCInfo, error)
ParseAWSOIDCInfo takes a string that represents a list of oidc key/value pairs and returns it in the form of a *AWSOIDCInfo. The function errors if the string is invalid, including unexpected keys and/or values.
func (*AWSOIDCInfo) RoleARNString ¶
func (oi *AWSOIDCInfo) RoleARNString() string
RoleARNString returns the role ARN as a string.
func (*AWSOIDCInfo) String ¶
func (oi *AWSOIDCInfo) String() string
Click to show internal directories.
Click to hide internal directories.