client

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 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 Config

type Config 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"` // encode as base64
	LoginTime string `json:"loginTime" yaml:"loginTime" mapstructure:"loginTime"`
	ExpiresIn string `json:"expiresIn" yaml:"expiresIn" mapstructure:"expiresIn"`
}

Config used across to access the mycontroller

func (*Config) EncodePassword

func (c *Config) EncodePassword()

EncodePassword encodes and update the password

func (*Config) GetPassword

func (c *Config) GetPassword() string

GetPassword decodes and returns the password

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