client_go

package module
v0.0.0-...-3322147 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

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)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewAuraeClient

func NewAuraeClient(addr string, credentials credentials.TransportCredentials) (*Client, error)

func (*Client) Observe

func (c *Client) Observe() observe.Client

func (*Client) Runtime

func (c *Client) Runtime() runtime.Client

func (*Client) Schedule

func (c *Client) Schedule() schedule.ScheduleClient

func (*Client) ScheduleExecutable

func (c *Client) ScheduleExecutable() schedule.ScheduleExecutableClient

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL