internal

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ErrForbidden = "You do not have enough permissions"
View Source
const ErrInternalServerError = "Keptn API seems to be down"
View Source
const ErrNotAuthenticated = "You are not authenticated. Use the keptn auth command to authenticate based on the API token or an OAuth client"
View Source
const ErrWithStatusCode = "error with status code %d"

Variables

View Source
var APIProvider = getAPISet

APIProvider is used to get a handle to the Keptn API clients

View Source
var PublicDiscovery = auth.NewOauthDiscovery(&http.Client{})

Functions

func JSONPathToJSONObj

func JSONPathToJSONObj(input []string) (string, error)

JSONPathToJSONObj parse a slice of strings of the form "a.b.c=v" and returns a nested JSON of the form {"a":{"b":{"c":"v"}}}

func OnAPIError

func OnAPIError(err error) error

func UnfoldMap

func UnfoldMap(inMap map[string]string) (map[string]interface{}, error)

UnfoldMap takes a map of keys of the form "a.b.c" and values "v" and returns an "unfold" map containing map[a[b[c]]] = v

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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