provider

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cloud NewCloud, caCert []byte) (*gophercloud.ProviderClient, *clientconfig.ClientOpts, string, error)

func NewClientFromCluster

func NewClientFromCluster(ctx context.Context, ctrlClient client.Client, openStackCluster *infrav1.OpenStackCluster) (*gophercloud.ProviderClient, *clientconfig.ClientOpts, string, error)

func NewClientFromMachine

func NewClientFromMachine(ctx context.Context, ctrlClient client.Client, openStackMachine *infrav1.OpenStackMachine) (*gophercloud.ProviderClient, *clientconfig.ClientOpts, string, error)

Types

type NewAuthInfo

type NewAuthInfo struct {
	clientconfig.AuthInfo
	TrustID string `yaml:"trust_id,omitempty" json:"trust_id,omitempty"`
}

type NewCloud

type NewCloud struct {
	Cloud      string                `yaml:"cloud,omitempty" json:"cloud,omitempty"`
	Profile    string                `yaml:"profile,omitempty" json:"profile,omitempty"`
	AuthInfo   *NewAuthInfo          `yaml:"auth,omitempty" json:"auth,omitempty"`
	AuthType   clientconfig.AuthType `yaml:"auth_type,omitempty" json:"auth_type,omitempty"`
	RegionName string                `yaml:"region_name,omitempty" json:"region_name,omitempty"`
	Regions    []clientconfig.Region `yaml:"regions,omitempty" json:"regions,omitempty"`

	// EndpointType and Interface both specify whether to use the public, internal,
	// or admin interface of a service. They should be considered synonymous, but
	// EndpointType will take precedence when both are specified.
	EndpointType string `yaml:"endpoint_type,omitempty" json:"endpoint_type,omitempty"`
	Interface    string `yaml:"interface,omitempty" json:"interface,omitempty"`

	// API Version overrides.
	IdentityAPIVersion string `yaml:"identity_api_version,omitempty" json:"identity_api_version,omitempty"`
	VolumeAPIVersion   string `yaml:"volume_api_version,omitempty" json:"volume_api_version,omitempty"`

	// Verify whether or not SSL API requests should be verified.
	Verify *bool `yaml:"verify,omitempty" json:"verify,omitempty"`

	// CACertFile a path to a CA Cert bundle that can be used as part of
	// verifying SSL API requests.
	CACertFile string `yaml:"cacert,omitempty" json:"cacert,omitempty"`

	// ClientCertFile a path to a client certificate to use as part of the SSL
	// transaction.
	ClientCertFile string `yaml:"cert,omitempty" json:"cert,omitempty"`

	// ClientKeyFile a path to a client key to use as part of the SSL
	// transaction.
	ClientKeyFile string `yaml:"key,omitempty" json:"key,omitempty"`
}

NewCloud represents an entry in a clouds.yaml/public-clouds.yaml/secure.yaml file.

type NewClouds

type NewClouds struct {
	Clouds map[string]NewCloud `yaml:"clouds" json:"clouds"`
}

Jump to

Keyboard shortcuts

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