client

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UUIDHeader    = "x-runner-uuid"
	TokenHeader   = "x-runner-token"
	VersionHeader = "x-runner-version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	pingv1connect.PingServiceClient
	runnerv1connect.RunnerServiceClient
	Address() string
	Insecure() bool
}

A Client manages communication with the runner.

type HTTPClient

type HTTPClient struct {
	pingv1connect.PingServiceClient
	runnerv1connect.RunnerServiceClient
	// contains filtered or unexported fields
}

An HTTPClient manages communication with the runner API.

func New

func New(endpoint string, insecure bool, uuid, token, runnerVersion string, opts ...connect.ClientOption) *HTTPClient

New returns a new runner client.

func (*HTTPClient) Address

func (c *HTTPClient) Address() string

func (*HTTPClient) Insecure

func (c *HTTPClient) Insecure() bool

Jump to

Keyboard shortcuts

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