api

package
v0.81.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIFakeIntakePayloadsJsonGETResponse

type APIFakeIntakePayloadsJsonGETResponse struct {
	Payloads []ParsedPayload `json:"payloads"`
}

type APIFakeIntakePayloadsRawGETResponse

type APIFakeIntakePayloadsRawGETResponse struct {
	Payloads []Payload `json:"payloads"`
}

type APIFakeIntakeRouteStatsGETResponse

type APIFakeIntakeRouteStatsGETResponse struct {
	Routes map[string]RouteStat `json:"routes"`
}

type PARTaskResult added in v0.79.0

type PARTaskResult struct {
	TaskID       string                 `json:"task_id"`
	Success      bool                   `json:"success"`
	Outputs      map[string]interface{} `json:"outputs,omitempty"`
	ErrorCode    int                    `json:"error_code,omitempty"`
	ErrorDetails string                 `json:"error_details,omitempty"`
}

PARTaskResult captures what the Private Action Runner published for a completed task.

type ParsedPayload

type ParsedPayload struct {
	Timestamp time.Time   `json:"timestamp"`
	APIKey    string      `json:"api_key"`
	Data      interface{} `json:"data"`
	Encoding  string      `json:"encoding"`
}

type Payload

type Payload struct {
	Timestamp   time.Time `json:"timestamp"`
	APIKey      string    `json:"api_key"`
	Data        []byte    `json:"data"`
	Encoding    string    `json:"encoding"`
	ContentType string    `json:"content_type"`
}

type RCAddConfigRequest added in v0.80.0

type RCAddConfigRequest struct {
	OrgID      string          `json:"org_id"`
	Product    string          `json:"product"`
	ConfigID   string          `json:"config_id"`
	ConfigName string          `json:"config_name"`
	Data       json.RawMessage `json:"data"`
}

RCAddConfigRequest is the body accepted by POST /fakeintake/rc/config. Data may be raw JSON bytes (preferred) or any JSON value; the server re-marshals it for stable storage.

type RCConfig added in v0.80.0

type RCConfig struct {
	OrgID      string `json:"org_id"`
	Product    string `json:"product"`
	ConfigID   string `json:"config_id"`
	ConfigName string `json:"config_name"`
	Data       []byte `json:"data"`
}

RCConfig is a single Remote Config entry exposed via the fakeintake control API.

type RCStats added in v0.80.0

type RCStats struct {
	Polls        uint64    `json:"polls"`
	LastPoll     time.Time `json:"last_poll"`
	Version      uint64    `json:"version"`
	ConfigsCount int       `json:"configs_count"`
	KeyID        string    `json:"key_id"`
	PublicKey    string    `json:"public_key"`
	RootJSON     string    `json:"root_json"`
}

RCStats is returned by GET /fakeintake/rc/stats.

type ResponseOverride added in v0.51.0

type ResponseOverride struct {
	Endpoint    string `json:"endpoint"`
	StatusCode  int    `json:"status_code"`
	ContentType string `json:"content_type"`
	Method      string `json:"method"`
	Body        []byte `json:"body"`
}

ResponseOverride is a hardcoded response for requests to the given endpoint

type RouteStat

type RouteStat struct {
	ID    string `json:"id"`
	Count int    `json:"count"`
}

Jump to

Keyboard shortcuts

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