login

package
v1.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 WithK8Token added in v1.0.0

func WithK8Token(harness *e2e.Harness) AuthMethod

WithK8Token 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