MCPcopy Create free account
hub / github.com/cloudbase/garm / parseCreateParams

Function parseCreateParams

cmd/garm-cli/cmd/github_endpoints.go:252–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250}
251
252func parseCreateParams() (params.CreateGithubEndpointParams, error) {
253 certBundleBytes, err := parseAndReadCABundle(endpointCACertPath)
254 if err != nil {
255 return params.CreateGithubEndpointParams{}, err
256 }
257
258 ret := params.CreateGithubEndpointParams{
259 Name: endpointName,
260 BaseURL: endpointBaseURL,
261 UploadBaseURL: endpointUploadURL,
262 APIBaseURL: endpointAPIBaseURL,
263 Description: endpointDescription,
264 CACertBundle: certBundleBytes,
265 }
266 return ret, nil
267}
268
269func formatEndpoints(endpoints params.ForgeEndpoints) {
270 if outputFormat == common.OutputFormatJSON {

Callers 1

Calls 1

parseAndReadCABundleFunction · 0.85

Tested by

no test coverage detected