gluecmd

package
v0.0.0-...-5360655 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetConfigDataCmd = &cobra.Command{
	Use:   "getConfigData",
	Short: "A brief description of your command",
	Long:  ``,

	Run: func(cmd *cobra.Command, args []string) {

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)

		if err != nil {
			cmd.Help()
			return
		}

		if authFlag {
			jobName, _ := cmd.Flags().GetString("jobName")

			if jobName != "" {
				GetGlueDetails(jobName, *clientAuth)
			} else {
				log.Fatalln("jobName not provided. Program exit")
			}
		}
	},
}

getConfigDataCmd represents the getConfigData command

Functions

func GetGlueDetails

func GetGlueDetails(jobName string, auth client.Auth) (*glue.GetJobOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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