This commit is contained in:
2023-11-07 15:54:13 +03:00
parent 84c0248019
commit e6440bc4a3
11 changed files with 651 additions and 20 deletions

View File

@@ -22,6 +22,8 @@ import (
k8s_cb "repository.basistech.ru/BASIS/decort-golang-sdk/pkg/cloudbroker/k8s"
)
const restmachine = "/restmachine"
// HTTP-client for platform
type DecortClient struct {
decortURL string
@@ -88,7 +90,7 @@ func (dc *DecortClient) DecortApiCall(ctx context.Context, method, url string, p
body = bytes.NewBufferString(values.Encode())
}
req, err := http.NewRequestWithContext(ctx, method, dc.decortURL+"/restmachine"+url, body)
req, err := http.NewRequestWithContext(ctx, method, dc.decortURL+restmachine+url, body)
if err != nil {
return nil, err
}