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

Latest commit

 

History

History
37 lines (27 loc) · 628 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 628 Bytes

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)