Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// ListPage calls GET /v1/connections?page=N&limit=M — returns one page of lightweight summaries, no config blobs.
ListPage(ctx context.Context, page, limit int) ([]ConnectionSummary, error)
// GetConnection calls GET /v1/connections/{id}/config — returns the full connection with all config blobs.
GetConnection(ctx context.Context, id string) (*Connection, error)
}
Client abstracts communication with the appstore middleware.
type Connection ¶
type Connection struct {
ID string `json:"id"`
Handle string `json:"handle"`
Status string `json:"status"`
Meta Meta `json:"meta"`
Service interface{} `json:"service"`
Operations interface{} `json:"operations"`
Resources interface{} `json:"resources"`
}
Connection is returned by GET /v1/connections/{id}/config — full, with config blobs.
type ConnectionSummary ¶
type ConnectionSummary struct {
ID string `json:"id"`
Handle string `json:"handle"`
Status string `json:"status"`
Short string `json:"short"`
Description string `json:"description,omitempty"`
Operations []OperationSummary `json:"operations"`
Resources []ResourceSummary `json:"resources,omitempty"`
Triggers []TriggerSummary `json:"triggers,omitempty"`
}
ConnectionSummary is returned by GET /v1/connections — lightweight, no config blobs.
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func (*HTTPClient) GetConnection ¶
func (c *HTTPClient) GetConnection(ctx context.Context, id string) (*Connection, error)
func (*HTTPClient) ListPage ¶
func (c *HTTPClient) ListPage(ctx context.Context, page, limit int) ([]ConnectionSummary, error)
type OperationSummary ¶
type ResourceSummary ¶
type TriggerSummary ¶
Click to show internal directories.
Click to hide internal directories.