Documentation ¶
Index ¶
- Variables
- func CheckIngestFlag() bool
- func EndIngestFlag()
- func IngestGETHandler(w http.ResponseWriter, r *http.Request)
- func IngestManifest() error
- func IngestPOSTHandler(w http.ResponseWriter, r *http.Request)
- func StartIngestFlag()
- type Association
- type AssociationFields
- type AssociationLoaderResponse
- type AssociationProjectField
- type Project
- type ProjectFields
- type User
- type UserFields
Constants ¶
This section is empty.
Variables ¶
View Source
var CFImportAssociationsScript string
Functions ¶
func CheckIngestFlag ¶
func CheckIngestFlag() bool
func EndIngestFlag ¶
func EndIngestFlag()
func IngestGETHandler ¶
func IngestGETHandler(w http.ResponseWriter, r *http.Request)
func IngestManifest ¶
func IngestManifest() error
func IngestPOSTHandler ¶
func IngestPOSTHandler(w http.ResponseWriter, r *http.Request)
func StartIngestFlag ¶
func StartIngestFlag()
Types ¶
type Association ¶
type Association struct { Fields AssociationFields `json:"fields"` Model string `json:"model"` }
func NewAssociation ¶
func NewAssociation(user, project, owner string) Association
func (Association) FromJSON ¶
func (a Association) FromJSON(s string) (Association, error)
func (*Association) SetManager ¶
func (a *Association) SetManager()
func (*Association) SetPI ¶
func (a *Association) SetPI()
func (Association) ToJSON ¶
func (a Association) ToJSON() (string, error)
type AssociationFields ¶
type AssociationFields struct { User []string `json:"user"` Project AssociationProjectField `json:"project"` Role []string `json:"role"` Status []string `json:"status"` EnableNotifications bool `json:"enable_notifications"` }
func NewAssociationFields ¶
func NewAssociationFields(user, project, owner string) AssociationFields
type AssociationProjectField ¶
func (AssociationProjectField) MarshalJSON ¶
func (a AssociationProjectField) MarshalJSON() ([]byte, error)
func (*AssociationProjectField) UnmarshalJSON ¶
func (a *AssociationProjectField) UnmarshalJSON(b []byte) error
type Project ¶
type Project struct { Fields ProjectFields `json:"fields"` Model string `json:"model"` }
func NewProject ¶
type ProjectFields ¶
type ProjectFields struct { Description string `json:"description"` FieldOfScience []string `json:"field_of_science"` ForceReview bool `json:"force_review"` Pi []string `json:"pi"` RequiresReview bool `json:"requires_review"` Status []string `json:"status"` Title string `json:"title"` }
func NewProjectFields ¶
func NewProjectFields(title, pi string) ProjectFields
type User ¶
type User struct { Fields UserFields `json:"fields"` Model string `json:"model"` }
type UserFields ¶
type UserFields struct { Username string `json:"username"` Firstname string `json:"first_name"` Lastname string `json:"last_name"` Email string `json:"email"` IsActive bool `json:"is_active"` IsStaff bool `json:"is_staff"` IsSuperuser bool `json:"is_superuser"` }
func NewUserFields ¶
func NewUserFields(username, firstname, lastname string) UserFields
Click to show internal directories.
Click to hide internal directories.