cmd

package
v0.0.0-...-1f4b241 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Overview

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

* Copyright Metaplay. Licensed under the Apache-2.0 license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CollectCpuProfileOpts

type CollectCpuProfileOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

func (*CollectCpuProfileOpts) Prepare

func (o *CollectCpuProfileOpts) Prepare(cmd *cobra.Command, args []string) error

func (*CollectCpuProfileOpts) Run

type CollectHeapDumpOpts

type CollectHeapDumpOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

func (*CollectHeapDumpOpts) Prepare

func (o *CollectHeapDumpOpts) Prepare(cmd *cobra.Command, args []string) error

func (*CollectHeapDumpOpts) Run

func (o *CollectHeapDumpOpts) Run(cmd *cobra.Command) error

type CommandOptions

type CommandOptions interface {
	Prepare(cmd *cobra.Command, args []string) error
	Run(cmd *cobra.Command) error
}

Base interface for a options-based command. Take a look at any of the structs implementing commands to see how this should be used.

type CreateSecretOpts

type CreateSecretOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

func (*CreateSecretOpts) Prepare

func (o *CreateSecretOpts) Prepare(cmd *cobra.Command, args []string) error

func (*CreateSecretOpts) Run

func (o *CreateSecretOpts) Run(cmd *cobra.Command) error

type DeleteSecretOpts

type DeleteSecretOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

func (*DeleteSecretOpts) Prepare

func (o *DeleteSecretOpts) Prepare(cmd *cobra.Command, args []string) error

func (*DeleteSecretOpts) Run

func (o *DeleteSecretOpts) Run(cmd *cobra.Command) error

type ListSecretsOpts

type ListSecretsOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

func (*ListSecretsOpts) Prepare

func (o *ListSecretsOpts) Prepare(cmd *cobra.Command, args []string) error

func (*ListSecretsOpts) Run

func (o *ListSecretsOpts) Run(cmd *cobra.Command) error

type LogEntry

type LogEntry struct {
	// contains filtered or unexported fields
}

type LoginOpts

type LoginOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

Sign in a natural user to Metaplay Auth using the browser.

func (*LoginOpts) Prepare

func (o *LoginOpts) Prepare(cmd *cobra.Command, args []string) error

func (*LoginOpts) Run

func (o *LoginOpts) Run(cmd *cobra.Command) error

type LogoutOpts

type LogoutOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

func (*LogoutOpts) Prepare

func (o *LogoutOpts) Prepare(cmd *cobra.Command, args []string) error

func (*LogoutOpts) Run

func (o *LogoutOpts) Run(cmd *cobra.Command) error

type MachineLoginOpts

type MachineLoginOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

func (*MachineLoginOpts) Prepare

func (o *MachineLoginOpts) Prepare(cmd *cobra.Command, args []string) error

func (*MachineLoginOpts) Run

func (o *MachineLoginOpts) Run(cmd *cobra.Command) error

type PositionalArgSpec

type PositionalArgSpec struct {
	Name        string  // Name of the argument (eg, ENVIRONMENT)
	Description string  // Description of the argument
	IsRequired  bool    // Is the argument required (or optional)?
	ValuePtr    *string // Pointer to the parsed value. \todo support more types?
}

type PositionalArgs

type PositionalArgs struct {
	Specs                []PositionalArgSpec // Array of arguments for the command
	ExtraArgsPtr         *[]string           // Pointer to extra args (if specified)
	ExtraArgsDescription string              // Description of extra args (if any)
}

func (*PositionalArgs) AddStringArgument

func (args *PositionalArgs) AddStringArgument(valuePtr *string, name string, description string)

func (*PositionalArgs) AddStringArgumentOpt

func (args *PositionalArgs) AddStringArgumentOpt(valuePtr *string, name string, description string)

func (*PositionalArgs) GetHelpText

func (args *PositionalArgs) GetHelpText() string

func (*PositionalArgs) ParseCommandLine

func (args *PositionalArgs) ParseCommandLine(argv []string) error

func (*PositionalArgs) SetExtraArgs

func (args *PositionalArgs) SetExtraArgs(extraArgsPtr *[]string, description string)

type PushImageOptions

type PushImageOptions struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

Push the (already built) docker image to the remote docker repository.

func (*PushImageOptions) Prepare

func (o *PushImageOptions) Prepare(cmd *cobra.Command, args []string) error

func (*PushImageOptions) Run

func (o *PushImageOptions) Run(cmd *cobra.Command) error

type ShowSecretOpts

type ShowSecretOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

func (*ShowSecretOpts) Prepare

func (o *ShowSecretOpts) Prepare(cmd *cobra.Command, args []string) error

func (*ShowSecretOpts) Run

func (o *ShowSecretOpts) Run(cmd *cobra.Command) error

type UsePositionalArgs

type UsePositionalArgs struct {
	// contains filtered or unexported fields
}

func (*UsePositionalArgs) Arguments

func (o *UsePositionalArgs) Arguments() *PositionalArgs

type VersionOpts

type VersionOpts struct {
	// contains filtered or unexported fields
}

Show the version info of the application.

func (*VersionOpts) Prepare

func (o *VersionOpts) Prepare(cmd *cobra.Command, args []string) error

func (*VersionOpts) Run

func (o *VersionOpts) Run(cmd *cobra.Command) error

type WhoamiOpts

type WhoamiOpts struct {
	UsePositionalArgs
	// contains filtered or unexported fields
}

Display information about the logged in user.

func (*WhoamiOpts) Prepare

func (o *WhoamiOpts) Prepare(cmd *cobra.Command, args []string) error

func (*WhoamiOpts) Run

func (o *WhoamiOpts) Run(cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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