defaults

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 34

Documentation

Index

Constants

View Source
const (
	// DefaultCloudName is the default name of the cloud in clouds.yaml file.
	DefaultCloudName = "openstack"
	// DualStackVIPsPortTag is the identifier of VIPs Port with dual-stack addresses.
	DualStackVIPsPortTag = "-dual-stack-vips-port"
)

Variables

This section is empty.

Functions

func DefaultClientOpts

func DefaultClientOpts(cloudName string) *clientconfig.ClientOpts

DefaultClientOpts generates default client opts based on cloud name

func DefaultComputeAZ added in v0.9.153

func DefaultComputeAZ() string

DefaultComputeAZ returns the default value for Compute availability zone.

func DefaultRootVolumeAZ

func DefaultRootVolumeAZ() string

DefaultRootVolumeAZ returns the default value for Root Volume availability zone.

func NewServiceClient added in v0.9.153

func NewServiceClient(ctx context.Context, service string, opts *clientconfig.ClientOpts) (*gophercloud.ServiceClient, error)

NewServiceClient is a wrapper around Gophercloud's NewServiceClient that ensures we consistently set a user-agent.

func SetPlatformDefaults

func SetPlatformDefaults(p *openstack.Platform, n *types.Networking)

SetPlatformDefaults sets the defaults for the platform.

Types

This section is empty.

Jump to

Keyboard shortcuts

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