cmd

package
v0.37.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoginCmd = &cobra.Command{
	Use:          "login",
	Short:        "login",
	Long:         "Login to a Pinniped server",
	SilenceUsage: true,
	Hidden:       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 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.Logger, error)

Types

type GetKubeconfigParams

type GetKubeconfigParams struct {
	OutputPath string

	CredentialCachePathSet bool

	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

Jump to

Keyboard shortcuts

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