Documentation
¶
Index ¶
- func AbortWithErrorHTML(c *gin.Context, status int, err error)
- func AbortWithErrorJSON(c *gin.Context, status int, err error)
- func AbortWithErrorModal(c *gin.Context, status int, err error)
- func AboutShow(c *gin.Context)
- func AlreadySelectedTargets(job *core.Job) []string
- func AppSettingDelete(c *gin.Context)
- func AppSettingEdit(c *gin.Context)
- func AppSettingIndex(c *gin.Context)
- func AppSettingNew(c *gin.Context)
- func AppSettingSave(c *gin.Context)
- func BagItProfileCreate(c *gin.Context)
- func BagItProfileCreateTagFile(c *gin.Context)
- func BagItProfileDelete(c *gin.Context)
- func BagItProfileDeleteTag(c *gin.Context)
- func BagItProfileDeleteTagFile(c *gin.Context)
- func BagItProfileEdit(c *gin.Context)
- func BagItProfileEditTag(c *gin.Context)
- func BagItProfileExport(c *gin.Context)
- func BagItProfileImport(c *gin.Context)
- func BagItProfileImportStart(c *gin.Context)
- func BagItProfileIndex(c *gin.Context)
- func BagItProfileNew(c *gin.Context)
- func BagItProfileNewTag(c *gin.Context)
- func BagItProfileNewTagFile(c *gin.Context)
- func BagItProfileSave(c *gin.Context)
- func BagItProfileSaveTag(c *gin.Context)
- func DashboardGetReport(c *gin.Context)
- func DashboardShow(c *gin.Context)
- func DefaultTemplateData(c *gin.Context) gin.H
- func ExportSettingsIndex(c *gin.Context)
- func GetAvailableUploadTargets(selectedTargets []string) ([]core.Choice, error)
- func GetDirList(dirname string) ([]*util.ExtendedFileInfo, error)
- func GetFlashCookie(c *gin.Context) string
- func GetHelpUrl(c *gin.Context) string
- func GetJobAndDirList(jobId, dirname string) (*core.Job, []*util.ExtendedFileInfo, error)
- func GetParentDir(dirName string) (string, string)
- func GetUploadTargetsForm(job *core.Job) (*core.Form, error)
- func InitFileChooser(c *gin.Context) (gin.H, error)
- func InternalSettingIndex(c *gin.Context)
- func JobAddFile(c *gin.Context)
- func JobAddTag(c *gin.Context)
- func JobArtifactShow(c *gin.Context)
- func JobArtifactsList(c *gin.Context)
- func JobDelete(c *gin.Context)
- func JobDeleteFile(c *gin.Context)
- func JobDeleteTag(c *gin.Context)
- func JobIndex(c *gin.Context)
- func JobNew(c *gin.Context)
- func JobRunExecute(c *gin.Context)
- func JobRunShow(c *gin.Context)
- func JobSaveMetadata(c *gin.Context)
- func JobSavePackaging(c *gin.Context)
- func JobSaveTag(c *gin.Context)
- func JobSaveUpload(c *gin.Context)
- func JobShowFiles(c *gin.Context)
- func JobShowJson(c *gin.Context)
- func JobShowMetadata(c *gin.Context)
- func JobShowPackaging(c *gin.Context)
- func JobShowUpload(c *gin.Context)
- func OpenDataFolder(c *gin.Context)
- func OpenExternalUrl(c *gin.Context)
- func OpenLog(c *gin.Context)
- func OpenLogFolder(c *gin.Context)
- func RemoteRepositoryDelete(c *gin.Context)
- func RemoteRepositoryEdit(c *gin.Context)
- func RemoteRepositoryIndex(c *gin.Context)
- func RemoteRepositoryNew(c *gin.Context)
- func RemoteRepositorySave(c *gin.Context)
- func RemoteRepositoryTestConnection(c *gin.Context)
- func SetFlashCookie(c *gin.Context, message string)
- func SettingsExportDelete(c *gin.Context)
- func SettingsExportDeleteQuestion(c *gin.Context)
- func SettingsExportEdit(c *gin.Context)
- func SettingsExportEditQuestion(c *gin.Context)
- func SettingsExportNew(c *gin.Context)
- func SettingsExportNewQuestion(c *gin.Context)
- func SettingsExportSave(c *gin.Context)
- func SettingsExportSaveQuestion(c *gin.Context)
- func SettingsExportShowJson(c *gin.Context)
- func SettingsImportAnswers(c *gin.Context)
- func SettingsImportRun(c *gin.Context)
- func SettingsImportShow(c *gin.Context)
- func ShowFileChooser(c *gin.Context)
- func StorageServiceDelete(c *gin.Context)
- func StorageServiceEdit(c *gin.Context)
- func StorageServiceIndex(c *gin.Context)
- func StorageServiceNew(c *gin.Context)
- func StorageServiceSave(c *gin.Context)
- func StorageServiceTestConnection(c *gin.Context)
- func TagErrorsExist(tags []*core.TagDefinition) bool
- func UploadJobAddFile(c *gin.Context)
- func UploadJobDeleteFile(c *gin.Context)
- func UploadJobNew(c *gin.Context)
- func UploadJobReview(c *gin.Context)
- func UploadJobRun(c *gin.Context)
- func UploadJobSaveTarget(c *gin.Context)
- func UploadJobShowFiles(c *gin.Context)
- func UploadJobShowTargets(c *gin.Context)
- func ValidateTagValue(tagDef *core.TagDefinition) string
- func ValidationJobAddFile(c *gin.Context)
- func ValidationJobDeleteFile(c *gin.Context)
- func ValidationJobNew(c *gin.Context)
- func ValidationJobReview(c *gin.Context)
- func ValidationJobRun(c *gin.Context)
- func ValidationJobSaveProfile(c *gin.Context)
- func ValidationJobShowFiles(c *gin.Context)
- func ValidationJobShowProfiles(c *gin.Context)
- func WorkflowBatchValidate(c *gin.Context)
- func WorkflowCreateFromJob(c *gin.Context)
- func WorkflowDelete(c *gin.Context)
- func WorkflowEdit(c *gin.Context)
- func WorkflowExport(c *gin.Context)
- func WorkflowIndex(c *gin.Context)
- func WorkflowNew(c *gin.Context)
- func WorkflowRun(c *gin.Context)
- func WorkflowRunBatch(c *gin.Context)
- func WorkflowSave(c *gin.Context)
- func WorkflowShowBatchForm(c *gin.Context)
- type DashboardReport
- type JobListItem
- type Pager
- type Request
- type TagFileForms
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlreadySelectedTargets ¶
func AppSettingDelete ¶
DELETE /app_settings/delete/:id POST /app_settings/delete/:id
func AppSettingSave ¶
PUT /app_settings/edit/:id POST /app_settings/edit/:id POST /app_settings/new
func BagItProfileCreate ¶
BagItProfileCreate creates a new Profile. Handles submission of new Profile form. POST /profiles/new
func BagItProfileCreateTagFile ¶
POST /profiles/new_tag_file/:profile_id
func BagItProfileDelete ¶
PUT /profiles/delete/:id POST /profiles/delete/:id
func BagItProfileDeleteTag ¶
POST /profiles/delete_tag/:profile_id/:tag_id PUT /profiles/delete_tag/:profile_id/:tag_id
func BagItProfileDeleteTagFile ¶
POST /profiles/delete_tag_file/:profile_id PUT /profiles/delete_tag_file/:profile_id
func BagItProfileEditTag ¶
GET /profiles/edit_tag/:profile_id/:tag_id
func BagItProfileImportStart ¶
GET /profiles/import_start
func BagItProfileNewTag ¶
GET /profiles/new_tag/:profile_id/:tag_file
func BagItProfileNewTagFile ¶
GET /profiles/new_tag_file/:profile_id
func BagItProfileSave ¶
PUT /profiles/edit/:id POST /profiles/edit/:id
func BagItProfileSaveTag ¶
POST /profiles/edit_tag/:profile_id/:tag_id PUT /profiles/edit_tag/:profile_id/:tag_id
func DashboardGetReport ¶
DashboardGetReport returns a report from a remote repository. This is an AJAX call. We want the dashboard page to display first, and then we'll load and display these reports as they become available.
Params are RemoteRepoID and ReportName.
GET /dashboard/report
func DashboardShow ¶
DashboardShow shows the DART dashboard. This is essentially DART's homepage.
GET /
func ExportSettingsIndex ¶
ExportSettingsIndex displays a list of ExportSettings objects.
GET /settings/export
func GetDirList ¶
func GetDirList(dirname string) ([]*util.ExtendedFileInfo, error)
func GetFlashCookie ¶
func GetHelpUrl ¶
func GetJobAndDirList ¶
func GetParentDir ¶
func JobRunExecute ¶
GET /jobs/run/:id
By REST standards, this should be a POST. However, the Server Sent Events standard for JavaScript only supports GET, so GET it is.
func JobShowJson ¶
JobShowJson displays a job's raw JSON data. Note that this mimics JobArtifactShow and even uses the same template. This method converts the Job JSON into a mock artifact to simplify the front-end display. We do not save the mock artifact because job records belong only in the dart table, not in the artifacts table.
GET /jobs/show_json/:id
func OpenExternalUrl ¶
GET /open_external This is an AJAX call. TODO: Make context-sensitive. Go to the right page!
func RemoteRepositoryDelete ¶
GET /remote_repositories/delete/:id POST /remote_repositories/delete/:id
func RemoteRepositoryEdit ¶
GET /remote_repositories/edit/:id
func RemoteRepositorySave ¶
PUT /remote_repositories/edit/:id POST /remote_repositories/edit/:id POST /remote_repositories/new
func RemoteRepositoryTestConnection ¶
RemoteRepositoryTestConnection tests a connection to a remote repository, so user can be sure they have everything configured correctly.
POST /remote_repositories/test/:id
func SetFlashCookie ¶
func SettingsExportDelete ¶
SettingsExportDelete deletes the ExportSettings record with the specified ID.
POST /settings/export/delete/:id
func SettingsExportDeleteQuestion ¶
SettingsExportDeleteQuestion deletes a question from ExportSettings.
POST /settings/export/questions/delete/:settings_id/:question_id
func SettingsExportEdit ¶
SettingsExportEdit shows a form on which user can edit the specified ExportSettings.
GET /settings/export/edit/:id
func SettingsExportEditQuestion ¶
SettingsExportEditQuestion shows a form to edit a question from ExportSettings.
GET /settings/export/questions/edit/:settings_id/:question_id
func SettingsExportNew ¶
SettingsExportNew creates a new ExportSettings object and then redirects to the edit form.
GET /settings/export/new
func SettingsExportNewQuestion ¶
SettingsExportNewQuestion show a new, empty question form. The front end displays this in a modal dialog.
GET /settings/export/questions/new/:id
func SettingsExportSaveQuestion ¶
SettingsExportSaveQuestion saves questions attached to the specified ExportSettings object.
POST /settings/export/questions/:id
func SettingsExportShowJson ¶
SettingsExportShowJson shows the JSON representation of an ExportSettings object. This is the value a user will copy to share settings with others.
GET /settings/export/show_json/:id
func SettingsImportAnswers ¶
SettingsImportAnswers receives the user's answers to settings questions and applies them to the proper objects and fields before saving the settings.
POST /settings/import/answers
func SettingsImportRun ¶
SettingsImportRun actually runs the import, saving whatever export settings are submitted in the form or fetched from the URL.
If the settings include questions, the user will have to answer those before we actually do the import.
POST /settings/import
func SettingsImportShow ¶
SettingsImportShow shows a form on which user can specify a URL from which to import settings, or a blob of JSON to be imported directly.
GET /settings/import
func StorageServiceDelete ¶
GET /storage_services/delete/:id POST /storage_services/delete/:id
func StorageServiceSave ¶
PUT /storage_services/edit/:id POST /storage_services/edit/:id POST /storage_services/new
func StorageServiceTestConnection ¶
POST /storage_services/test/:id
func TagErrorsExist ¶
func TagErrorsExist(tags []*core.TagDefinition) bool
func UploadJobDeleteFile ¶
POST /upload_jobs/delete_file/:id
func UploadJobRun ¶
GET /upload_jobs/run/:id
By REST standards, this should be a POST. However, the Server Send Events standard for JavaScript only supports GET.
func ValidateTagValue ¶
func ValidateTagValue(tagDef *core.TagDefinition) string
func ValidationJobAddFile ¶
POST /validation_jobs/add_file/:id
func ValidationJobDeleteFile ¶
POST /validation_jobs/delete_file/:id
func ValidationJobRun ¶
GET /validation_jobs/run/:id
By REST standards, this should be a POST. However, the Server Send Events standard for JavaScript only supports GET.
func ValidationJobSaveProfile ¶
POST /validation_jobs/profiles/:id
func ValidationJobShowFiles ¶
GET /validation_jobs/files/:id
func ValidationJobShowProfiles ¶
GET /validation_jobs/profiles/:id
func WorkflowBatchValidate ¶
POST /workflows/batch/validate
func WorkflowCreateFromJob ¶
WorkflowCreateFromJob creates a new Workflow. Handles submission of new Workflow form. POST /workflows/from_job/:jobId
func WorkflowDelete ¶
PUT /workflows/delete/:id POST /workflows/delete/:id
func WorkflowSave ¶
PUT /workflows/edit/:id POST /workflows/edit/:id
Types ¶
type DashboardReport ¶
type JobListItem ¶
type JobListItem struct { Job *core.Job Artifacts []core.NameIDPair }
type Pager ¶
type Request ¶
type Request struct { Action string Errors []error Handler string ObjType string Path string PathAndQuery string QueryResult *core.QueryResult IsListResponse bool TemplateData gin.H // contains filtered or unexported fields }
func NewRequest ¶
type TagFileForms ¶
This struct holds all the tag form inputs for a tag file. This is used on the metadata page.
func GetTagFileForms ¶
func GetTagFileForms(job *core.Job, withErrors bool) []TagFileForms
Source Files
¶
- about_controller.go
- app_settings_controller.go
- bagit_profiles_controller.go
- cookies.go
- dashboard_controller.go
- error_controller.go
- files_controller.go
- internal_settings_controller.go
- job_artifacts_controller.go
- job_files_controller.go
- job_metadata_controller.go
- job_packaging_controller.go
- job_run_controller.go
- job_uploads_controller.go
- jobs_controller.go
- pager.go
- remote_repositories_controller.go
- request.go
- settings_controller.go
- storage_services_controller.go
- upload_job_controller.go
- validation_job_controller.go
- workflows_controller.go