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: 0

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