Documentation ¶
Index ¶
- Constants
- func NewDbStore(db dal.Dal, basicRes core.BasicRes) *dbStore
- type Handlers
- func (h *Handlers) CreateProjectMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) CreateTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) CreateUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) CreateUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) GetProjectMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) GetTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) GetUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func (h *Handlers) GetUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
Constants ¶
const TimeFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func (*Handlers) CreateProjectMapping ¶ added in v0.13.0
func (h *Handlers) CreateProjectMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
CreateProjectMapping accepts a CSV file containing project mapping and saves it to the database @Summary Upload project_mapping.csv file @Description upload project_mapping.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/project_mapping.csv [put]
func (*Handlers) CreateTeam ¶
func (h *Handlers) CreateTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
CreateTeam accepts a CSV file containing team information and saves it to the database @Summary Upload teams.csv file @Description upload teams.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/teams.csv [put]
func (*Handlers) CreateUser ¶
func (h *Handlers) CreateUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
CreateUser accepts a CSV file containing user information mapping and saves it to the database @Summary Upload users.csv file @Description upload users.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/users.csv [put]
func (*Handlers) CreateUserAccountMapping ¶
func (h *Handlers) CreateUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
CreateUserAccountMapping accepts a CSV file containing user/account mapping and saves it to the database @Summary Upload user_account_mapping.csv.csv file @Description upload user_account_mapping.csv.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/user_account_mapping.csv [put]
func (*Handlers) GetProjectMapping ¶ added in v0.13.0
func (h *Handlers) GetProjectMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GetProjectMapping returns all project mapping in csv format @Summary Get project_mapping.csv file @Description get project_mapping.csv file @Tags plugins/org @Produce text/csv @Param fake_data query bool false "return fake data or not" @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/project_mapping.csv [get]
func (*Handlers) GetTeam ¶
func (h *Handlers) GetTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GetTeam returns all team in csv format @Summary Get teams.csv file @Description get teams.csv file @Tags plugins/org @Produce text/csv @Param fake_data query bool false "return fake data or not" @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/teams.csv [get]
func (*Handlers) GetUser ¶
func (h *Handlers) GetUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GetUser returns all user in csv format @Summary Get users.csv file @Description get users.csv file @Tags plugins/org @Produce text/csv @Param fake_data query bool false "return fake data or not" @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/users.csv [get]
func (*Handlers) GetUserAccountMapping ¶
func (h *Handlers) GetUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
GetUserAccountMapping returns all user/account mapping in csv format @Summary Get user_account_mapping.csv.csv file @Description get user_account_mapping.csv.csv file @Tags plugins/org @Produce text/csv @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/user_account_mapping.csv [get]