uri

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIHost added in v1.9.0

func APIHost() string

APIHost returns the API origin (scheme + host[+port]) derived from api_url. CreateResourceURI bases include a trailing /api/v1; this strips that suffix so callers can join full paths like /api/v1/environment or /api/v2/environment.

func CreateResourceURI

func CreateResourceURI(action, resource, id, subresource string, params map[string]string) string

func MaxResponseBytes added in v1.9.0

func MaxResponseBytes() int

MaxResponseBytes is the response body cap for shipyard api.

func ResolveAPIPath added in v1.9.0

func ResolveAPIPath(path string, org string) (string, error)

ResolveAPIPath validates path (must start with /api/v1 or /api/v2) and returns an absolute URL against APIHost, merging org into the query when set and not already present on the path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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