client

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ResourceGateway = "gateway"
	ResourceNode    = "node"
	ResourceSource  = "source"
	ResourceField   = "field"
)
View Source
const (
	EncodePrefix = "BASE64/"
)

Variables

This section is empty.

Functions

func GetQuickIDValueFunc

func GetQuickIDValueFunc(resourceType string) printer.ValueFunc

Types

type Alias added in v2.2.0

type Alias struct {
	URL       string `json:"url" yaml:"url" mapstructure:"url"`
	Insecure  bool   `json:"insecure" yaml:"insecure" mapstructure:"insecure"`
	Username  string `json:"username" yaml:"username" mapstructure:"username"`
	Password  string `json:"password" yaml:"password" mapstructure:"password"`
	LoginTime string `json:"loginTime" yaml:"loginTime" mapstructure:"loginTime"`
	ExpiresIn string `json:"expiresIn" yaml:"expiresIn" mapstructure:"expiresIn"`
}

Alias is one named connection (server + user session).

func (*Alias) EncodePassword added in v2.2.0

func (a *Alias) EncodePassword()

func (*Alias) GetPassword added in v2.2.0

func (a *Alias) GetPassword() string

type Config

type Config struct {
	Aliases map[string]Alias `json:"aliases" yaml:"aliases" mapstructure:"aliases"`
}

Config holds named server aliases.

func (*Config) EncodePasswords added in v2.2.0

func (c *Config) EncodePasswords()

func (*Config) EnsureAliases added in v2.2.0

func (c *Config) EnsureAliases()

type IOStreams

type IOStreams struct {
	In     io.Reader
	Out    io.Writer
	ErrOut io.Writer
}

IOStreams struct

func NewStdStreams

func NewStdStreams() IOStreams

NewStdStreams returns the standard streams

Jump to

Keyboard shortcuts

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