Documentation
¶
Index ¶
- Variables
- func CompleteConfigContext(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func CompleteNodes(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func WithClient(action func(context.Context, *client.Client) error, ...) error
- func WithClientAndNodes(action func(context.Context, *client.Client, []string) error, ...) error
- func WithClientMaintenance(enforceFingerprints []string, ...) error
- func WithClientNoNodes(action func(context.Context, *client.Client) error, ...) error
- type WipeMode
Constants ¶
This section is empty.
Variables ¶
var Commands []*cobra.Command
Commands is a list of commands published by the package.
var GlobalArgs global.Args
GlobalArgs is the common arguments for the root command.
Functions ¶
func CompleteConfigContext ¶
CompleteConfigContext represents tab completion for `--context` argument and `config [context|remove]` command.
func CompleteNodes ¶
CompleteNodes represents tab completion for `--nodes` argument.
func WithClient ¶
func WithClient(action func(context.Context, *client.Client) error, dialOptions ...grpc.DialOption) error
WithClient builds upon WithClientNoNodes to provide set of nodes on request context based on config & flags.
func WithClientAndNodes ¶
func WithClientAndNodes(action func(context.Context, *client.Client, []string) error, dialOptions ...grpc.DialOption) error
WithClientAndNodes builds upon WithClientNoNodes to pass a list of nodes via command function.
func WithClientMaintenance ¶
func WithClientMaintenance(enforceFingerprints []string, action func(context.Context, *client.Client) error) error
WithClientMaintenance wraps common code to initialize Chubo OS client in maintenance (insecure mode).
func WithClientNoNodes ¶
func WithClientNoNodes(action func(context.Context, *client.Client) error, dialOptions ...grpc.DialOption) error
WithClientNoNodes wraps common code to initialize Chubo OS client and provide cancellable context.
WithClientNoNodes doesn't set any node information on the request context.
Types ¶
type WipeMode ¶
type WipeMode machineapi.ResetRequest_WipeMode
WipeMode apply, patch, edit config update mode.
Source Files
¶
- apply-config.go
- cgroups.go
- cgroups_resolve_flag_default.go
- cluster_nodes_common.go
- config.go
- configbundle.go
- consulconfig.go
- container_namespace_driver.go
- containers.go
- copy.go
- crashdump.go
- dashboard.go
- debug.go
- disks.go
- diskusage.go
- dmesg.go
- edit.go
- events.go
- get.go
- image.go
- image_containerd_driver_default.go
- image_help_default.go
- image_namespace_alias_default.go
- image_namespace_default_default.go
- inspect.go
- interfaces.go
- list.go
- logs.go
- memory.go
- meta.go
- mounts.go
- netstat.go
- netstat_workload_flag_default.go
- nomadconfig.go
- openbaoconfig.go
- patch.go
- pcap.go
- processes.go
- read.go
- reboot.go
- reset.go
- restart.go
- rollback.go
- root.go
- routes.go
- service.go
- shutdown.go
- stats.go
- stdout_output.go
- support.go
- time.go
- track.go
- upgrade.go
- version.go
- wipe.go
- workload_container_driver_default.go
- workload_legacy_driver_flag_default.go
- workload_namespace_flag_default.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cgroupsprinter provides functions to print cgroup information.
|
Package cgroupsprinter provides functions to print cgroup information. |
|
Package multiplex implements client-side multiplexing helpers.
|
Package multiplex implements client-side multiplexing helpers. |
|
Package output provides writers in different formats.
|
Package output provides writers in different formats. |
|
Package pull implements image pull progress reporting.
|
Package pull implements image pull progress reporting. |