util

package
v0.0.0-...-a56079f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperatorNamespace

func GetOperatorNamespace() (string, error)

GetOperatorNamespace retrieves the operator namespace from the running environment or error if unavailable

Types

type AccessToken

type AccessToken struct {
	PullSecret string
	ClusterId  string
}

AccessToken contains fields for an access token

func GetAccessToken

func GetAccessToken(c client.Client) (*AccessToken, error)

GetAccessToken fetches the access token for authentication to the Cluster Service API via the cluster pull secret

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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