Documentation ¶
Index ¶
- Variables
- func ResponseCantRemoveJob(c *gin.Context)
- func ResponseCompleteRemoveJob(c *gin.Context)
- func ResponseData(c *gin.Context, data interface{})
- func ResponseMaintenance(c *gin.Context)
- func ResponseNoAuthorization(c *gin.Context)
- func ResponseNotFoundPage(c *gin.Context)
- func ResposeNeedLogin(c *gin.Context)
- func ResposeParamsError(c *gin.Context)
- func ResposeServerError(c *gin.Context)
- type AuthInterface
- type Handler
- func (h *Handler) Active(c *gin.Context)
- func (h *Handler) AuthCallback(c *gin.Context)
- func (h *Handler) DeleteJob(c *gin.Context)
- func (h *Handler) GetHookID(c *gin.Context)
- func (h *Handler) GetJob(c *gin.Context)
- func (h *Handler) GetJobList(c *gin.Context)
- func (h *Handler) GetLogs(c *gin.Context)
- func (h *Handler) Initialize(options map[string]string, jobControl *JobControlInterface, ...) *Handler
- func (h *Handler) Login(c *gin.Context)
- func (h *Handler) ReHookID(c *gin.Context)
- func (h *Handler) UpdateJob(c *gin.Context)
- type JobControlInterface
- type JobInterface
- type ResponseJobList
- type User
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorAuthorization = errors.New("no authorization header provided")
View Source
var ErrorBearer = errors.New("could not find bearer token in authorization header")
View Source
var ErrorJob = errors.New("could not create job")
Functions ¶
func ResponseCantRemoveJob ¶
ResponseCantRemoveJob : OS 문제로 인한 삭제가 불가능할 경우 발생합니다.
func ResponseCompleteRemoveJob ¶
ResponseCompleteRemoveJob : Job이 성공적으로 삭제되었을 경우 발생합니다.
func ResponseData ¶
ResponseData : 데이터를 전송해야하는 경우 발생합니다.
func ResponseMaintenance ¶
ResponseMaintenance : 시스템 점검 중일 경우 메시지를 반환합니다.
func ResponseNoAuthorization ¶
ResponseNoAuthorization : 권한이 없는 사용자가 요청했을 경우 발생합니다.
func ResponseNotFoundPage ¶
ResponseNotFoundPage : 찾을 수 없는 페이지일 경우 발생합니다.
func ResposeParamsError ¶
ResposeParamsError : 파라미터에 오류가 있을 경우 발생합니다.
func ResposeServerError ¶
ResposeServerError : 서버에 에러가 발생했을 경우 발생합니다.
Types ¶
type AuthInterface ¶ added in v0.0.9
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) AuthCallback ¶
AuthCallback : 사용자 인증을 해서 세션에 저장합니다.
func (*Handler) GetJobList ¶
func (*Handler) Initialize ¶ added in v0.0.6
func (h *Handler) Initialize(options map[string]string, jobControl *JobControlInterface, auth *AuthInterface) *Handler
type JobControlInterface ¶ added in v0.0.7
type JobControlInterface interface { NewList(path string) ([]*JobInterface, error) NewByJSON(data, owner string) (*JobInterface, error) NewByFile(path, name, owner string) (*JobInterface, error) }
type JobInterface ¶ added in v0.0.7
type ResponseJobList ¶ added in v0.0.4
type ResponseJobList struct { Owner []*JobInterface `json:"owner"` Editor []*JobInterface `json:"editor"` Admin []*JobInterface `json:"admin"` }
type UserConfig ¶
type UserConfig struct {
Hook string `json:"hook"`
}
Click to show internal directories.
Click to hide internal directories.