gazctlcmd

package
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 37 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JournalsCfg = new(struct {
		BaseConfig
		Broker mbp.ClientConfig `group:"Broker" namespace:"broker" env-namespace:"BROKER"`
	})
	ShardsCfg = new(struct {
		BaseConfig
		Consumer mbp.ClientConfig `group:"Consumer" namespace:"consumer" env-namespace:"CONSUMER"`
		Broker   mbp.ClientConfig `group:"Broker" namespace:"broker" env-namespace:"BROKER"`
	})

	// CommandRegistry is used to build a runtime command tree
	CommandRegistry = mbp.NewCommandRegistry()
)

Functions

func AddCmdAttachUUIDs

func AddCmdAttachUUIDs(cmd *flags.Command) error

Types

type ApplyConfig

type ApplyConfig struct {
	SpecsPath  string `long:"specs" default:"-" description:"Input specifications path to apply. Use '-' for stdin"`
	DryRun     bool   `long:"dry-run" description:"Perform a dry-run of the apply"`
	MaxTxnSize int    `` /* 180-byte string literal not displayed */
}

ApplyConfig is common configuration of apply operations.

type BaseConfig

type BaseConfig struct {
	mbp.ZoneConfig
	Log mbp.LogConfig `group:"Logging" namespace:"log" env-namespace:"LOG"`
}

BaseConfig for gazctl

type EditConfig

type EditConfig struct {
	Selector   string `long:"selector" short:"l" required:"true" description:"Label Selector query to filter on" no-ini:"true"`
	MaxTxnSize int    `` /* 180-byte string literal not displayed */
}

EditConfig is common configuration for exit operations.

type ListConfig

type ListConfig struct {
	Selector string   `long:"selector" short:"l" description:"Label Selector query to filter on"`
	Format   string   `long:"format" short:"o" choice:"table" choice:"yaml" choice:"json" choice:"proto" default:"table" description:"Output format"`
	Labels   []string `long:"label-columns" short:"L" description:"Labels to present as columns, eg -L label-one -L label-two"`
	Primary  bool     `long:"primary" short:"p" description:"Show primary column"`
	Replicas bool     `long:"replicas" short:"r" description:"Show replicas column"`
	RF       bool     `long:"rf" description:"Show replication factor column"`
}

ListConfig is common configuration of list operations.

Directories

Path Synopsis
Package editor provides utilities for editing and re-editing text files in an editor until the changes are accepted or the user aborts the attempt.
Package editor provides utilities for editing and re-editing text files in an editor until the changes are accepted or the user aborts the attempt.

Jump to

Keyboard shortcuts

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