login

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginAsNonAdmin added in v0.10.0

func LoginAsNonAdmin(harness *e2e.Harness, user string, password string, k8sContext string, k8sApiEndpoint string) error

Types

type AuthMethod added in v0.8.1

type AuthMethod int
const (
	// AuthDisabled indicates that authentication is not enabled for the deployment
	AuthDisabled AuthMethod = iota

	// AuthToken indicates authentication using an OpenShift token.
	AuthToken

	// AuthUsernamePassword indicates authentication using a username and password.
	AuthUsernamePassword
)

func LoginToAPIWithToken

func LoginToAPIWithToken(harness *e2e.Harness) AuthMethod

LoginToAPIWithToken attempts to log in to the flightctl API via different methods depending on what is available. If auth is disabled then this is largely a noop. This method panics if login fails

func WithPassword added in v0.8.1

func WithPassword(harness *e2e.Harness) AuthMethod

WithPassword attempts to log in to the flightctl API with only the user/password flow. If auth is disabled then this is largely a noop. This method panics if login fails

Jump to

Keyboard shortcuts

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