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

Function parseGiteaCreateParams

cmd/garm-cli/cmd/gitea_endpoints.go:245–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243}
244
245func parseGiteaCreateParams() (params.CreateGiteaEndpointParams, error) {
246 certBundleBytes, err := parseAndReadCABundle(endpointCACertPath)
247 if err != nil {
248 return params.CreateGiteaEndpointParams{}, err
249 }
250
251 ret := params.CreateGiteaEndpointParams{
252 Name: endpointName,
253 BaseURL: endpointBaseURL,
254 APIBaseURL: endpointAPIBaseURL,
255 Description: endpointDescription,
256 CACertBundle: certBundleBytes,
257 ToolsMetadataURL: toolsMetadataURL,
258 UseInternalToolsMetadata: &useInternalMetadata,
259 }
260 return ret, nil
261}

Callers 1

gitea_endpoints.goFile · 0.85

Calls 1

parseAndReadCABundleFunction · 0.85

Tested by

no test coverage detected