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

Function createGithubEndpoint

test/integration/client_utils.go:128–136  ·  view source on GitHub ↗
(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, endpointParams params.CreateGithubEndpointParams)

Source from the content-addressed store, hash-verified

126}
127
128func createGithubEndpoint(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, endpointParams params.CreateGithubEndpointParams) (*params.ForgeEndpoint, error) {
129 createEndpointResponse, err := apiCli.Endpoints.CreateGithubEndpoint(
130 clientEndpoints.NewCreateGithubEndpointParams().WithBody(endpointParams),
131 apiAuthToken)
132 if err != nil {
133 return nil, err
134 }
135 return &createEndpointResponse.Payload, nil
136}
137
138func listGithubEndpoints(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter) (params.ForgeEndpoints, error) {
139 listEndpointsResponse, err := apiCli.Endpoints.ListGithubEndpoints(

Calls 2

CreateGithubEndpointMethod · 0.65
WithBodyMethod · 0.45