This commit is contained in:
2023-10-25 17:37:18 +03:00
parent b666789c7d
commit 4120cd2b1a
639 changed files with 2010 additions and 3224 deletions

View File

@@ -35,9 +35,7 @@ func (k K8CI) Get(ctx context.Context, req GetRequest) (*RecordK8CI, error) {
func (k K8CI) GetRaw(ctx context.Context, req GetRequest) ([]byte, error) {
err := validators.ValidateRequest(req)
if err != nil {
for _, validationError := range validators.GetErrors(err) {
return nil, validators.ValidationError(validationError)
}
return nil, validators.ValidationErrors(validators.GetErrors(err))
}
url := "/cloudapi/k8ci/get"

View File

@@ -6,7 +6,7 @@ import (
"net/http"
)
// Request struct for get list information about deleted images
// ListDeletedRequest struct to get list information about deleted images
type ListDeletedRequest struct {
// Find by ID
// Required: false