Documentation
¶
Overview ¶
Package godokiota provides convenience constructors for the Kiota-generated DigitalOcean API client living in the ./client package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWithToken ¶
func NewClientWithToken(token string) (*client.DigitalOceanClient, error)
NewClientWithToken builds a DigitalOcean API client authenticated with a personal access token, sent as `Authorization: Bearer <token>`.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
inference-stream
command
Streaming chat-completion demo against DigitalOcean Serverless Inference.
|
Streaming chat-completion demo against DigitalOcean Serverless Inference. |
|
listregions
command
Smoke test for the Kiota-generated DigitalOcean Go SDK: list all regions.
|
Smoke test for the Kiota-generated DigitalOcean Go SDK: list all regions. |
|
Code generated by tools/inferencegen from openapi.yaml — DO NOT EDIT.
|
Code generated by tools/inferencegen from openapi.yaml — DO NOT EDIT. |
|
tools
|
|
|
collisionfix
command
Command collisionfix resolves the rare response-side type collisions that remain after tools/specprep, by hoisting the offending schemas in the spec and signaling that Kiota should be re-run.
|
Command collisionfix resolves the rare response-side type collisions that remain after tools/specprep, by hoisting the offending schemas in the spec and signaling that Kiota should be re-run. |
|
inferencegen
command
Command inferencegen reads the bundled DigitalOcean OpenAPI document and emits an OpenAI-compatible, SSE-capable inference client into the `inference` package.
|
Command inferencegen reads the bundled DigitalOcean OpenAPI document and emits an OpenAI-compatible, SSE-capable inference client into the `inference` package. |
|
specprep
command
Command specprep preprocesses the bundled OpenAPI document so that Microsoft Kiota's Go generator emits clean, collision-free code.
|
Command specprep preprocesses the bundled OpenAPI document so that Microsoft Kiota's Go generator emits clean, collision-free code. |
Click to show internal directories.
Click to hide internal directories.