Documentation ¶
Index ¶
- Variables
- func VersionString() string
- type CodecraftersClient
- func (c CodecraftersClient) CreateSubmission(repositoryId string, commitSha string) (CreateSubmissionResponse, error)
- func (c CodecraftersClient) FetchBuild(buildId string) (FetchBuildStatusResponse, error)
- func (c CodecraftersClient) FetchSubmission(submissionId string) (FetchSubmissionResponse, error)
- type CreateSubmissionResponse
- type FetchBuildStatusResponse
- type FetchSubmissionResponse
- type GitRemote
- type MultipleCodecraftersRemotesFoundError
- type NoCodecraftersRemoteFoundError
Constants ¶
This section is empty.
Variables ¶
View Source
var Commit string = "unknown"
View Source
var Version string = "0"
Functions ¶
func VersionString ¶
func VersionString() string
Types ¶
type CodecraftersClient ¶
type CodecraftersClient struct {
ServerUrl string
}
func NewCodecraftersClient ¶
func NewCodecraftersClient(serverUrl string) CodecraftersClient
func (CodecraftersClient) CreateSubmission ¶
func (c CodecraftersClient) CreateSubmission(repositoryId string, commitSha string) (CreateSubmissionResponse, error)
func (CodecraftersClient) FetchBuild ¶
func (c CodecraftersClient) FetchBuild(buildId string) (FetchBuildStatusResponse, error)
func (CodecraftersClient) FetchSubmission ¶
func (c CodecraftersClient) FetchSubmission(submissionId string) (FetchSubmissionResponse, error)
type CreateSubmissionResponse ¶
type CreateSubmissionResponse struct { Id string `json:"id"` // BuildLogstreamURL is returned when the submission is waiting on a build BuildID string `json:"build_id"` BuildLogstreamURL string `json:"build_logstream_url"` CommitSHA string `json:"commit_sha"` // LogstreamURL contains test logs. LogstreamURL string `json:"logstream_url"` // Messages to be displayed to the user OnSuccessMessage string `json:"on_success_message"` OnFailureMessage string `json:"on_failure_message"` OnInitSuccessMessage string `json:"on_init_success_message"` OnInitWarningMessage string `json:"on_init_warning_message"` // IsError is true when the submission failed to be created, and ErrorMessage is the human-friendly error message IsError bool `json:"is_error"` ErrorMessage string `json:"error_message"` }
type FetchSubmissionResponse ¶
type GitRemote ¶
func IdentifyGitRemote ¶
func (GitRemote) CodecraftersRepositoryId ¶
func (GitRemote) CodecraftersServerURL ¶
func (GitRemote) IsCodecrafters ¶
type MultipleCodecraftersRemotesFoundError ¶
type MultipleCodecraftersRemotesFoundError struct {
Remotes []GitRemote
}
func (MultipleCodecraftersRemotesFoundError) Error ¶
func (e MultipleCodecraftersRemotesFoundError) Error() string
type NoCodecraftersRemoteFoundError ¶
type NoCodecraftersRemoteFoundError struct { Remotes []GitRemote // contains filtered or unexported fields }
func (NoCodecraftersRemoteFoundError) Error ¶
func (e NoCodecraftersRemoteFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.