client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeCurrentContext added in v0.2.0

func ChangeCurrentContext(context string)

func NewClient

func NewClient(verbose bool, context string) *vcdsdk.Client

func PrintCurrentContext added in v0.2.0

func PrintCurrentContext()

Types

type Cache

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

func (*Cache) CachedClient

func (cache *Cache) CachedClient(verbose bool, context string) (*vcdsdk.Client, error)

type Config

type Config struct {
	Contexts       []VCDInfo `yaml:"contexts"`
	CurrentContext string    `yaml:"currentContext,omitempty"`
}

type VCDInfo added in v0.2.0

type VCDInfo struct {
	Name         string `yaml:"name"`
	RefreshToken string `yaml:"refreshToken,omitempty"`
	Org          string `yaml:"org,omitempty"`
	Site         string `yaml:"site"`
	Ovdc         string `yaml:"ovdc,omitempty"`
	Insecure     bool   `yaml:"insecure,omitempty"`
	Username     string `yaml:"username,omitempty"`
	Password     string `yaml:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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