client

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 16 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                   `` /* 141-byte string literal not displayed */
	UserID           string                   `gcfg:"user-id" mapstructure:"user-id" name:"os-userID" value:"optional" dependsOn:"os-password"`
	Username         string                   `name:"os-userName" value:"optional" dependsOn:"os-password"`
	Password         string                   `name:"os-password" value:"optional" dependsOn:"os-domainID|os-domainName,os-projectID|os-projectName,os-userID|os-userName"`
	TenantID         string                   `gcfg:"tenant-id" mapstructure:"project-id" name:"os-projectID" value:"optional" dependsOn:"os-password|os-clientCertPath"`
	TenantName       string                   `` /* 127-byte string literal not displayed */
	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" dependsOn:"os-password|os-clientCertPath"`
	DomainName       string                   `gcfg:"domain-name" mapstructure:"domain-name" name:"os-domainName" value:"optional" dependsOn:"os-password|os-clientCertPath"`
	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"`
	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$"`

	// 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() tokens.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