api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package api defines the interface to a build service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRequest

type BuildRequest struct {
	K6Constrains string               `json:"k6:omitempty"`
	Dependencies []k6build.Dependency `json:"dependencies,omitempty"`
	Platform     string               `json:"platformomitempty"`
}

BuildRequest defines a request to the build service

func (BuildRequest) String

func (r BuildRequest) String() string

String returns a text serialization of the BuildRequest

type BuildResponse

type BuildResponse struct {
	Error    string           `json:"error:omitempty"`
	Artifact k6build.Artifact `json:"artifact:omitempty"`
}

BuildResponse defines the response for a BuildRequest

Jump to

Keyboard shortcuts

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