Documentation ¶
Index ¶
- func ModelReadError(err error) errors.Error
- func ModelWriteError(err error) errors.Error
- func NewHandler(auth middleware.Authenticator, opts ...ServerOption) http.Handler
- func WriteObjectWithStatus(ctx context.Context, w http.ResponseWriter, status int, b []byte)
- type ActionStatusProcessState
- type ActionStatusWhenCondition
- type GetConditionsResponseEnvelope
- type GetOutputResponseEnvelope
- type GetSecretResponseEnvelope
- type GetSpecResponseEnvelope
- type GetStateResponseEnvelope
- type PostEventRequestEnvelope
- type PostWorkflowRunRequestEnvelope
- type PostWorkflowRunResponseEnvelope
- type PutActionStatusRequestEnvelope
- type PutOutputMetadataRequestEnvelope
- type Server
- func (s *Server) GetConditions(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetEnvironment(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetEnvironmentVariable(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetOutput(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetSecret(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetSpec(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetState(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostDecorator(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostEvent(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostLog(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostLogMessage(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostValidate(w http.ResponseWriter, r *http.Request)
- func (s *Server) PostWorkflowRun(w http.ResponseWriter, r *http.Request)
- func (s *Server) PutActionStatus(w http.ResponseWriter, r *http.Request)
- func (s *Server) PutOutput(w http.ResponseWriter, r *http.Request)
- func (s *Server) PutOutputMetadata(w http.ResponseWriter, r *http.Request)
- func (s *Server) Route(r *mux.Router)
- type ServerOption
- type UnresolvableEnvelope
- type WorkflowRunEnvelope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelReadError ¶
func ModelWriteError ¶
func NewHandler ¶
func NewHandler(auth middleware.Authenticator, opts ...ServerOption) http.Handler
func WriteObjectWithStatus ¶
Types ¶
type ActionStatusWhenCondition ¶
type ActionStatusWhenCondition struct { Timestamp time.Time `json:"timestamp"` WhenConditionStatus model.WhenConditionStatus `json:"when_condition_status"` }
type GetOutputResponseEnvelope ¶
type GetOutputResponseEnvelope struct { TaskName string `json:"task_name"` Key string `json:"key"` Value transfer.JSONInterface `json:"value"` Metadata *model.StepOutputMetadata `json:"metadata"` }
type GetSpecResponseEnvelope ¶
type GetSpecResponseEnvelope struct { Value transfer.JSONInterface `json:"value"` Unresolvable *UnresolvableEnvelope `json:"unresolvable"` Complete bool `json:"complete"` }
func NewGetSpecResponseEnvelope ¶
func NewGetSpecResponseEnvelope(rv *evaluate.Result[*spec.References]) *GetSpecResponseEnvelope
type GetStateResponseEnvelope ¶
type GetStateResponseEnvelope struct { Key string `json:"key"` Value transfer.JSONInterface `json:"value"` }
type PostEventRequestEnvelope ¶
type PostEventRequestEnvelope struct { Data map[string]transfer.JSONInterface `json:"data"` Key string `json:"key"` }
type PostWorkflowRunRequestEnvelope ¶
type PostWorkflowRunRequestEnvelope struct {
Parameters map[string]openapi.WorkflowRunParameter `json:"parameters"`
}
type PostWorkflowRunResponseEnvelope ¶
type PostWorkflowRunResponseEnvelope struct {
WorkflowRun *WorkflowRunEnvelope `json:"workflow_run"`
}
type PutActionStatusRequestEnvelope ¶
type PutActionStatusRequestEnvelope struct { ProcessState *ActionStatusProcessState `json:"process_state"` WhenCondition *ActionStatusWhenCondition `json:"when_condition"` }
type PutOutputMetadataRequestEnvelope ¶
type PutOutputMetadataRequestEnvelope struct {
Sensitive bool `json:"sensitive"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(auth middleware.Authenticator, opts ...ServerOption) *Server
func (*Server) GetConditions ¶
func (s *Server) GetConditions(w http.ResponseWriter, r *http.Request)
func (*Server) GetEnvironment ¶
func (s *Server) GetEnvironment(w http.ResponseWriter, r *http.Request)
func (*Server) GetEnvironmentVariable ¶
func (s *Server) GetEnvironmentVariable(w http.ResponseWriter, r *http.Request)
func (*Server) PostDecorator ¶
func (s *Server) PostDecorator(w http.ResponseWriter, r *http.Request)
func (*Server) PostLogMessage ¶
func (s *Server) PostLogMessage(w http.ResponseWriter, r *http.Request)
func (*Server) PostValidate ¶
func (s *Server) PostValidate(w http.ResponseWriter, r *http.Request)
func (*Server) PostWorkflowRun ¶
func (s *Server) PostWorkflowRun(w http.ResponseWriter, r *http.Request)
func (*Server) PutActionStatus ¶
func (s *Server) PutActionStatus(w http.ResponseWriter, r *http.Request)
func (*Server) PutOutputMetadata ¶
func (s *Server) PutOutputMetadata(w http.ResponseWriter, r *http.Request)
type ServerOption ¶
type ServerOption func(*Server)
func WithSchemaRegistry ¶
func WithSchemaRegistry(reg validation.SchemaRegistry) ServerOption
type UnresolvableEnvelope ¶
type UnresolvableEnvelope struct { Data []spec.DataID `json:"data,omitempty"` Secrets []spec.SecretID `json:"secrets,omitempty"` Connections []spec.ConnectionID `json:"connections,omitempty"` Outputs []spec.OutputID `json:"outputs,omitempty"` Parameters []spec.ParameterID `json:"parameters,omitempty"` Answers []spec.AnswerID `json:"answers,omitempty"` Statuses []spec.StatusID `json:"statuses,omitempty"` }
func NewUnresolvableEnvelope ¶
func NewUnresolvableEnvelope(refs *spec.References) *UnresolvableEnvelope
type WorkflowRunEnvelope ¶
Click to show internal directories.
Click to hide internal directories.