package
0.10.14
Repository: https://github.com/gschool/glearn-cli.git
Documentation: pkg.go.dev

# Functions

NewAPI is a constructor for the ApiClient.

# Variables

API is the exported APIClient, it is set during Init.
No description provided by the author
Learn data used for reporting.

# Structs

APIClient makes network API calls to Learn.
APIToken is a simple wrapper around an API token.
Block holds information yielded from the Learn Block API.
BlockPost represents the shape of the data needed to POST to learn for creating a new block.
CLIBenchmark holds timing in ms for the 3 main actions in the preview command.
CLIBenchmarkPayload is the shape of the payload to send to Learn's learn_cli_metadata endpoint.
Credentials represents the shape of data that the initial call to Learn for s3 and slack credentials will hydrate.
CredentialsResponse describes the shape of the return data from the call to RetrieveCredentials.
Error for bad responses in the api.
ErrorResponse is the body payload of an api error, example: {"errors":{"status":400,"title":"errors: \n\nUrl not found; you might also want to check that galvanize-learn-production is a member of this project"}}.
PreviewResponse is a simple struct defining the shape of data we care about that comes back from notifying Learn for decoding into.
ReleaseResponse holds the release id of a fetched or created release.
RepoPieces pieces of the remote url.