utils

package
v0.0.0-...-c757c96 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IDRegEx = "^[a-z0-9-]+$"

IDRegEx regular expression that matches valid OpenPerf IDs

Functions

func ClassifyAPIError

func ClassifyAPIError(err error, resourceType string, resourceID string)

func OPClientConnection

func OPClientConnection(opURL string) *client.OpenPerfAPI

func OPRemoteURL

func OPRemoteURL(cmd *cobra.Command, opURLFlagName string) (string, error)

func ValidateID

func ValidateID(id string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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