get_token

package
v0.77.0-dev-1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "get-token",
	Short:   "Get Access Token to Goole Drive API",
	Aliases: []string{"u"},
	Args:    cobra.NoArgs,
	Run: func(c *cobra.Command, args []string) {
		token := google_drive_utils.GetToken(FlagClientId, FlagClientSecret)
		err := vault_google_drive_utils.SetGoogleDriveUploadTokenSecrets(token, "secret/data/slu/google-drive-upload/token")
		if err != nil {
			log.Fatalln(err)
		}
	},
}
View Source
var FlagClientId string
View Source
var FlagClientSecret string

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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