auth

package
v0.0.0-...-d694637 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: GPL-3.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessKey           string
	SecretKey           string
	CACertFile          string
	AllowReauth         bool
	ClientCertFile      string
	ClientKeyFile       string
	Cloud               string
	DomainID            string
	DomainName          string
	EndpointType        string
	IdentityEndpoint    string
	Insecure            bool
	Password            string
	Passcode            string
	Region              string
	Swauth              bool
	TenantID            string
	TenantName          string
	Token               string
	SecurityToken       string
	Username            string
	UserID              string
	AgencyName          string
	AgencyDomainName    string
	DelegatedProject    string
	MaxRetries          int
	MaxBackoffRetries   int
	BackoffRetryTimeout int

	UserAgent string
	// contains filtered or unexported fields
}

func (*Config) Load

func (c *Config) Load() error

Load - load existing configuration from config files (`clouds.yaml`, etc.) and env variables

func (*Config) LoadAndValidate

func (c *Config) LoadAndValidate() (*OpenTelekomCloudClient, error)

type OpenTelekomCloudClient

type OpenTelekomCloudClient struct {
	ProjectClient *golangsdk.ProviderClient
	DomainClient  *golangsdk.ProviderClient
	// contains filtered or unexported fields
}

func NewOpenTelekomCloudClient

func NewOpenTelekomCloudClient(cloud string) (*OpenTelekomCloudClient, error)

type RoundTripper

type RoundTripper struct {
	Rt         http.RoundTripper
	OsDebug    bool
	MaxRetries int
}

RoundTripper satisfies the http.RoundTripper interface and is used to customize the default http client RoundTripper to allow for logging.

func (*RoundTripper) RoundTrip

func (lrt *RoundTripper) RoundTrip(request *http.Request) (*http.Response, error)

RoundTrip performs a round-trip HTTP request and logs relevant information about it.

Jump to

Keyboard shortcuts

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