Documentation
¶
Index ¶
Constants ¶
const ( ExitSuccess = 0 // Success ExitGeneralError = 1 // General error ExitTimeout = 2 // Operation timeout (wait-timeout exceeded) or connection timeout ExitInvalidParameters = 3 // Invalid parameters ExitAuthenticationError = 4 // Authentication error ExitPermissionDenied = 5 // Permission denied ExitServiceNotFound = 6 // Service not found )
Exit codes as defined in the CLI specification
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArgsLenAtDashProvider ¶
type ArgsLenAtDashProvider interface {
ArgsLenAtDash() int
}
ArgsLenAtDashProvider defines the interface for getting ArgsLenAtDash
type CreatePATRecordData ¶
type CreatePATRecordData struct {
CreatePATRecord PATRecordResponse `json:"createPATRecord"`
}
CreatePATRecordData represents the data from the createPATRecord mutation
type GetAllProjectsData ¶
type GetAllProjectsData struct {
GetAllProjects []Project `json:"getAllProjects"`
}
GetAllProjectsData represents the data from the getAllProjects query
type GetUserData ¶
type GetUserData struct {
GetUser User `json:"getUser"`
}
GetUserData represents the data from the getUser query
type GraphQLClient ¶
type GraphQLClient struct {
URL string
}
We currently use a few GraphQL endpoints as part of the OAuth login flow, because they were already available and they accept the OAuth access token for authentication (whereas savannah-public only accepts the client credentials/API Key).
type GraphQLError ¶
type GraphQLError struct {
Message string `json:"message"`
}
GraphQLError represents an error returned in a GraphQL response
type GraphQLResponse ¶
type GraphQLResponse[T any] struct { Data *T `json:"data"` Errors []GraphQLError `json:"errors,omitempty"` }
GraphQLResponse represents a generic GraphQL response wrapper
type PATRecordResponse ¶
type PATRecordResponse struct {
ClientCredentials struct {
AccessKey string `json:"accessKey"`
SecretKey string `json:"secretKey"`
} `json:"clientCredentials"`
}
PATRecordResponse represents the response from creating a PAT record