Go's semantic import versioning gives a path without a /vN suffix exactly two publishable major versions: v0 and v1. This client rides the shared 8.5.x line, so at the bare path every tag it cut was unpublishable -- v8.5.89 and v8.5.156 both sat on the repo while proxy.golang.org served v1.0.5 and always would. A tag the proxy rejects is not a release, it is a decoration. The host half does NOT move. hanzoai/go-sdk is the path already on the proxy and pkg.go.dev, and renaming it would strand every existing import; adding the suffix does not, because v1 consumers keep resolving v1.0.5 at the old path. That is what the suffix is for. The generator writes the same path into 2,272 doc references, so sdks.yaml's git-repo-id carries it too -- otherwise the next regeneration would tell readers to import a path whose 8.x tags the proxy refuses. And the release workflow now READS the path from go.mod instead of restating it: one spelling, in the file that defines it, so the warm step cannot go on asking for a path nobody publishes.
3.8 KiB
\AuthzAPI
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| GetAuthzHealth | Get /v1/authz/health | Liveness of the policy engine |
| GetAuthzReadyz | Get /v1/authz/readyz | Readiness of the policy engine |
| PostAuthzCheck | Post /v1/authz/check | Ask whether a subject may act on an object |
GetAuthzHealth
GetAuthzHealth(ctx).Execute()
Liveness of the policy engine
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.AuthzAPI.GetAuthzHealth(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthzAPI.GetAuthzHealth``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiGetAuthzHealthRequest struct via the builder pattern
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAuthzReadyz
GetAuthzReadyz(ctx).Execute()
Readiness of the policy engine
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.AuthzAPI.GetAuthzReadyz(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthzAPI.GetAuthzReadyz``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiGetAuthzReadyzRequest struct via the builder pattern
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PostAuthzCheck
PostAuthzCheck(ctx).Execute()
Ask whether a subject may act on an object
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/hanzoai/go-sdk/v8"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.AuthzAPI.PostAuthzCheck(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthzAPI.PostAuthzCheck``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiPostAuthzCheckRequest struct via the builder pattern
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]