Documentation ¶
Index ¶
Constants ¶
View Source
const (
RegionName = "OS_REGION_NAME"
)
Variables ¶
This section is empty.
Functions ¶
func NewComputeDiscovery ¶
func NewComputeDiscovery(opts ...DiscoveryOption) discovery.Discoverer
NewComputeDiscovery creates a new OpenStack discoverer for compute resources based on the options provided in opts. WithAuthOpts is mandatory and must be provided.
func NewStorageDiscovery ¶
func NewStorageDiscovery(opts ...DiscoveryOption) discovery.Discoverer
NewStorageDiscovery creates a new OpenStack discoverer for storage resources based on the options provided in opts. WithAuthOpts is mandatory and must be provided.
Types ¶
type AuthOptions ¶
type ClientFunc ¶
type ClientFunc func() (*gophercloud.ServiceClient, error)
type DiscoveryOption ¶
type DiscoveryOption func(*Discovery)
func WithAuthOpts ¶
func WithAuthOpts(o *AuthOptions) DiscoveryOption
WithAuthOpts is an option to set the authentication options
func WithProvider ¶
func WithProvider(p *gophercloud.ProviderClient) DiscoveryOption
type ExtractorFunc ¶
type ExtractorFunc[T any] func(r pagination.Page) ([]T, error)
type HandlerFunc ¶
type HandlerFunc[T any, R voc.IsCloudResource] func(in *T) (r R, err error)
type ListFunc ¶
type ListFunc[O any] func(client *gophercloud.ServiceClient, opts O) pagination.Pager
Click to show internal directories.
Click to hide internal directories.