Documentation
¶
Index ¶
- func CheckResponseStatus(resp *http.Response, endpoint string, serverErrorKind app.ErrorKind) error
- func ConvertResponseError(err error, serverErrorKind app.ErrorKind) error
- func ListArtifacts(client *http.Client, ktorVersion string) ([]string, error)
- func NewProject(client *http.Client, payload ProjectPayload, ctx context.Context) ([]byte, error)
- func SearchArtifacts(client *http.Client, ktorVersion string, searches []string) (map[string][]Artifact, error)
- type Artifact
- type BuildSystemArgs
- type DefaultSettings
- type EnumOption
- type EnumParam
- type NotSupportedKtorVersion
- type Plugin
- type ProjectPayload
- type ProjectSettings
- type StringParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponseStatus ¶
func ConvertResponseError ¶
func NewProject ¶
Types ¶
type BuildSystemArgs ¶
type BuildSystemArgs string
const VersionCatalogBuildArg BuildSystemArgs = "version_catalog"
type DefaultSettings ¶
type DefaultSettings struct { ProjectName StringParam `json:"project_name"` CompanyWebsite StringParam `json:"company_website"` Engine EnumParam `json:"engine"` KtorVersion EnumParam `json:"ktor_version"` KotlinVersion EnumParam `json:"kotlin_version"` BuildSystem EnumParam `json:"build_system"` ConfigType EnumParam `json:"configuration_in"` }
func FetchSettings ¶
func FetchSettings(client *http.Client) (*DefaultSettings, error)
type EnumOption ¶
type EnumParam ¶
type EnumParam struct { Options []EnumOption `json:"options"` DefaultId string `json:"default_id"` }
type NotSupportedKtorVersion ¶
type NotSupportedKtorVersion struct {
Version string
}
func (NotSupportedKtorVersion) Error ¶
func (e NotSupportedKtorVersion) Error() string
type Plugin ¶
type ProjectPayload ¶
type ProjectPayload struct { Settings ProjectSettings `json:"settings"` Plugins []string `json:"features"` HasSampleCode bool `json:"addDefaultRoutes"` ConfigType string `json:"configurationOption"` HasWrapper bool `json:"addWrapper"` }
type ProjectSettings ¶
type ProjectSettings struct { Name string `json:"project_name"` CompanyWebsite string `json:"company_website"` Engine string `json:"engine"` BuildSystem string `json:"build_system"` KtorVersion string `json:"ktor_version"` KotlinVersion string `json:"kotlin_version"` BuildSystemArgs map[BuildSystemArgs]string `json:"build_system_args"` }
type StringParam ¶
type StringParam struct {
DefaultVal string `json:"default"`
}
Click to show internal directories.
Click to hide internal directories.