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

Function updateGithubEndpoint

test/integration/client_utils.go:164–172  ·  view source on GitHub ↗
(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, endpointName string, endpointParams params.UpdateGithubEndpointParams)

Source from the content-addressed store, hash-verified

162}
163
164func updateGithubEndpoint(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, endpointName string, endpointParams params.UpdateGithubEndpointParams) (*params.ForgeEndpoint, error) {
165 updateEndpointResponse, err := apiCli.Endpoints.UpdateGithubEndpoint(
166 clientEndpoints.NewUpdateGithubEndpointParams().WithName(endpointName).WithBody(endpointParams),
167 apiAuthToken)
168 if err != nil {
169 return nil, err
170 }
171 return &updateEndpointResponse.Payload, nil
172}
173
174// listProviders lists all the providers configured in GARM.
175func listProviders(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter) (params.Providers, error) {

Callers 1

Calls 3

UpdateGithubEndpointMethod · 0.65
WithBodyMethod · 0.45
WithNameMethod · 0.45

Tested by 1