openshift

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFunc

type LogFunc func(format string, args ...any)

LogFunc receives informational messages generated during the flow.

type LoginCommandResult

type LoginCommandResult struct {
	Command string
	Token   string
	Server  string
}

LoginCommandResult contains the extracted `oc login` command details.

func FetchLoginCommand

func FetchLoginCommand(
	oauthBaseURL string,
	clusterURL string,
	authHost string,
	cookies []*http.Cookie,
	verifyCerts bool,
	logf LogFunc,
) (*LoginCommandResult, error)

FetchLoginCommand fetches the OpenShift token page and extracts the login command.

Jump to

Keyboard shortcuts

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