Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.37.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogCfg

func LogCfg(authOpts AuthOpts)

func NewBlockStorageV3

NewBlockStorageV3 creates a ServiceClient that may be used with the Cinder v3 API

func NewComputeV2

NewComputeV2 creates a ServiceClient that may be used with the nova v2 API

func NewKeyManagerV1

NewKeyManagerV1 creates a ServiceClient that can be used with KeyManager v1 API

func NewLoadBalancerV2

NewLoadBalancerV2 creates a ServiceClient that may be used with the Neutron LBaaS v2 API

func NewNetworkV2

NewNetworkV2 creates a ServiceClient that may be used with the neutron v2 API

func NewOpenStackClient

func NewOpenStackClient(cfg *AuthOpts, userAgent string, extraUserAgent ...string) (*gophercloud.ProviderClient, error)

NewOpenStackClient creates a new instance of the openstack client

func ReadClouds

func ReadClouds(authOpts *AuthOpts) error

ReadClouds reads Reads clouds.yaml to generate a Config Allows the cloud-config to have priority

Types

type AuthOpts

type AuthOpts struct {
	AuthURL          string                   `` /* 158-byte string literal not displayed */
	UserID           string                   `gcfg:"user-id" mapstructure:"user-id" name:"os-userID" value:"optional"`
	Username         string                   `name:"os-userName" value:"optional"`
	Password         string                   `name:"os-password" value:"optional"`
	TenantID         string                   `gcfg:"tenant-id" mapstructure:"project-id" name:"os-projectID" value:"optional"`
	TenantName       string                   `gcfg:"tenant-name" mapstructure:"project-name" name:"os-projectName" value:"optional"`
	TrustID          string                   `gcfg:"trust-id" mapstructure:"trust-id" name:"os-trustID" value:"optional"`
	TrusteeID        string                   `gcfg:"trustee-id" mapstructure:"trustee-id" name:"os-trusteeID" value:"optional" dependsOn:"os-trustID"`
	TrusteePassword  string                   `gcfg:"trustee-password" mapstructure:"trustee-password" name:"os-trusteePassword" value:"optional" dependsOn:"os-trustID"`
	DomainID         string                   `gcfg:"domain-id" mapstructure:"domain-id" name:"os-domainID" value:"optional"`
	DomainName       string                   `gcfg:"domain-name" mapstructure:"domain-name" name:"os-domainName" value:"optional"`
	TenantDomainID   string                   `gcfg:"tenant-domain-id" mapstructure:"project-domain-id" name:"os-projectDomainID" value:"optional"`
	TenantDomainName string                   `gcfg:"tenant-domain-name" mapstructure:"project-domain-name" name:"os-projectDomainName" value:"optional"`
	UserDomainID     string                   `gcfg:"user-domain-id" mapstructure:"user-domain-id" name:"os-userDomainID" value:"optional"`
	UserDomainName   string                   `gcfg:"user-domain-name" mapstructure:"user-domain-name" name:"os-userDomainName" value:"optional"`
	Region           string                   `name:"os-region" value:"optional"`
	EndpointType     gophercloud.Availability `gcfg:"os-endpoint-type" mapstructure:"os-endpoint-type" name:"os-endpointType" value:"optional"`
	CAFile           string                   `gcfg:"ca-file" mapstructure:"ca-file" name:"os-certAuthorityPath" value:"optional"`
	TLSInsecure      string                   `gcfg:"tls-insecure" mapstructure:"tls-insecure" name:"os-TLSInsecure" value:"optional" matches:"^true|false$"`
	Token            string                   `gcfg:"token" mapstructure:"token" name:"os-token" value:"optional"`

	// TLS client auth
	CertFile string `gcfg:"cert-file" mapstructure:"cert-file" name:"os-clientCertPath" value:"optional" dependsOn:"os-clientKeyPath"`
	KeyFile  string `gcfg:"key-file" mapstructure:"key-file" name:"os-clientKeyPath" value:"optional" dependsOn:"os-clientCertPath"`

	// backward compatibility with the manila-csi-plugin
	CAFileContents string `name:"os-certAuthority" value:"optional"`

	UseClouds  bool   `gcfg:"use-clouds" mapstructure:"use-clouds" name:"os-useClouds" value:"optional"`
	CloudsFile string `gcfg:"clouds-file,omitempty" mapstructure:"clouds-file,omitempty" name:"os-cloudsFile" value:"optional"`
	Cloud      string `gcfg:"cloud,omitempty" mapstructure:"cloud,omitempty" name:"os-cloud" value:"optional"`

	ApplicationCredentialID     string `` /* 167-byte string literal not displayed */
	ApplicationCredentialName   string `` /* 173-byte string literal not displayed */
	ApplicationCredentialSecret string `` /* 204-byte string literal not displayed */
}

func (AuthOpts) ToAuth3Options

func (authOpts AuthOpts) ToAuth3Options() gophercloud.AuthOptions

func (AuthOpts) ToAuthOptions

func (authOpts AuthOpts) ToAuthOptions() gophercloud.AuthOptions

type Logger

type Logger struct{}

func (Logger) Printf

func (l Logger) Printf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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