Documentation ¶
Overview ¶
Package httpclient is a lightweight implementation of a client for the HTTP gateway.
Index ¶
- Variables
- type AdminAPI
- type ConsentAPI
- type InvocationAPI
- func (api *InvocationAPI) Cancel(ctx context.Context, id string) error
- func (api *InvocationAPI) Events(ctx context.Context, id string) (*apiserver.ObjectEvents, error)
- func (api *InvocationAPI) Get(ctx context.Context, id string) (*types.WorkflowInvocation, error)
- func (api *InvocationAPI) Invoke(ctx context.Context, spec *types.WorkflowInvocationSpec) (*types.ObjectMetadata, error)
- func (api *InvocationAPI) InvokeSync(ctx context.Context, spec *types.WorkflowInvocationSpec) (..., error)
- func (api *InvocationAPI) List(ctx context.Context) (*apiserver.WorkflowInvocationList, error)
- func (api *InvocationAPI) Validate(ctx context.Context, spec *types.WorkflowInvocationSpec) error
- type WorkflowAPI
- func (api *WorkflowAPI) Create(ctx context.Context, spec *types.WorkflowSpec) (*types.ObjectMetadata, error)
- func (api *WorkflowAPI) CreateSync(ctx context.Context, spec *types.WorkflowSpec) (*types.Workflow, error)
- func (api *WorkflowAPI) Delete(ctx context.Context, id string) error
- func (api *WorkflowAPI) Events(ctx context.Context, id string) (*apiserver.ObjectEvents, error)
- func (api *WorkflowAPI) Get(ctx context.Context, id string) (*types.Workflow, error)
- func (api *WorkflowAPI) List(ctx context.Context) (*apiserver.WorkflowList, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AdminAPI ¶
type AdminAPI struct {
// contains filtered or unexported fields
}
type ConsentAPI ¶
type ConsentAPI struct {
// contains filtered or unexported fields
}
func NewConsentAPI ¶
func NewConsentAPI(endpoint string, client http.Client) *ConsentAPI
func (*ConsentAPI) Update ¶
func (api *ConsentAPI) Update(ctx context.Context, msg *types.ConsentMessage) error
func (*ConsentAPI) UpdateFromStatus ¶
func (api *ConsentAPI) UpdateFromStatus(ctx context.Context, consentID string, status *types.ConsentStatus) error
func (*ConsentAPI) UpdateFromString ¶
type InvocationAPI ¶
type InvocationAPI struct {
// contains filtered or unexported fields
}
func NewInvocationAPI ¶
func NewInvocationAPI(endpoint string, client http.Client) *InvocationAPI
func (*InvocationAPI) Cancel ¶
func (api *InvocationAPI) Cancel(ctx context.Context, id string) error
func (*InvocationAPI) Events ¶
func (api *InvocationAPI) Events(ctx context.Context, id string) (*apiserver.ObjectEvents, error)
func (*InvocationAPI) Get ¶
func (api *InvocationAPI) Get(ctx context.Context, id string) (*types.WorkflowInvocation, error)
func (*InvocationAPI) Invoke ¶
func (api *InvocationAPI) Invoke(ctx context.Context, spec *types.WorkflowInvocationSpec) (*types.ObjectMetadata, error)
func (*InvocationAPI) InvokeSync ¶
func (api *InvocationAPI) InvokeSync(ctx context.Context, spec *types.WorkflowInvocationSpec) (*types. WorkflowInvocation, error)
func (*InvocationAPI) List ¶
func (api *InvocationAPI) List(ctx context.Context) (*apiserver.WorkflowInvocationList, error)
func (*InvocationAPI) Validate ¶
func (api *InvocationAPI) Validate(ctx context.Context, spec *types.WorkflowInvocationSpec) error
type WorkflowAPI ¶
type WorkflowAPI struct {
// contains filtered or unexported fields
}
func NewWorkflowAPI ¶
func NewWorkflowAPI(endpoint string, client http.Client) *WorkflowAPI
func (*WorkflowAPI) Create ¶
func (api *WorkflowAPI) Create(ctx context.Context, spec *types.WorkflowSpec) (*types.ObjectMetadata, error)
func (*WorkflowAPI) CreateSync ¶
func (api *WorkflowAPI) CreateSync(ctx context.Context, spec *types.WorkflowSpec) (*types.Workflow, error)
func (*WorkflowAPI) Events ¶
func (api *WorkflowAPI) Events(ctx context.Context, id string) (*apiserver.ObjectEvents, error)
func (*WorkflowAPI) List ¶
func (api *WorkflowAPI) List(ctx context.Context) (*apiserver.WorkflowList, error)
Click to show internal directories.
Click to hide internal directories.