Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

aurae-runtime/client-go

Repository files navigation

client-go

Go gRPC client for Aurae

Installation

go get github.com/aurae-runtime/client-go

Usage

Connecting with TLS

tlsConfig := &tls.Config{} // Provide your TLS configuration

client, err := aurae.NewClient("localhost:8080", credentials.NewTLS(tlsConfig))
if err != nil {
panic(err)
}

Interacting with auraed

exec := &runtime.Executable{
    Command: "tail -f /dev/null",
    Comment: "my-executable",
}
status, err := client.Runtime().RunExecutable(context.TODO(), exec)
if err != nil {
    panic(err)
}

fmt.Printf("Executable running with pid %d\n", status.Proc.Pid)

About

Go gRPC client for Aurae

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published