All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
RepoCredsServiceCreateRepositoryCredentials | Post /api/v1/repocreds | CreateRepositoryCredentials creates a new repository credential set |
RepoCredsServiceDeleteRepositoryCredentials | Delete /api/v1/repocreds/{url} | DeleteRepositoryCredentials deletes a repository credential set from the configuration |
RepoCredsServiceListRepositoryCredentials | Get /api/v1/repocreds | ListRepositoryCredentials gets a list of all configured repository credential sets |
RepoCredsServiceUpdateRepositoryCredentials | Put /api/v1/repocreds/{creds.url} | UpdateRepositoryCredentials updates a repository credential set |
V1alpha1RepoCreds RepoCredsServiceCreateRepositoryCredentials(ctx).Body(body).Upsert(upsert).Execute()
CreateRepositoryCredentials creates a new repository credential set
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := *openapiclient.NewV1alpha1RepoCreds() // V1alpha1RepoCreds | Repository definition
upsert := true // bool | Whether to create in upsert mode. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RepoCredsServiceApi.RepoCredsServiceCreateRepositoryCredentials(context.Background()).Body(body).Upsert(upsert).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RepoCredsServiceApi.RepoCredsServiceCreateRepositoryCredentials``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RepoCredsServiceCreateRepositoryCredentials`: V1alpha1RepoCreds
fmt.Fprintf(os.Stdout, "Response from `RepoCredsServiceApi.RepoCredsServiceCreateRepositoryCredentials`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiRepoCredsServiceCreateRepositoryCredentialsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | V1alpha1RepoCreds | Repository definition | |
upsert | bool | Whether to create in upsert mode. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} RepoCredsServiceDeleteRepositoryCredentials(ctx, url).Execute()
DeleteRepositoryCredentials deletes a repository credential set from the configuration
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
url := "url_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RepoCredsServiceApi.RepoCredsServiceDeleteRepositoryCredentials(context.Background(), url).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RepoCredsServiceApi.RepoCredsServiceDeleteRepositoryCredentials``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RepoCredsServiceDeleteRepositoryCredentials`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `RepoCredsServiceApi.RepoCredsServiceDeleteRepositoryCredentials`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
url | string |
Other parameters are passed through a pointer to a apiRepoCredsServiceDeleteRepositoryCredentialsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1alpha1RepoCredsList RepoCredsServiceListRepositoryCredentials(ctx).Url(url).Execute()
ListRepositoryCredentials gets a list of all configured repository credential sets
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
url := "url_example" // string | Repo URL for query. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RepoCredsServiceApi.RepoCredsServiceListRepositoryCredentials(context.Background()).Url(url).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RepoCredsServiceApi.RepoCredsServiceListRepositoryCredentials``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RepoCredsServiceListRepositoryCredentials`: V1alpha1RepoCredsList
fmt.Fprintf(os.Stdout, "Response from `RepoCredsServiceApi.RepoCredsServiceListRepositoryCredentials`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiRepoCredsServiceListRepositoryCredentialsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
url | string | Repo URL for query. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1alpha1RepoCreds RepoCredsServiceUpdateRepositoryCredentials(ctx, credsUrl).Body(body).Execute()
UpdateRepositoryCredentials updates a repository credential set
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
credsUrl := "credsUrl_example" // string | URL is the URL that this credentials matches to
body := *openapiclient.NewV1alpha1RepoCreds() // V1alpha1RepoCreds |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.RepoCredsServiceApi.RepoCredsServiceUpdateRepositoryCredentials(context.Background(), credsUrl).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RepoCredsServiceApi.RepoCredsServiceUpdateRepositoryCredentials``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RepoCredsServiceUpdateRepositoryCredentials`: V1alpha1RepoCreds
fmt.Fprintf(os.Stdout, "Response from `RepoCredsServiceApi.RepoCredsServiceUpdateRepositoryCredentials`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
credsUrl | string | URL is the URL that this credentials matches to |
Other parameters are passed through a pointer to a apiRepoCredsServiceUpdateRepositoryCredentialsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | V1alpha1RepoCreds | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]