testing

package
v0.5.27 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMapInMap

func CheckMapInMap(srcMap map[string]interface{}, dstMap map[string]interface{}) bool

func CompareMetadata

func CompareMetadata(srcMeta interface{}, dstMeta interface{}) (bool, error)

func CreateTestNetwork added in v0.5.19

func CreateTestNetwork(client *gcorecloud.ServiceClient, opts networks.CreateOpts) (string, error)

func DeleteTestNetwork added in v0.5.19

func DeleteTestNetwork(client *gcorecloud.ServiceClient, networkID string) error

func InitTestApp

func InitTestApp(args []string) (*cli.App, *cli.Context)

func MetadataTest added in v0.5.18

func MetadataTest(getMetadata FuncGetMetadata, a *cli.App, resourceName string, resourceID string) error

func NormalizeMetadata

func NormalizeMetadata(metadata interface{}, defaults ...bool) (map[string]interface{}, error)

func PrepareMetadata

func PrepareMetadata(apiMetadata []metadata.Metadata) (metadataMap map[string]string, metadataReadOnly []map[string]interface{})

Types

type FuncGetMetadata added in v0.5.18

type FuncGetMetadata func() ([]metadata.Metadata, error)

Jump to

Keyboard shortcuts

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