subrequests

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

View Source
const RequestSubrequestsDescribe = "frontend.subrequests.describe"

Variables

View Source
var SubrequestsDescribeDefinition = Request{
	Name:        RequestSubrequestsDescribe,
	Version:     "1.0.0",
	Type:        TypeRPC,
	Description: "List available subrequest types",
	Metadata: []Named{
		{Name: "result.json"},
		{Name: "result.txt"},
	},
}

Functions

func PrintDescribe added in v0.11.0

func PrintDescribe(dt []byte, w io.Writer) error

Types

type Named

type Named struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Request

type Request struct {
	Name        string      `json:"name"`
	Version     string      `json:"version"`
	Type        RequestType `json:"type"`
	Description string      `json:"description"`
	Opts        []Named     `json:"opts"`
	Inputs      []Named     `json:"inputs"`
	Metadata    []Named     `json:"metadata"`
	Refs        []Named     `json:"refs"`
}

func Describe

func Describe(ctx context.Context, c client.Client) ([]Request, error)

type RequestType

type RequestType string
const TypeRPC RequestType = "rpc"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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