Documentation ¶
Index ¶
Constants ¶
View Source
const ( UUIDHeader = "x-runner-uuid" TokenHeader = "x-runner-token" // Deprecated: could be removed after Gitea 1.20 released 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, version 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
Click to show internal directories.
Click to hide internal directories.