testing

package
v0.6.28 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 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

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

func DeleteTestNetwork

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

func InitTestApp

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

func MetadataTest

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

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

Jump to

Keyboard shortcuts

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