utils

package
v0.0.0-...-95daafa Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAgent

func GetAgent(client *gophercloud.ServiceClient, agentType string, host string) (*agents.Agent, error)

GetAgent get a specific neutron agent for agentType and host

func GetConfig

func GetConfig() (*ini.File, error)

GetConfig parses ini files from "--config-file" command line options and returns the parsed ini cfg

func GetHost

func GetHost(cfg *ini.File) (string, error)

GetHost return config file override hostname and fallbacks to system hostname

func GetSubnetsWithDHCPEnabled

func GetSubnetsWithDHCPEnabled(client *gophercloud.ServiceClient, networkId string) ([]subnets.Subnet, error)

Types

type Keystone

type Keystone struct {
	Provider *gophercloud.ProviderClient
	Eo       gophercloud.EndpointOpts
}

Keystone is a container for keystone provider and endpoint config

func GetKeystone

func GetKeystone(cfg *ini.File) (*Keystone, error)

GetKeystone uses parsed ini file cfg and authenticates against Keystone with the [keystone_authtoken] credentials

Jump to

Keyboard shortcuts

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