auth

package
v0.0.0-...-80377ec Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 13 Imported by: 9

Documentation

Overview

Package auth provides common functionality for Terraform and Terraform plugins to authenticate with OpenStack.

It includes a wide array of features, such as flexible authentication, debugging, client creation, endpoint customization and more.

While this package is specific to Terraform, it can be used for any kind of Terraform feature: core, backend, and plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CACertFile                  string
	ClientCertFile              string
	ClientKeyFile               string
	Cloud                       string
	DefaultDomain               string
	DomainID                    string
	DomainName                  string
	EndpointOverrides           map[string]interface{}
	EndpointType                string
	IdentityEndpoint            string
	Insecure                    *bool
	Password                    string
	ProjectDomainName           string
	ProjectDomainID             string
	Region                      string
	Swauth                      bool
	TenantID                    string
	TenantName                  string
	Token                       string
	UserDomainName              string
	UserDomainID                string
	Username                    string
	UserID                      string
	ApplicationCredentialID     string
	ApplicationCredentialName   string
	ApplicationCredentialSecret string
	UseOctavia                  bool
	MaxRetries                  int
	DisableNoCacheHeader        bool
	Context                     context.Context

	DelayedAuth bool
	AllowReauth bool
	OsClient    *gophercloud.ProviderClient
	AuthOpts    *gophercloud.AuthOptions

	TerraformVersion string
	SDKVersion       string
	EnableLogger     bool

	*mutexkv.MutexKV
	// contains filtered or unexported fields
}

func (*Config) Authenticate

func (c *Config) Authenticate() error

func (*Config) BlockStorageV1Client

func (c *Config) BlockStorageV1Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) BlockStorageV2Client

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

func (*Config) BlockStorageV3Client

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

func (*Config) CommonServiceClientInit

func (c *Config) CommonServiceClientInit(newClient commonCommonServiceClientInitFunc, region, service string) (*gophercloud.ServiceClient, error)

func (*Config) ComputeV2Client

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

func (*Config) ContainerInfraV1Client

func (c *Config) ContainerInfraV1Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) DNSV2Client

func (c *Config) DNSV2Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) DatabaseV1Client

func (c *Config) DatabaseV1Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) DetermineEndpoint

func (c *Config) DetermineEndpoint(client *gophercloud.ServiceClient, service string) *gophercloud.ServiceClient

DetermineEndpoint is a helper method to determine if the user wants to override an endpoint returned from the catalog.

func (*Config) DetermineRegion

func (c *Config) DetermineRegion(region string) string

DetermineRegion is a helper method to determine the region based on the user's settings.

func (*Config) IdentityV3Client

func (c *Config) IdentityV3Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) ImageV2Client

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

func (*Config) KeyManagerV1Client

func (c *Config) KeyManagerV1Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) LoadAndValidate

func (c *Config) LoadAndValidate() error

LoadAndValidate performs the authentication and initial configuration of an OpenStack Provider Client. This sets up the HTTP client and authenticates to an OpenStack cloud.

Individual Service Clients are created later in this file.

func (*Config) LoadBalancerV2Client

func (c *Config) LoadBalancerV2Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) MessagingV2Client

func (c *Config) MessagingV2Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) NetworkingV2Client

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

func (*Config) ObjectStorageV1Client

func (c *Config) ObjectStorageV1Client(region string) (*gophercloud.ServiceClient, error)

func (*Config) OrchestrationV1Client

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

func (*Config) SharedfilesystemV2Client

func (c *Config) SharedfilesystemV2Client(region string) (*gophercloud.ServiceClient, error)

Jump to

Keyboard shortcuts

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