oidcutil

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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