config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const HELPER_BINARY = "aws-iam-authenticator"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Name The name of the cluster for which to create a kubeconfig entry
	Name string
	// RoleToAssume To assume a role for cluster authentication, specify an IAM role ARN with this option
	RoleToAssume string `mapstructure:"role-to-assume"`
	// RoleSessionName Session name to pass when assuming the IAM Role
	RoleSessionName string `mapstructure:"role-session-name"`
	// RoleExternalId External ID to pass when assuming the IAM Role
	RoleExternalId string `mapstructure:"role-external-id"`
	// ForwardSessionName Enable mapping a federated sessions caller-specified-role-name attribute onto newly assumed sessions
	ForwardSessionName bool `mapstructure:"forward-session-name"`
	// Alias The alias for the cluster context name
	Alias string
	// UserAlias The alias for the generated username
	UserAlias string `mapstructure:"user-alias"`
}

Config holds the authentication request configuration

func (*Config) Authenticate

func (c *Config) Authenticate(ctx context.Context) error

Jump to

Keyboard shortcuts

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