cfg

package
v1.27.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MPL-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetOptionalEndpoint

func SetOptionalEndpoint(cfg *aws.Config) string

Types

type Config

type Config struct {
	AccessKey        string
	SecretKey        string
	CACertFile       string
	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

	UserAgent string

	HwClient *golangsdk.ProviderClient

	DomainClient *golangsdk.ProviderClient
	// contains filtered or unexported fields
}

func (*Config) AntiddosV1Client

func (c *Config) AntiddosV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) AutoscalingV1Client

func (c *Config) AutoscalingV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) AutoscalingV2Client added in v1.24.4

func (c *Config) AutoscalingV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) BlockStorageV2Client

func (c *Config) BlockStorageV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) BlockStorageV3Client

func (c *Config) BlockStorageV3Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) CbrV3Client

func (c *Config) CbrV3Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) CceV1Client added in v1.24.6

func (c *Config) CceV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) CceV3AddonClient

func (c *Config) CceV3AddonClient(region string) (*golangsdk.ServiceClient, error)

func (*Config) CceV3Client

func (c *Config) CceV3Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) CesV1Client

func (c *Config) CesV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) ComputeV1Client

func (c *Config) ComputeV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) ComputeV2Client

func (c *Config) ComputeV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) CsbsV1Client

func (c *Config) CsbsV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) CssV1Client

func (c *Config) CssV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) CtsV1Client

func (c *Config) CtsV1Client(projectName ProjectName) (*golangsdk.ServiceClient, error)

func (*Config) DcsV1Client

func (c *Config) DcsV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) DdsV3Client

func (c *Config) DdsV3Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) DehV1Client

func (c *Config) DehV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) DmsV1Client

func (c *Config) DmsV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) DnsV2Client

func (c *Config) DnsV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) ElbV1Client

func (c *Config) ElbV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) ElbV2Client added in v1.25.7

func (c *Config) ElbV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) ElbV3Client added in v1.26.1

func (c *Config) ElbV3Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) GetCredentials

func (c *Config) GetCredentials() (*awsCredentials.Credentials, error)

GetCredentials This function is responsible for reading credentials from the environment in the case that they're not explicitly specified in the Terraform configuration.

func (*Config) GetProjectName

func (c *Config) GetProjectName(d SchemaOrDiff) ProjectName

GetProjectName returns the project name that was specified in the resource.

func (*Config) GetRegion

func (c *Config) GetRegion(d SchemaOrDiff) string

GetRegion returns the region that was specified in the resource. If a region was not set, the provider-level region is checked. The provider-level region can either be set by the region argument or by OS_REGION_NAME.

func (*Config) IdentityV30Client

func (c *Config) IdentityV30Client() (*golangsdk.ServiceClient, error)

IdentityV30Client - provides client is used for use with endpoints with invalid "v3.0" URLs

func (*Config) IdentityV3Client

func (c *Config) IdentityV3Client(_ ...string) (*golangsdk.ServiceClient, error)

func (*Config) ImageV1Client

func (c *Config) ImageV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) ImageV2Client

func (c *Config) ImageV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) KmsKeyV1Client

func (c *Config) KmsKeyV1Client(region string) (*golangsdk.ServiceClient, error)

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() error

func (*Config) LtsV2Client

func (c *Config) LtsV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) MrsV1Client

func (c *Config) MrsV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) NatV2Client

func (c *Config) NatV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) NetworkingV1Client

func (c *Config) NetworkingV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) NetworkingV2Client

func (c *Config) NetworkingV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) NewObjectStorageClient

func (c *Config) NewObjectStorageClient(region string) (*obs.ObsClient, error)

func (*Config) OrchestrationV1Client

func (c *Config) OrchestrationV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) RdsTagV1Client

func (c *Config) RdsTagV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) RdsV1Client

func (c *Config) RdsV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) RdsV3Client

func (c *Config) RdsV3Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) S3Client

func (c *Config) S3Client(region string) (*s3.S3, error)

func (*Config) SdrsV1Client

func (c *Config) SdrsV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) SfsTurboV1Client

func (c *Config) SfsTurboV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) SfsV2Client

func (c *Config) SfsV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) SmnV2Client

func (c *Config) SmnV2Client(projectName ProjectName) (*golangsdk.ServiceClient, error)

func (*Config) SwrV2Client added in v1.24.1

func (c *Config) SwrV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) VbsV2Client

func (c *Config) VbsV2Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) VpcEpV1Client added in v1.26.0

func (c *Config) VpcEpV1Client(region string) (*golangsdk.ServiceClient, error)

func (*Config) WafV1Client

func (c *Config) WafV1Client(region string) (*golangsdk.ServiceClient, error)

type ProjectName

type ProjectName string

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.

type SchemaOrDiff

type SchemaOrDiff interface {
	GetOk(key string) (interface{}, bool)
	Get(key string) interface{}
}

Jump to

Keyboard shortcuts

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