Documentation ¶
Index ¶
- func AuthorizationDenied(w http.ResponseWriter, r *http.Request, err error)
- func CheckAcceptRequestHeaderMiddleware(mediatype string) func(http.Handler) http.Handler
- func CheckContentHeaderMiddleware(contentType string) func(http.Handler) http.Handler
- func ComponentCreateHandler(w http.ResponseWriter, r *http.Request, client storage.ComponentClient)
- func ComponentDeleteHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func ComponentGetHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func ComponentLikeListHandler(w http.ResponseWriter, r *http.Request, client storage.ComponentClient, ...)
- func ComponentListHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func ComponentPatchHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func ComponentPostHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func ComponentPutHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func ComponentVersionLikeListHandler(w http.ResponseWriter, r *http.Request, client storage.ComponentClient, ...)
- func ComponentVersionListHandler(client storage.ComponentClient) http.HandlerFunc
- func CreateWorkflowWatch(ctx context.Context, argoclient argoclient.Interface, jobid, workspace string) (watch.Interface, error)
- func CreationPathAuthorization(next http.HandlerFunc) http.HandlerFunc
- func DeleteJob(ctx context.Context, storageClient storage.ComponentClient, ...) (models.ComponentReference, error)
- func EventSaver(ctx context.Context, wfi v1a1.WorkflowInterface, ...)
- func GetFieldnameSelector(jobname string) string
- func GetWorkspaceAccess(ctx context.Context) []workspace.Workspace
- func InitializeComponent(ctx context.Context, component models.Component) (models.Component, error)
- func InitializeJob(ctx context.Context, job models.Job) (models.Job, error)
- func InitializeMetadata(ctx context.Context, meta *models.Metadata) error
- func InitializeWorkflow(ctx context.Context, workflow models.Workflow) (models.Workflow, error)
- func JobDeleteHandler(storageClient storage.ComponentClient, argoclient argoclient.Interface) http.HandlerFunc
- func JobGetHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func JobStatusHandler(argoclient argoclient.Interface) http.HandlerFunc
- func JobTerminateHandler(argoClient argoclient.Interface) http.HandlerFunc
- func JobsEventstreamHandler(componentClient storage.ComponentClient, argoclient argoclient.Interface) http.HandlerFunc
- func JobsListHandler(componentClient storage.ComponentClient, argoclient argoclient.Interface) http.HandlerFunc
- func JobsSubmitHandler(componentClient storage.ComponentClient, argoclient argoclient.Interface) http.HandlerFunc
- func NewAuthenticationMiddleware(sec auth.AuthenticationClient) mux.MiddlewareFunc
- func NewAuthorizationContext(wsclient workspace.WorkspaceClient) mux.MiddlewareFunc
- func PatchComponent(ctx context.Context, client storage.ComponentClient, ...) (models.Component, error)
- func PatchWorkflow(ctx context.Context, client storage.ComponentClient, workflow models.Workflow) (models.Workflow, error)
- func PathAuthorization(subject auth.Subject, action auth.Action, pathVariableName string, ...) http.HandlerFunc
- func PutComponent(ctx context.Context, client storage.ComponentClient, ...) error
- func PutWorkflow(ctx context.Context, client storage.ComponentClient, workflow models.Workflow) error
- func ReadBody(r *http.Request, item any) error
- func RegisterComponentRoutes(r *mux.Route, componentClient storage.ComponentClient)
- func RegisterJobRoutes(r *mux.Route, componentClient storage.ComponentClient, ...)
- func RegisterOpenApiRoutes(r *mux.Route)
- func RegisterRoutes(r *mux.Route, componentClient storage.ComponentClient, ...)
- func RegisterSecretRoutes(r *mux.Route, sclient secret.SecretClient, authz auth.AuthorizationClient)
- func RegisterUserInfoRoutes(r *mux.Route)
- func RegisterVolumeRoutes(r *mux.Route, client storage.VolumeClient, authz auth.AuthorizationClient)
- func RegisterWorkflowRoutes(r *mux.Route, componentClient storage.ComponentClient)
- func RegisterWorkspaceRoutes(r *mux.Route, k8sclient kubernetes.Interface, namespace string, ...)
- func SecretDeleteHandler(client secret.SecretClient) http.HandlerFunc
- func SecretListHandler(client secret.SecretClient) http.HandlerFunc
- func SecretPutHandler(client secret.SecretClient) http.HandlerFunc
- func SecretsPathAuthorization(action auth.Action, authz auth.AuthorizationClient, next http.HandlerFunc) http.HandlerFunc
- func SetContentTypeMiddleware(mediatype string) func(http.Handler) http.Handler
- func StartEventLoop(ctx context.Context, watch watch.Interface, w io.Writer) error
- func StoreComponent(ctx context.Context, client storage.ComponentClient, ...) (models.ComponentReference, error)
- func StoreJob(ctx context.Context, client storage.ComponentClient, job models.Job) (models.ComponentReference, error)
- func StoreWorkflow(ctx context.Context, client storage.ComponentClient, workflow models.Workflow) (models.ComponentReference, error)
- func TerminateJob(ctx context.Context, argoClient argoclient.Interface, ...) error
- func TouchMetadata(ctx context.Context, meta *models.Metadata)
- func VolumeDeleteHandler(vclient storage.VolumeClient) http.HandlerFunc
- func VolumeGetHandler(vclient storage.VolumeClient) http.HandlerFunc
- func VolumePostHandler(vclient storage.VolumeClient) http.HandlerFunc
- func VolumePutHandler(vclient storage.VolumeClient) http.HandlerFunc
- func VolumesListHandler(vclient storage.VolumeClient) http.HandlerFunc
- func VolumesPathAuthorization(action auth.Action, authz auth.AuthorizationClient, next http.HandlerFunc) http.HandlerFunc
- func WorkflowDeleteHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func WorkflowGetHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func WorkflowListHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func WorkflowPatchHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func WorkflowPostHandler(w http.ResponseWriter, r *http.Request, client storage.ComponentClient)
- func WorkflowPutHandler(componentClient storage.ComponentClient) http.HandlerFunc
- func WorkflowVersionListHandler(client storage.ComponentClient) http.HandlerFunc
- func WorkspacesCreateHandler(k8sclient kubernetes.Interface, namespace string, ...) http.HandlerFunc
- func WorkspacesDeleteHandler(k8sclient kubernetes.Interface, namespace string, ...) http.HandlerFunc
- func WorkspacesListHandler() http.HandlerFunc
- func WorkspacesUpdateHandler(k8sclient kubernetes.Interface, namespace string, ...) http.HandlerFunc
- func WriteErrorResponse(w http.ResponseWriter, apierr APIError, tag string)
- func WriteEventToSSEStream(w io.Writer, f http.Flusher, evtObject interface{}) error
- func WriteResponse(w http.ResponseWriter, status int, headers map[string]string, body any, ...)
- type APIError
- type CRef
- type ComponentPostOptions
- type ComponentPostRequest
- type SecretField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizationDenied ¶
func AuthorizationDenied(w http.ResponseWriter, r *http.Request, err error)
func ComponentCreateHandler ¶
func ComponentCreateHandler(w http.ResponseWriter, r *http.Request, client storage.ComponentClient)
func ComponentDeleteHandler ¶
func ComponentDeleteHandler(componentClient storage.ComponentClient) http.HandlerFunc
func ComponentGetHandler ¶
func ComponentGetHandler(componentClient storage.ComponentClient) http.HandlerFunc
func ComponentLikeListHandler ¶
func ComponentLikeListHandler(w http.ResponseWriter, r *http.Request, client storage.ComponentClient, kind string)
func ComponentListHandler ¶
func ComponentListHandler(componentClient storage.ComponentClient) http.HandlerFunc
func ComponentPatchHandler ¶
func ComponentPatchHandler(componentClient storage.ComponentClient) http.HandlerFunc
func ComponentPostHandler ¶
func ComponentPostHandler(componentClient storage.ComponentClient) http.HandlerFunc
func ComponentPutHandler ¶
func ComponentPutHandler(componentClient storage.ComponentClient) http.HandlerFunc
func ComponentVersionLikeListHandler ¶
func ComponentVersionLikeListHandler(w http.ResponseWriter, r *http.Request, client storage.ComponentClient, kind string)
func ComponentVersionListHandler ¶
func ComponentVersionListHandler(client storage.ComponentClient) http.HandlerFunc
func CreateWorkflowWatch ¶
func CreationPathAuthorization ¶
func CreationPathAuthorization(next http.HandlerFunc) http.HandlerFunc
func DeleteJob ¶
func DeleteJob(ctx context.Context, storageClient storage.ComponentClient, argoClient argoclient.Interface, uid models.ComponentReference, workspace string) (models.ComponentReference, error)
func EventSaver ¶
func EventSaver(ctx context.Context, wfi v1a1.WorkflowInterface, jobid models.ComponentReference, storageClient storage.ComponentClient)
func GetFieldnameSelector ¶
func InitializeComponent ¶
func InitializeWorkflow ¶
func JobDeleteHandler ¶
func JobDeleteHandler(storageClient storage.ComponentClient, argoclient argoclient.Interface) http.HandlerFunc
func JobGetHandler ¶
func JobGetHandler(componentClient storage.ComponentClient) http.HandlerFunc
func JobStatusHandler ¶
func JobStatusHandler(argoclient argoclient.Interface) http.HandlerFunc
func JobTerminateHandler ¶
func JobTerminateHandler(argoClient argoclient.Interface) http.HandlerFunc
func JobsEventstreamHandler ¶
func JobsEventstreamHandler(componentClient storage.ComponentClient, argoclient argoclient.Interface) http.HandlerFunc
func JobsListHandler ¶
func JobsListHandler(componentClient storage.ComponentClient, argoclient argoclient.Interface) http.HandlerFunc
func JobsSubmitHandler ¶
func JobsSubmitHandler(componentClient storage.ComponentClient, argoclient argoclient.Interface) http.HandlerFunc
func NewAuthenticationMiddleware ¶
func NewAuthenticationMiddleware(sec auth.AuthenticationClient) mux.MiddlewareFunc
This ensures that the context is authenticated, with the appropriate User-tokens
func NewAuthorizationContext ¶
func NewAuthorizationContext(wsclient workspace.WorkspaceClient) mux.MiddlewareFunc
This injects the workspace into the context and can be used to authorize users further down the stack
func PatchComponent ¶
func PatchWorkflow ¶
func PathAuthorization ¶
func PathAuthorization(subject auth.Subject, action auth.Action, pathVariableName string, authz auth.AuthorizationClient, next http.HandlerFunc) http.HandlerFunc
func PutComponent ¶
func PutWorkflow ¶
func RegisterComponentRoutes ¶
func RegisterComponentRoutes(r *mux.Route, componentClient storage.ComponentClient)
func RegisterJobRoutes ¶
func RegisterJobRoutes(r *mux.Route, componentClient storage.ComponentClient, argoclient argoclient.Interface)
func RegisterOpenApiRoutes ¶
func RegisterRoutes ¶
func RegisterRoutes(r *mux.Route, componentClient storage.ComponentClient, volumeClient storage.VolumeClient, secretClient secret.SecretClient, argoclient argoclient.Interface, k8sclient kubernetes.Interface, sec auth.AuthenticationClient, authz auth.AuthorizationClient, wsclient workspace.WorkspaceClient, namespace string)
func RegisterSecretRoutes ¶
func RegisterSecretRoutes(r *mux.Route, sclient secret.SecretClient, authz auth.AuthorizationClient)
func RegisterUserInfoRoutes ¶
func RegisterVolumeRoutes ¶
func RegisterVolumeRoutes(r *mux.Route, client storage.VolumeClient, authz auth.AuthorizationClient)
func RegisterWorkflowRoutes ¶
func RegisterWorkflowRoutes(r *mux.Route, componentClient storage.ComponentClient)
func RegisterWorkspaceRoutes ¶
func RegisterWorkspaceRoutes(r *mux.Route, k8sclient kubernetes.Interface, namespace string, wsClient workspace.WorkspaceClient)
func SecretDeleteHandler ¶
func SecretDeleteHandler(client secret.SecretClient) http.HandlerFunc
func SecretListHandler ¶
func SecretListHandler(client secret.SecretClient) http.HandlerFunc
func SecretPutHandler ¶
func SecretPutHandler(client secret.SecretClient) http.HandlerFunc
func SecretsPathAuthorization ¶
func SecretsPathAuthorization(action auth.Action, authz auth.AuthorizationClient, next http.HandlerFunc) http.HandlerFunc
func StartEventLoop ¶
func StoreComponent ¶
func StoreComponent(ctx context.Context, client storage.ComponentClient, component models.Component) (models.ComponentReference, error)
func StoreJob ¶
func StoreJob(ctx context.Context, client storage.ComponentClient, job models.Job) (models.ComponentReference, error)
func StoreWorkflow ¶
func StoreWorkflow(ctx context.Context, client storage.ComponentClient, workflow models.Workflow) (models.ComponentReference, error)
func TerminateJob ¶
func TerminateJob(ctx context.Context, argoClient argoclient.Interface, uid models.ComponentReference, workspace string) error
func VolumeDeleteHandler ¶
func VolumeDeleteHandler(vclient storage.VolumeClient) http.HandlerFunc
func VolumeGetHandler ¶
func VolumeGetHandler(vclient storage.VolumeClient) http.HandlerFunc
func VolumePostHandler ¶
func VolumePostHandler(vclient storage.VolumeClient) http.HandlerFunc
func VolumePutHandler ¶
func VolumePutHandler(vclient storage.VolumeClient) http.HandlerFunc
func VolumesListHandler ¶
func VolumesListHandler(vclient storage.VolumeClient) http.HandlerFunc
func VolumesPathAuthorization ¶
func VolumesPathAuthorization(action auth.Action, authz auth.AuthorizationClient, next http.HandlerFunc) http.HandlerFunc
func WorkflowDeleteHandler ¶
func WorkflowDeleteHandler(componentClient storage.ComponentClient) http.HandlerFunc
func WorkflowGetHandler ¶
func WorkflowGetHandler(componentClient storage.ComponentClient) http.HandlerFunc
func WorkflowListHandler ¶
func WorkflowListHandler(componentClient storage.ComponentClient) http.HandlerFunc
func WorkflowPatchHandler ¶
func WorkflowPatchHandler(componentClient storage.ComponentClient) http.HandlerFunc
func WorkflowPostHandler ¶
func WorkflowPostHandler(w http.ResponseWriter, r *http.Request, client storage.ComponentClient)
func WorkflowPutHandler ¶
func WorkflowPutHandler(componentClient storage.ComponentClient) http.HandlerFunc
func WorkflowVersionListHandler ¶
func WorkflowVersionListHandler(client storage.ComponentClient) http.HandlerFunc
func WorkspacesCreateHandler ¶
func WorkspacesCreateHandler(k8sclient kubernetes.Interface, namespace string, wsClient workspace.WorkspaceClient) http.HandlerFunc
func WorkspacesDeleteHandler ¶
func WorkspacesDeleteHandler(k8sclient kubernetes.Interface, namespace string, wsClient workspace.WorkspaceClient) http.HandlerFunc
func WorkspacesListHandler ¶
func WorkspacesListHandler() http.HandlerFunc
func WorkspacesUpdateHandler ¶
func WorkspacesUpdateHandler(k8sclient kubernetes.Interface, namespace string, wsClient workspace.WorkspaceClient) http.HandlerFunc
func WriteErrorResponse ¶
func WriteErrorResponse(w http.ResponseWriter, apierr APIError, tag string)
unwrap the return code from the error and write a normal response
func WriteEventToSSEStream ¶
func WriteResponse ¶
Types ¶
type CRef ¶
type CRef = models.ComponentReference
type ComponentPostOptions ¶
type ComponentPostOptions struct { }
type ComponentPostRequest ¶
type ComponentPostRequest struct { Component models.Component `json:"component"` Options ComponentPostOptions `json:"options,omitempty"` }
type SecretField ¶
Click to show internal directories.
Click to hide internal directories.