Documentation ¶
Index ¶
- func ConstructFullyQualifiedName(resourceType string, length int, resourceName string) string
- func ConstructPipelineFullyQualifiedName(pipelineName string) string
- func ConstructTriggerFullyQualifiedName(triggerName string) string
- func ExecutePipeline(input types.CmdPipeline, executionId, pipelineName string, ...) (types.PipelineExecutionResponse, *event.PipelineQueue, error)
- func ExecuteTrigger(ctx context.Context, input types.CmdTrigger, executionId, triggerName string, ...) (string, error)
- func GetIntegration(name string) (*types.FpIntegration, error)
- func GetNotifier(name string) (*types.FpNotifier, error)
- func GetPipeline(pipelineName string, rootMod string) (*types.FpPipeline, error)
- func GetProcess(executionId string) (*types.Process, error)
- func GetTrigger(triggerName string, rootMod string) (*types.FpTrigger, error)
- func GetVariable(name string) (*types.FpVariable, error)
- func ListIntegrations() (*types.ListIntegrationResponse, error)
- func ListNotifiers() (*types.ListNotifierResponse, error)
- func ListPipelines(rootMod string) (*types.ListPipelineResponse, error)
- func ListProcesses() (*types.ListProcessResponse, error)
- func ListTriggers(rootMod string) (*types.ListTriggerResponse, error)
- func ListVariables() (*types.ListVariableResponse, error)
- func ResumeProcess(executionId string, esService *es.ESService) (pipelineExecutionId, pipelineName string, err error)
- func WaitForTrigger(triggerName, executionId string, waitRetry int) (types.TriggerExecutionResponse, error)
- type APIService
- func (api *APIService) DocsRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) FormRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) IntegrationRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) ModRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) NotifierRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) PipelineRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) ProcessRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) Start() error
- func (api *APIService) Stop() error
- func (api *APIService) TriggerRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) VariableRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) WebhookRegisterAPI(router *gin.RouterGroup)
- type APIServiceOption
- type JSONPayload
- type RootModMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructFullyQualifiedName ¶ added in v0.5.0
func ConstructTriggerFullyQualifiedName ¶ added in v0.7.0
func ExecutePipeline ¶
func ExecutePipeline(input types.CmdPipeline, executionId, pipelineName string, esService *es.ESService) (types.PipelineExecutionResponse, *event.PipelineQueue, error)
func ExecuteTrigger ¶ added in v0.7.0
func GetIntegration ¶ added in v0.3.0
func GetIntegration(name string) (*types.FpIntegration, error)
func GetNotifier ¶ added in v0.3.0
func GetNotifier(name string) (*types.FpNotifier, error)
func GetPipeline ¶
func GetPipeline(pipelineName string, rootMod string) (*types.FpPipeline, error)
func GetVariable ¶ added in v0.5.0
func GetVariable(name string) (*types.FpVariable, error)
func ListIntegrations ¶ added in v0.3.0
func ListIntegrations() (*types.ListIntegrationResponse, error)
func ListNotifiers ¶ added in v0.3.0
func ListNotifiers() (*types.ListNotifierResponse, error)
func ListPipelines ¶
func ListPipelines(rootMod string) (*types.ListPipelineResponse, error)
func ListProcesses ¶
func ListProcesses() (*types.ListProcessResponse, error)
func ListTriggers ¶
func ListTriggers(rootMod string) (*types.ListTriggerResponse, error)
func ListVariables ¶ added in v0.5.0
func ListVariables() (*types.ListVariableResponse, error)
func ResumeProcess ¶ added in v1.0.0
func WaitForTrigger ¶ added in v1.0.0
func WaitForTrigger(triggerName, executionId string, waitRetry int) (types.TriggerExecutionResponse, error)
Types ¶
type APIService ¶
type APIService struct { EsService *es.ESService HTTPAddress string HTTPPort int // Status tracking for the API service. Status string StartedAt *time.Time StoppedAt *time.Time `json:"stopped_at,omitempty"` ModMetadata RootModMetadata // contains filtered or unexported fields }
APIService represents the API service.
func NewAPIService ¶
func NewAPIService(ctx context.Context, es *es.ESService, opts ...APIServiceOption) (*APIService, error)
NewAPIService creates a new APIService.
func (*APIService) DocsRegisterAPI ¶
func (api *APIService) DocsRegisterAPI(router *gin.RouterGroup)
func (*APIService) FormRegisterAPI ¶ added in v0.3.0
func (api *APIService) FormRegisterAPI(router *gin.RouterGroup)
func (*APIService) IntegrationRegisterAPI ¶ added in v0.3.0
func (api *APIService) IntegrationRegisterAPI(router *gin.RouterGroup)
func (*APIService) ModRegisterAPI ¶
func (api *APIService) ModRegisterAPI(router *gin.RouterGroup)
func (*APIService) NotifierRegisterAPI ¶ added in v0.3.0
func (api *APIService) NotifierRegisterAPI(router *gin.RouterGroup)
func (*APIService) PipelineRegisterAPI ¶
func (api *APIService) PipelineRegisterAPI(router *gin.RouterGroup)
func (*APIService) ProcessRegisterAPI ¶
func (api *APIService) ProcessRegisterAPI(router *gin.RouterGroup)
func (*APIService) Start ¶
func (api *APIService) Start() error
Start starts services managed by the Manager.
func (*APIService) Stop ¶
func (api *APIService) Stop() error
Stop stops services managed by the Manager.
func (*APIService) TriggerRegisterAPI ¶
func (api *APIService) TriggerRegisterAPI(router *gin.RouterGroup)
func (*APIService) VariableRegisterAPI ¶
func (api *APIService) VariableRegisterAPI(router *gin.RouterGroup)
func (*APIService) WebhookRegisterAPI ¶
func (api *APIService) WebhookRegisterAPI(router *gin.RouterGroup)
type APIServiceOption ¶
type APIServiceOption func(*APIService) error
APIServiceOption defines a type of function to configures the APIService.
func WithHTTPAddress ¶
func WithHTTPAddress(addr string) APIServiceOption
WithHTTPAddress sets the host and port of the API HTTPS service from the given address string in host:port format.
func WithHTTPPort ¶
func WithHTTPPort(port int) APIServiceOption
WithHTTPPort sets port of the API HTTP service
type JSONPayload ¶
type RootModMetadata ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.