state

package
v0.0.0-...-f49f4f7 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MPL-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 ErrorBody

type ErrorBody struct {
	Msg  string `json:"message"`
	Code int    `json:"code"`
	// contains filtered or unexported fields
}

type ErrorResp

type ErrorResp struct {
	ErrorBody `json:"error"`
}

func NewErrorResp

func NewErrorResp(e error, c int) *ErrorResp

func (*ErrorResp) Err

func (e *ErrorResp) Err() error

func (*ErrorResp) Error

func (e *ErrorResp) Error() string

func (*ErrorResp) StatusCode

func (e *ErrorResp) StatusCode() int

func (*ErrorResp) String

func (e *ErrorResp) String() string

type FlowsCreateReq

type FlowsCreateReq struct {
	Flow *sharedstate.Flow
}

type FlowsCreateResp

type FlowsCreateResp struct {
	Flow *sharedstate.Flow
}

type FlowsDeleteReq

type FlowsDeleteReq struct {
	ID        string
	Namespace string
}

type FlowsDeleteResp

type FlowsDeleteResp struct{}

type FlowsGetReq

type FlowsGetReq struct {
	ID        string
	Namespace string
}

type FlowsGetResp

type FlowsGetResp struct {
	Flow *sharedstate.Flow
}

type FlowsListReq

type FlowsListReq struct {
	Namespace string `json:"namespace"`
}

type FlowsListResp

type FlowsListResp struct {
	Flows []*sharedstate.FlowStub
}

type NamespacesCreateReq

type NamespacesCreateReq struct {
	Namespace *sharedstate.Namespace
}

type NamespacesCreateResp

type NamespacesCreateResp struct{}

type NamespacesDeleteReq

type NamespacesDeleteReq struct {
	Name string
}

type NamespacesDeleteResp

type NamespacesDeleteResp struct{}

type NamespacesGetReq

type NamespacesGetReq struct {
	Name string
}

type NamespacesGetResp

type NamespacesGetResp struct {
	Namespace *sharedstate.Namespace
}

type NamespacesListReq

type NamespacesListReq struct{}

type NamespacesListResp

type NamespacesListResp struct {
	Namespaces []*sharedstate.NamespaceStub
}

type RunsCreateReq

type RunsCreateReq struct {
	Run *sharedstate.Run `json:"run"`
}

type RunsCreateResp

type RunsCreateResp struct{}

type RunsDeleteReq

type RunsDeleteReq struct {
	ID        ulid.ULID `json:"id"`
	Namespace string    `json:"namespace"`
}

type RunsDeleteResp

type RunsDeleteResp struct{}

type RunsGetReq

type RunsGetReq struct {
	ID        ulid.ULID `json:"id"`
	Namespace string    `json:"namespace"`
}

type RunsGetResp

type RunsGetResp struct {
	Run *sharedstate.Run `json:"run"`
}

type RunsListReq

type RunsListReq struct {
	Namespace string
}

type RunsListResp

type RunsListResp struct {
	Runs []*sharedstate.RunStub `json:"runs"`
}

type RunsUpdateReq

type RunsUpdateReq struct {
	Run *sharedstate.Run `json:"run"`
}

type RunsUpdateResp

type RunsUpdateResp struct{}

type State

type State interface {
	Flows() Flows
	Namespaces() Namespaces
	Runs() Runs
	Triggers() Triggers
}

type TriggersCreateReq

type TriggersCreateReq struct {
	Trigger *sharedstate.Trigger
}

type TriggersCreateResp

type TriggersCreateResp struct{}

type TriggersDeleteReq

type TriggersDeleteReq struct {
	ID        string
	Namespace string
}

type TriggersDeleteResp

type TriggersDeleteResp struct{}

type TriggersGetReq

type TriggersGetReq struct {
	ID        string
	Namespace string
}

type TriggersGetResp

type TriggersGetResp struct {
	Trigger *sharedstate.Trigger
}

type TriggersListReq

type TriggersListReq struct {
	Namespace string
}

type TriggersListResp

type TriggersListResp struct {
	Triggers []*sharedstate.TriggerStub
}

Jump to

Keyboard shortcuts

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