MCPcopy Create free account
hub / github.com/cli/cli / SafeURL

Interface SafeURL

internal/safeurl/safeurl.go:32–38  ·  view source on GitHub ↗

SafeURL is the sealed interface implemented by the URL types in this package. It exists so that a value known to address a safe REST API URL can be passed around and rendered without exposing how it was built.

Source from the content-addressed store, hash-verified

30// It exists so that a value known to address a safe REST API URL can be passed
31// around and rendered without exposing how it was built.
32type SafeURL interface {
33 String() string
34
35 // The sealed method keeps the set of implementations closed to this package,
36 // so callers outside it cannot forge a value that claims to be safe.
37 sealed()
38}
39
40// MutableSafeURL is a REST API URL built from a host prefix, path components, and query
41// parameters. The path components and query parameters are URL encoded (aka

Callers 8

GetCachesFunction · 0.95
getAttestationsMethod · 0.95
getVariablesFunction · 0.95
LoadNotificationsMethod · 0.95
LoadEventsMethod · 0.95
getSecretsFunction · 0.95
ListArtifactsFunction · 0.95
GetRunsFunction · 0.95

Implementers 2

MutableSafeURLinternal/safeurl/safeurl.go
ImmutableSafeURLinternal/safeurl/safeurl.go

Calls

no outgoing calls

Tested by

no test coverage detected