cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "0.0.1"

Variables

View Source
var (
	Verbose bool
	Source  string
)
View Source
var RootCmd = &cobra.Command{
	Use:   "ksec",
	Short: "ksec is a tool for managing secrets in Kubernetes",
	Long:  "ksec is a tool for managing secrets in Kubernetes",
	Run: func(cmd *cobra.Command, args []string) {

		c := &models.Secrets{
			Namespace:  cmd.Flag("namespace").Value.String(),
			Secret:     cmd.Flag("secret").Value.String(),
			Set:        cmd.Flag("set").Value.String() == "true",
			Key:        cmd.Flag("key").Value.String(),
			Value:      cmd.Flag("value").Value.String(),
			Get:        cmd.Flag("get").Value.String() == "true",
			Delete:     cmd.Flag("delete").Value.String() == "true",
			List:       cmd.Flag("list").Value.String() == "true",
			All:        cmd.Flag("all").Value.String() == "true",
			EnvPath:    cmd.Flag("env").Value.String(),
			FillPath:   cmd.Flag("fill").Value.String(),
			Modify:     cmd.Flag("modify").Value.String() == "true",
			FileFormat: cmd.Flag("file-format").Value.String(),
		}
		service.KubectlSecretsSvc(c)
	},
}

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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