edit

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	secretfacade.Options
	Filter               string
	Interactive          bool
	InteractiveMultiple  bool
	InteractiveSelectAll bool
	ExternalVault        string
	Input                input.Interface
	Results              []*secretfacade.SecretPair
	CommandRunner        cmdrunner.CommandRunner
	QuietCommandRunner   cmdrunner.CommandRunner
}

Options the options for the command

func NewCmdEdit

func NewCmdEdit() (*cobra.Command, *Options)

NewCmdEdit creates a command object for the command

func (*Options) DataToEdit

func (o *Options) DataToEdit(r *secretfacade.SecretPair) []v1.Data

DataToEdit returns the properties to edit

func (*Options) Matches

func (o *Options) Matches(r *secretfacade.SecretPair) bool

Matches returns true if the secret matches the current filter If no filter then just filter out mandatory properties only?

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) VerifyAndFilter added in v0.4.5

func (o *Options) VerifyAndFilter() ([]*secretfacade.SecretPair, error)

Jump to

Keyboard shortcuts

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