config

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 6 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 AuthenticatorPluginConfig added in v1.0.3

type AuthenticatorPluginConfig struct {
	Name string
	Path string
}

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
	Output   string
}

func (Config) ClientId added in v1.0.1

func (c Config) ClientId() string

func (Config) ClientSecret added in v1.0.1

func (c Config) ClientSecret() string

func (Config) ConfigureCredentialsAuth added in v1.0.1

func (c Config) ConfigureCredentialsAuth(clientId string, clientSecret string) bool

func (Config) ConfigureLoginAuth added in v1.0.1

func (c Config) ConfigureLoginAuth(clientId string, redirectUri string, scopes string) bool

func (Config) ConfigureOrgTenant added in v1.0.1

func (c Config) ConfigureOrgTenant(organization string, tenant string) bool

func (Config) ConfigurePatAuth added in v1.0.2

func (c Config) ConfigurePatAuth(pat string) bool

func (Config) Organization added in v1.0.1

func (c Config) Organization() string

func (Config) Pat added in v1.0.2

func (c Config) Pat() string

func (Config) RedirectUri added in v1.0.1

func (c Config) RedirectUri() string

func (Config) Scopes added in v1.0.1

func (c Config) Scopes() string

func (Config) Tenant added in v1.0.1

func (c Config) Tenant() string

type ConfigProvider

type ConfigProvider struct {
	ConfigStore ConfigStore
	// contains filtered or unexported fields
}

func (ConfigProvider) Config

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

func (*ConfigProvider) Load

func (cp *ConfigProvider) Load() error

func (ConfigProvider) New added in v1.0.1

func (cp ConfigProvider) New() Config

func (*ConfigProvider) Update

func (cp *ConfigProvider) Update(profileName string, auth map[string]interface{}, path map[string]string) error

type ConfigStore added in v1.0.17

type ConfigStore struct {
	Config     []byte
	ConfigFile string
}

func (ConfigStore) Read added in v1.0.17

func (s ConfigStore) Read() ([]byte, error)

func (ConfigStore) Write added in v1.0.17

func (s ConfigStore) Write(data []byte) error

type PluginConfig added in v1.0.3

type PluginConfig struct {
	Authenticators []AuthenticatorPluginConfig
}

type PluginConfigProvider added in v1.0.3

type PluginConfigProvider struct {
	PluginConfigStore PluginConfigStore
	// contains filtered or unexported fields
}

func (PluginConfigProvider) Config added in v1.0.17

func (cp PluginConfigProvider) Config() PluginConfig

func (*PluginConfigProvider) Load added in v1.0.17

func (cp *PluginConfigProvider) Load() error

type PluginConfigStore added in v1.0.17

type PluginConfigStore struct {
	PluginFile string
}

func (PluginConfigStore) Read added in v1.0.17

func (s PluginConfigStore) Read() ([]byte, error)

Jump to

Keyboard shortcuts

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