create

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserNameKey = "username"
	PasswordKey = "password"

	DefaultPollInterval = 1 * time.Second
	DefaultPollTimeout  = 30 * time.Second
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(client *client.Client) *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	Name      string
	Provider  string
	Endpoint  string
	Databases []string
	UserName  string
	Password  string
}

func (*CreateOptions) BindFlags

func (c *CreateOptions) BindFlags(flags *pflag.FlagSet, command *cobra.Command)

func (*CreateOptions) Run

func (c *CreateOptions) Run(kubeclient *client.Client) error

func (*CreateOptions) Validate

func (c *CreateOptions) Validate(command *cobra.Command, kubeclient *client.Client) error

Jump to

Keyboard shortcuts

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