openstack

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

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 AuthOptions struct {
	IdentityEndpoint string `json:"identityEndpoint"`
	Username         string `json:"username"`
	Password         string `json:"password"`
	TenantName       string `json:"tenantName"`
	AllowReauth      bool   `json:"allowReauth"`
}

type ClientFunc

type ClientFunc func() (*gophercloud.ServiceClient, error)

type Discovery

type Discovery struct {
	// contains filtered or unexported fields
}

type DiscoveryOption

type DiscoveryOption func(*Discovery)

func WithAuthOpts

func WithAuthOpts(o *AuthOptions) DiscoveryOption

WithAuthOpts is an option to set the authentication options

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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