nodes

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MPL-2.0 Imports: 104 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands []*cobra.Command

Commands is a list of commands published by the package.

View Source
var GlobalArgs global.Args

GlobalArgs is the common arguments for the root command.

Functions

func CompleteConfigContext

func CompleteConfigContext(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

CompleteConfigContext represents tab completion for `--context` argument and `config [context|remove]` command.

func CompleteNodes

func CompleteNodes(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

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

WipeMode apply, patch, edit config update mode.

func (*WipeMode) Set

func (m *WipeMode) Set(value string) error

Set implements Flag interface.

func (WipeMode) String

func (m WipeMode) String() string

func (*WipeMode) Type

func (m *WipeMode) Type() string

Type implements Flag interface.

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.

Jump to

Keyboard shortcuts

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