Skip to main content

Documentation Index

Fetch the complete documentation index at: https://onecli.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

The Go SDK is currently in development. Check back soon or follow us on GitHub for updates.
The Go SDK will allow you to programmatically configure Docker containers to route through the OneCLI proxy from Go applications.

Planned installation

go get github.com/onecli/go-sdk

Planned usage

package main

import (
    "fmt"
    onecli "github.com/onecli/go-sdk"
)

func main() {
    oc := onecli.New("http://localhost:18080")

    config, err := oc.GetContainerConfig()
    if err != nil {
        panic(err)
    }

    fmt.Println(config.Env)
    fmt.Println(config.Mounts)
}
Want this SDK sooner? Let us know on GitHub.