auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:   "auth",
	Short: "Checks whether your cli is authenticated correctly",
	RunE: func(cmd *cobra.Command, args []string) error {
		client := cmd.Context().Value(shared.ClientContextKey)
		if client == nil {
			return fmt.Errorf("could not authenticate")
		}

		return nil
	},
}

Functions

func GetClient

func GetClient(ctx context.Context, configDir string, config *oauth2.Config) (*http.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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