vampclientprovider

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitViperConfig

func InitViperConfig(path string, configName string) error

InitViperConfig used in tests so don't use this as a source of truth

Types

type IVampClientProvider added in v0.0.3

type IVampClientProvider interface {
	GetVirtualCluster() string
	SetVirtualCluster(virtualcluster string)
	GetConfigValues() map[string]string
	GetRestClient() (client.IRestClient, error)
}

func New added in v0.0.3

func New() IVampClientProvider

type VampClientProvider added in v0.0.3

type VampClientProvider struct {
	URL            string
	Token          string
	APIVersion     string
	Cert           string
	TokenStore     client.TokenStore
	Project        string
	Cluster        string
	VirtualCluster string
}

func (*VampClientProvider) GetConfigValues added in v0.0.3

func (vpc *VampClientProvider) GetConfigValues() map[string]string

GetConfigValues return configuration values for rest client

func (*VampClientProvider) GetRestClient added in v0.0.3

func (vpc *VampClientProvider) GetRestClient() (client.IRestClient, error)

GetRestClient return current configured client

func (*VampClientProvider) GetVirtualCluster added in v0.0.3

func (vpc *VampClientProvider) GetVirtualCluster() string

func (*VampClientProvider) SetVirtualCluster added in v0.0.3

func (vpc *VampClientProvider) SetVirtualCluster(virtualcluster string)

Jump to

Keyboard shortcuts

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