Documentation ¶
Index ¶
Constants ¶
View Source
const ( RN_Preflight = "Preflight" RN_ListNamespaces = "ListNamespaces" RN_AddNamespace = "AddNamespace" RN_DeleteNamespace = "DeleteNamespace" RN_NamespaceEvent = "NamespaceEvent" RN_ListSecrets = "ListSecrets" RN_CreateSecret = "CreateSecret" RN_DeleteSecret = "DeleteSecret" RN_ListRegistries = "ListRegistries" RN_CreateRegistry = "CreateRegistry" RN_DeleteRegistry = "DeleteRegistry" RN_GetWorkflowMetrics = "GetWorkflowMetrics" RN_ListWorkflows = "ListWorkflows" RN_GetWorkflow = "GetWorkflow" RN_UpdateWorkflow = "UpdateWorkflow" RN_ToggleWorkflow = "ToggleWorkflow" RN_CreateWorkflow = "CreateWorkflow" RN_DeleteWorkflow = "DeleteWorkflow" RN_DownloadWorkflow = "DownloadWorkflow" RN_ExecuteWorkflow = "ExecuteWorkflow" RN_ListWorkflowInstances = "ListWorkflowInstances" RN_ListInstances = "ListInstances" RN_GetInstance = "GetInstance" RN_CancelInstance = "CancelInstance" RN_GetInstanceLogs = "GetInstanceLogs" RN_ListActionTemplateFolders = "ListActionTemplateFolders" RN_ListActionTemplates = "ListActionTemplates" RN_GetActionTemplate = "GetActionTemplate" RN_ListWorkflowTemplateFolders = "ListWorkflowTemplateFolders" RN_ListWorkflowTemplates = "ListWorkflowTemplates" RN_GetWorkflowTemplate = "GetWorkflowTemplate" RN_JQPlayground = "JQPlayground" )
RN = Route Name
View Source
const ( // GRPCCommandTimeout : timeout for grpc function calls GRPCCommandTimeout = 30 * time.Second )
Variables ¶
View Source
var RouteNames = []string{ RN_Preflight, RN_ListNamespaces, RN_AddNamespace, RN_DeleteNamespace, RN_NamespaceEvent, RN_ListSecrets, RN_CreateSecret, RN_DeleteSecret, RN_ListRegistries, RN_CreateRegistry, RN_DeleteRegistry, RN_GetWorkflowMetrics, RN_ListWorkflows, RN_GetWorkflow, RN_UpdateWorkflow, RN_ToggleWorkflow, RN_CreateWorkflow, RN_DeleteWorkflow, RN_DownloadWorkflow, RN_ExecuteWorkflow, RN_ListWorkflowInstances, RN_ListInstances, RN_GetInstance, RN_CancelInstance, RN_GetInstanceLogs, RN_ListActionTemplateFolders, RN_ListActionTemplates, RN_GetActionTemplate, RN_ListWorkflowTemplateFolders, RN_ListWorkflowTemplates, RN_GetWorkflowTemplate, RN_JQPlayground, }
Functions ¶
func CtxDeadline ¶
CtxDeadline defines default request deadline
func ErrResponse ¶
func ErrResponse(w http.ResponseWriter, err error)
ErrResponse creates error based on grpc error
Types ¶
type Config ¶
type Config struct { Ingress struct { Endpoint string TLS bool } Server struct { Bind string } Templates struct { WorkflowTemplateDirectories []NamedDirectory ActionTemplateDirectories []NamedDirectory } }
Config ..
func ConfigFromEnv ¶
ConfigFromEnv reads API configuration from env variables
func ConfigFromFile ¶
ConfigFromFile reads API configuration from file
type GithubFileInfo ¶
type GithubFileInfo struct { Name string `json:"name"` Path string `json:"path"` Sha string `json:"sha"` Size int `json:"size"` URL string `json:"url"` HTMLURL string `json:"html_url"` GitURL string `json:"git_url"` DownloadURL string `json:"download_url"` Type string `json:"type"` Links struct { Self string `json:"self"` Git string `json:"git"` HTML string `json:"html"` } `json:"_links"` }
GithubDirectoryInfo ..
type NameDataTuple ¶
type NamedDirectory ¶
type RequestStatus ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server ..
func (*Server) IngressClient ¶
func (s *Server) IngressClient() ingress.DirektivIngressClient
IngressClient returns client to backend
Click to show internal directories.
Click to hide internal directories.