config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultProfile = "default"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Type   string
	Config map[string]interface{}
}

type Config

type Config struct {
	Uri      *url.URL
	Path     map[string]string
	Query    map[string]string
	Header   map[string]string
	Auth     AuthConfig
	Insecure bool
	Debug    bool
}

type ConfigProvider

type ConfigProvider struct {
	ConfigFileName string
	// contains filtered or unexported fields
}

func (ConfigProvider) Config

func (cp ConfigProvider) Config(name string) *Config

func (*ConfigProvider) Load

func (cp *ConfigProvider) Load(data []byte) error

func (*ConfigProvider) Update

func (cp *ConfigProvider) Update(profileName string, clientId string, clientSecret string, organization string, tenant string) error

Jump to

Keyboard shortcuts

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