uri

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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