auth

package
v0.0.0-...-05c4727 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsAuthProvider

type AwsAuthProvider struct {
	// contains filtered or unexported fields
}

The AwsAuthProvider is used to create a session based on a kubernetes object's config. If the given AwsAuth details specify an access key secret, it is loaded and that is used. If it specified a JWT using a ServiceAccount token, one is generated on the fly. Using ambient credentials is the fallback.

func NewAwsAuthProvider

func NewAwsAuthProvider(sessionName string, corev1 *corev1rest.CoreV1Interface) (*AwsAuthProvider, error)

Creates an AwsAuthProvider, with the given sessionName and kubernetes client.

func (*AwsAuthProvider) NewSession

func (p *AwsAuthProvider) NewSession(details *cfapi.AwsAuth, namespace *string) (*session.Session, error)

Creates a new session from the given AwsAuth details. If the details were loaded from a namespace, any referenced Secrets or Service Accountswill be loaded from that same namespace. Otherwise, it will read the namespace from the AwsAuth details.

Jump to

Keyboard shortcuts

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