All URIs are relative to https://api.cloudsmith.io
| Method | HTTP request | Description |
|---|---|---|
| AuditLogNamespaceList | Get /audit-log/{owner}/ | Lists audit log entries for a specific namespace. |
| AuditLogRepoList | Get /audit-log/{owner}/{repo}/ | Lists audit log entries for a specific repository. |
[]NamespaceAuditLog AuditLogNamespaceList(ctx, owner).Page(page).PageSize(pageSize).Query(query).Execute()
Lists audit log entries for a specific namespace.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/cloudsmith-io/cloudsmith-api-go"
)
func main() {
owner := "owner_example" // string |
page := int64(56) // int64 | A page number within the paginated result set. (optional)
pageSize := int64(56) // int64 | Number of results to return per page. (optional)
query := "query_example" // string | A search term for querying events, actors, or timestamps of log records. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AuditLogApi.AuditLogNamespaceList(context.Background(), owner).Page(page).PageSize(pageSize).Query(query).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.AuditLogNamespaceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuditLogNamespaceList`: []NamespaceAuditLog
fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.AuditLogNamespaceList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| owner | string |
Other parameters are passed through a pointer to a apiAuditLogNamespaceListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
page | int64 | A page number within the paginated result set. | pageSize | int64 | Number of results to return per page. | query | string | A search term for querying events, actors, or timestamps of log records. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]RepositoryAuditLog AuditLogRepoList(ctx, owner, repo).Page(page).PageSize(pageSize).Query(query).Execute()
Lists audit log entries for a specific repository.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/cloudsmith-io/cloudsmith-api-go"
)
func main() {
owner := "owner_example" // string |
repo := "repo_example" // string |
page := int64(56) // int64 | A page number within the paginated result set. (optional)
pageSize := int64(56) // int64 | Number of results to return per page. (optional)
query := "query_example" // string | A search term for querying events, actors, or timestamps of log records. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.AuditLogApi.AuditLogRepoList(context.Background(), owner, repo).Page(page).PageSize(pageSize).Query(query).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuditLogApi.AuditLogRepoList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuditLogRepoList`: []RepositoryAuditLog
fmt.Fprintf(os.Stdout, "Response from `AuditLogApi.AuditLogRepoList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| owner | string | ||
| repo | string |
Other parameters are passed through a pointer to a apiAuditLogRepoListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
page | int64 | A page number within the paginated result set. | pageSize | int64 | Number of results to return per page. | query | string | A search term for querying events, actors, or timestamps of log records. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]