secret

package
v3.25.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCmd

type CreateCmd struct {
	ClusterID   string `help:"The ID of the cluster" required:"" name:"cluster-id"`
	Key         string `help:"The key name for the secret (e.g. MY_SECRET)" required:""`
	Value       string `help:"The secret value. If not provided, you will be prompted to enter it." optional:""`
	Description string `help:"A description of the secret" optional:""`
	Policy      string `help:"The access policy for the secret (YAML format)" optional:""`
	Output      string `help:"Output format. One of: json, yaml, text" short:"o" default:"${output_default_format}" enum:",json,yaml,text"`
}

func (*CreateCmd) Help

func (c *CreateCmd) Help() string

func (*CreateCmd) Run

func (c *CreateCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type DeleteCmd

type DeleteCmd struct {
	ClusterID string `help:"The ID of the cluster" required:"" name:"cluster-id"`
	SecretID  string `help:"The UUID of the secret to delete" required:"" name:"secret-id"`
}

func (*DeleteCmd) Help

func (c *DeleteCmd) Help() string

func (*DeleteCmd) Run

func (c *DeleteCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type GetCmd

type GetCmd struct {
	ClusterID string `help:"The ID of the cluster" required:"" name:"cluster-id"`
	SecretID  string `help:"The UUID of the secret to view" required:"" name:"secret-id"`
	Output    string `help:"Output format. One of: json, yaml, text" short:"o" default:"${output_default_format}" enum:",json,yaml,text"`
}

func (*GetCmd) Help

func (c *GetCmd) Help() string

func (*GetCmd) Run

func (c *GetCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type ListCmd

type ListCmd struct {
	ClusterID string `help:"The ID of the cluster to list secrets for" required:"" name:"cluster-id"`
	Output    string `help:"Output format. One of: json, yaml, text" short:"o" default:"${output_default_format}" enum:",json,yaml,text"`
}

func (*ListCmd) Help

func (c *ListCmd) Help() string

func (*ListCmd) Run

func (c *ListCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type UpdateCmd

type UpdateCmd struct {
	ClusterID   string `help:"The ID of the cluster" required:"" name:"cluster-id"`
	SecretID    string `help:"The UUID of the secret to update" required:"" name:"secret-id"`
	Description string `help:"Update the description of the secret" optional:""`
	Policy      string `help:"Update the access policy for the secret (YAML format)" optional:""`
	UpdateValue bool   `help:"Prompt to update the secret value" optional:"" name:"update-value"`
	Output      string `help:"Output format. One of: json, yaml, text" short:"o" default:"${output_default_format}" enum:",json,yaml,text"`
}

func (*UpdateCmd) Help

func (c *UpdateCmd) Help() string

func (*UpdateCmd) Run

func (c *UpdateCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

func (*UpdateCmd) Validate

func (c *UpdateCmd) Validate() error

Jump to

Keyboard shortcuts

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