Documentation
¶
Index ¶
- Variables
- func NewAcceleratorV1(provider *gophercloud.ProviderClient, opts gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
- func NewProvider(defaultConf string, opts ...Option) (*gophercloud.ProviderClient, error)
- type Helper
- type Option
- func AuthType(authType string) Option
- func ConfFile(confFile string) Option
- func DomainID(domainID string) Option
- func DomainName(domainName string) Option
- func IdentityAPIVersion(identityAPIVersion string) Option
- func IdentityEndpoint(identityEndpoint string) Option
- func ImageAPIVersion(imageAPIVersion string) Option
- func Passcode(passcode string) Option
- func Password(password string) Option
- func ProjectDomainName(projectDomainName string) Option
- func ProjectName(projectName string) Option
- func Scope(scope *gophercloud.AuthScope) Option
- func TenantID(tenantID string) Option
- func TenantName(tenantName string) Option
- func UserDomainName(userDomainName string) Option
- func UserID(userID string) Option
- func Username(username string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultEndpointOpts = gophercloud.EndpointOpts{ Region: os.Getenv("OS_REGION_NAME"), } )
Functions ¶
func NewAcceleratorV1 ¶
func NewAcceleratorV1(provider *gophercloud.ProviderClient, opts gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error)
func NewProvider ¶
func NewProvider(defaultConf string, opts ...Option) (*gophercloud.ProviderClient, error)
Types ¶
type Option ¶
type Option func(*Options)
func DomainName ¶
func IdentityAPIVersion ¶
func IdentityEndpoint ¶
func ImageAPIVersion ¶
func ProjectDomainName ¶
func ProjectName ¶
func Scope ¶
func Scope(scope *gophercloud.AuthScope) Option
func TenantName ¶
func UserDomainName ¶
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
)
Click to show internal directories.
Click to hide internal directories.