secret

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package secret provides functions to manage secrets on onex platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdCreate returns new initialized instance of create sub command.

func NewCmdDelete

func NewCmdDelete(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdDelete returns new initialized instance of delete sub command.

func NewCmdGet

func NewCmdGet(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdGet returns new initialized instance of get sub command.

func NewCmdList

func NewCmdList(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdList returns new initialized instance of list sub command.

func NewCmdSecret

func NewCmdSecret(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdSecret returns new initialized instance of 'secret' sub command.

func NewCmdUpdate

func NewCmdUpdate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

NewCmdUpdate returns new initialized instance of update sub command.

Types

type CreateOptions

type CreateOptions struct {
	Description string
	Expires     int64

	CreateSecretRequest *v1.CreateSecretRequest

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

CreateOptions is an options struct to support create subcommands.

func NewCreateOptions

func NewCreateOptions(ioStreams genericclioptions.IOStreams) *CreateOptions

NewCreateOptions returns an initialized CreateOptions instance.

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*CreateOptions) Run

func (o *CreateOptions) Run(f cmdutil.Factory, args []string) error

Run executes a create subcommand using the specified options.

func (*CreateOptions) Validate

func (o *CreateOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

type DeleteOptions

type DeleteOptions struct {
	Name string

	DeleteSecretRequest *v1.DeleteSecretRequest

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

DeleteOptions is an options struct to support delete subcommands.

func NewDeleteOptions

func NewDeleteOptions(ioStreams genericclioptions.IOStreams) *DeleteOptions

NewDeleteOptions returns an initialized DeleteOptions instance.

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(f cmdutil.Factory) error

Run executes a delete subcommand using the specified options.

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

type GetOptions

type GetOptions struct {
	Name string

	GetSecretRequest *v1.GetSecretRequest

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

GetOptions is an options struct to support get subcommands.

func NewGetOptions

func NewGetOptions(ioStreams genericclioptions.IOStreams) *GetOptions

NewGetOptions returns an initialized GetOptions instance.

func (*GetOptions) Complete

func (o *GetOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*GetOptions) Run

func (o *GetOptions) Run(f cmdutil.Factory, args []string) error

Run executes a get subcommand using the specified options.

func (*GetOptions) Validate

func (o *GetOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

type ListOptions

type ListOptions struct {
	Offset int64
	Limit  int64

	ListSecretRequest *v1.ListSecretRequest

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ListOptions is an options struct to support list subcommands.

func NewListOptions

func NewListOptions(ioStreams genericclioptions.IOStreams) *ListOptions

NewListOptions returns an initialized ListOptions instance.

func (*ListOptions) Complete

func (o *ListOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*ListOptions) Run

func (o *ListOptions) Run(f cmdutil.Factory, args []string) error

Run executes a list subcommand using the specified options.

func (*ListOptions) Validate

func (o *ListOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

type UpdateOptions

type UpdateOptions struct {
	Description string
	Expires     int64
	Status      int32

	UpdateSecretRequest *v1.UpdateSecretRequest

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

UpdateOptions is an options struct to support update subcommands.

func NewUpdateOptions

func NewUpdateOptions(ioStreams genericclioptions.IOStreams) *UpdateOptions

NewUpdateOptions returns an initialized UpdateOptions instance.

func (*UpdateOptions) Complete

func (o *UpdateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*UpdateOptions) Run

func (o *UpdateOptions) Run(f cmdutil.Factory, args []string) error

Run executes a update subcommand using the specified options.

func (*UpdateOptions) Validate

func (o *UpdateOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

Jump to

Keyboard shortcuts

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