Skip to main content

Module spaces

Module spaces 

Source
Expand description

Spaces, and the things that live in them: secrets. Also the caller’s own account resources — SSH keys — and the instance’s system configuration.

Verified against the GitFox API v1.3.0 OpenAPI document:

OperationEndpoint
membershipsGET /api/v1/user/memberships
root spacesGET /api/v1/spaces
one spaceGET /api/v1/spaces/{space_ref}
list secretsGET /api/v1/spaces/{space_ref}/secrets
get secretGET /api/v1/secrets/{secret_ref}
create secretPOST /api/v1/secrets
update secretPATCH /api/v1/secrets/{secret_ref}
delete secretDELETE /api/v1/secrets/{secret_ref}
SSH keysGET / POST /api/v1/user/keys, DELETE …/keys/{identifier}
system configGET /api/v1/system/config

{secret_ref} is space/identifier with the slashes encoded, exactly like a repository reference — checked against a live instance, where the unencoded form answers 404.

Structs§

SpacesApi

Functions§

encode_ref
org/team → org%2Fteam, as a space or secret reference travels in a path.