openstack

package
v0.0.0-...-d4a7eef Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultEndpointOpts = gophercloud.EndpointOpts{
		Region: os.Getenv("OS_REGION_NAME"),
	}
)

Functions

func NewProvider

func NewProvider(defaultConf string, opts ...Option) (*gophercloud.ProviderClient, error)

Types

type Helper

type Helper struct {
}

type Option

type Option func(*Options)

func AuthType

func AuthType(authType string) Option

func ConfFile

func ConfFile(confFile string) Option

func DomainID

func DomainID(domainID string) Option

func DomainName

func DomainName(domainName string) Option

func IdentityAPIVersion

func IdentityAPIVersion(identityAPIVersion string) Option

func IdentityEndpoint

func IdentityEndpoint(identityEndpoint string) Option

func ImageAPIVersion

func ImageAPIVersion(imageAPIVersion string) Option

func Passcode

func Passcode(passcode string) Option

func Password

func Password(password string) Option

func ProjectDomainName

func ProjectDomainName(projectDomainName string) Option

func ProjectName

func ProjectName(projectName string) Option

func Scope

func Scope(scope *gophercloud.AuthScope) Option

func TenantID

func TenantID(tenantID string) Option

func TenantName

func TenantName(tenantName string) Option

func UserDomainName

func UserDomainName(userDomainName string) Option

func UserID

func UserID(userID string) Option

func Username

func Username(username string) Option

type Options

type Options struct {
	ConfFile         string `json:"confFile" yaml:"confFile"`
	IdentityEndpoint string `json:"identityEndpoint" yaml:"identityEndpoint"`
	AuthType         string `json:"authType" yaml:"authType"`

	UserID   string `json:"userID" yaml:"userID"`
	Username string `json:"username" yaml:"username"`

	Password string `json:"password" yaml:"password"`
	Passcode string `json:"passcode" yaml:"passcode"`

	TenantID    string `json:"tenantID" yaml:"tenantID"`
	TenantName  string `json:"tenantName" yaml:"tenantName"`
	ProjectName string `json:"projectName" yaml:"projectName"`

	DomainID          string `json:"domainID" yaml:"domainID"`
	DomainName        string `json:"domainName" yaml:"domainName"`
	ProjectDomainName string `json:"projectDomainName" yaml:"projectDomainName"`
	UserDomainName    string `json:"userDomainName" yaml:"userDomainName"`

	IdentityAPIVersion string `json:"identityAPIVersion" yaml:"identityAPIVersion"`
	ImageAPIVersion    string `json:"imageAPIVersion" yaml:"imageAPIVersion"`

	Scope *gophercloud.AuthScope `json:"scope" yaml:"scope"`
}
var (
	Opts *Options
)

func NewConf

func NewConf(file string) (*Options, error)

Directories

Path Synopsis
accelerators

Jump to

Keyboard shortcuts

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