cmd

package
v0.36.21 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoginCmd = &cobra.Command{
	Use:          "login",
	Short:        "Login to a Undistro Cluster",
	Long:         "Login to a Undistro Cluster",
	SilenceUsage: true,
}

nolint: gochecknoglobals

Functions

func GetRealConciergeClientset

func GetRealConciergeClientset(clientConfig clientcmd.ClientConfig, apiGroupSuffix string) (conciergeclientset.Interface, error)

getRealConciergeClientset returns a real implementation of a conciergeclientset.Interface.

func GetRealConciergeClientsetFromConfig added in v0.34.8

func GetRealConciergeClientsetFromConfig(restConfig *rest.Config, apiGroupSuffix string) (conciergeclientset.Interface, error)

func NewWhoamiCommand

func NewWhoamiCommand(getClientset getConciergeClientsetFunc) *cobra.Command

func RunGetKubeconfig

func RunGetKubeconfig(ctx context.Context, out io.Writer, deps KubeconfigDeps, flags GetKubeconfigParams) error

func SetLogLevel

func SetLogLevel(lookupEnv func(string) (string, bool)) (*plog.PLogger, error)

Types

type GetKubeconfigParams

type GetKubeconfigParams struct {
	KubeconfigBytes []byte
	// contains filtered or unexported fields
}

func SetupPinnipedCommand

func SetupPinnipedCommand(cmd *cobra.Command) (*cobra.Command, GetKubeconfigParams)

type KubeconfigDeps

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

func KubeconfigRealDeps

func KubeconfigRealDeps() KubeconfigDeps

type SupervisorDiscoveryResponseV1Alpha1

type SupervisorDiscoveryResponseV1Alpha1 struct {
	PinnipedIDPsEndpoint string `json:"pinniped_identity_providers_endpoint"`
}

Jump to

Keyboard shortcuts

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