Files
zeekay 6f93520c46 refactor: rebrand Infisical Go SDK -> Hanzo KMS Go SDK
- Module path: github.com/infisical/go-sdk -> github.com/hanzokms/go-sdk
- Package name: infisical -> kms
- Types: InfisicalClient -> Client, NewInfisicalClient -> NewClient
- Default URL: app.infisical.com -> kms.hanzo.ai
- Env vars: INFISICAL_ prefix -> KMS_ prefix
- User agent: infisical-go-sdk -> hanzo-kms-go-sdk
- Copyright: Hanzo AI Inc.
- go build ./... passes clean
2026-02-24 01:58:24 -08:00

28 lines
630 B
Go

package api
import (
"github.com/go-resty/resty/v2"
"github.com/hanzokms/go-sdk/packages/errors"
)
const callAddSshHostOperation = "CallAddSshHostV1"
func CallAddSshHostV1(httpClient *resty.Client, body AddSshHostV1Request) (AddSshHostV1Response, error) {
resp := AddSshHostV1Response{}
res, err := httpClient.R().
SetBody(body).
SetResult(&resp).
Post("/v1/ssh/hosts")
if err != nil {
return AddSshHostV1Response{}, errors.NewRequestError(callAddSshHostOperation, err)
}
if res.IsError() {
return AddSshHostV1Response{}, errors.NewAPIErrorWithResponse(callAddSshHostOperation, res)
}
return resp, nil
}