api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	URL string
	// api request config jsonnet snippet
	Snippet string
	// request jsonnet top level arguments, key: TLA key, value: TLA value
	TLARaw map[string]interface{}
	// API identity info
	Actor string
}

type APIConfig

type APIConfig struct {
	Method  string                 `json:"method"`
	URL     string                 `json:"url"`
	Headers http.Header            `json:"header"`
	Body    map[string]interface{} `json:"body"`
	IsHTTPS bool                   `json:"https"`
}

type Interface

type Interface interface {
	Send(api *API) (string, error)
}

Jump to

Keyboard shortcuts

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