utils

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeFQDNs added in v0.0.7

func GetNodeFQDNs(hostsRaw []string) ([]string, error)

func GetNodeIds added in v0.0.7

func GetNodeIds(hosts []string) ([]uint32, error)

func LogOperation

func LogOperation(logger *zap.SugaredLogger, op *Ydb_Operations.Operation)

func ParseMajorMinorPatchFromVersion added in v0.0.8

func ParseMajorMinorPatchFromVersion(version string) (major, minor, patch int, err error)

func ParseSSHArgs

func ParseSSHArgs(rawArgs string) []string

func PopulateTenantToNodesMapping added in v0.0.14

func PopulateTenantToNodesMapping(nodes []*Ydb_Maintenance.Node) map[string][]uint32

func WrapWithRetries

func WrapWithRetries(
	maxAttempts int,
	f func() (*Ydb_Operations.Operation, error),
) (*Ydb_Operations.Operation, error)

Types

type RetryExceededError added in v0.0.13

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

func (*RetryExceededError) Error added in v0.0.13

func (e *RetryExceededError) Error() string

func (*RetryExceededError) Is added in v0.0.13

func (e *RetryExceededError) Is(targetErr error) bool

func (*RetryExceededError) Unwrap added in v0.0.13

func (e *RetryExceededError) Unwrap() error

Jump to

Keyboard shortcuts

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