api

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg Config) *Client

func (*Client) ExecuteTest

func (c *Client) ExecuteTest(ctx context.Context, testID uint, request runsapi.StartRequest) (*models.TestRun, error)

func (*Client) GetTests

func (c *Client) GetTests(ctx context.Context) ([]models.Test, error)

func (*Client) UpdateApp

func (c *Client) UpdateApp(ctx context.Context, binary *models.AppBinary) error

func (*Client) UploadBundle

func (c *Client) UploadBundle(ctx context.Context, path string) (*models.AppBinary, error)

UploadBundle uploads the app binary at path and returns the created binary.

type Config added in v1.2.0

type Config struct {
	URL       string
	Token     string
	ProjectID string
	AppID     uint
}

Config says which app of which hub the client talks to.

Jump to

Keyboard shortcuts

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