Documentation ¶
Index ¶
- func AgentRouter(g *echo.Group)
- func ApplicationRouter(g *echo.Group)
- func AuthenticationHandler(handler echo.HandlerFunc) echo.HandlerFunc
- func AuthenticationHandlerForInternalCall(handler echo.HandlerFunc) echo.HandlerFunc
- func BitbucketEventRouter(g *echo.Group)
- func CompanyRouter(g *echo.Group)
- func GetClientNameFromToken(context echo.Context, jwtService service.Jwt) (v1.AgentData, error)
- func GetUserResourcePermissionFromBearerToken(context echo.Context, jwtService service.Jwt) (v1.UserResourcePermission, error)
- func GithubEventRouter(g *echo.Group)
- func KubeEventRouter(g *echo.Group)
- func KubeObjectRouter(g *echo.Group)
- func LogEventRouter(g *echo.Group)
- func NewAgentApi(agentService service.Agent, jwtService service.Jwt) api.Agent
- func NewApplicationApi(applicationService service.Company, jwtService service.Jwt) api.Application
- func NewCompanyApi(companyService service.Company, jwtService service.Jwt) api.Company
- func NewGithubApi(github service.Github, jwtService service.Jwt) api.Git
- func NewKubeEventApi(kubeEventService service.KubeEvent, jwtService service.Jwt) api.KubeEvent
- func NewKubeObjectApi(kubeObjectService service.KubeObject, jwtService service.Jwt) api.KubeObject
- func NewLogEvent(logEventService service.LogEvent, jwtService service.Jwt) api.LogEvent
- func NewPipelineApi(pipelineService service.Pipeline, jwtService service.Jwt) api.Pipeline
- func NewProcessApi(processService service.Process, jwtService service.Jwt) api.Process
- func NewProcessEvent(processEvent service.ProcessEvent, jwtService service.Jwt) api.ProcessEvent
- func NewProcessLifeCycleEventApi(processLifeCycleEventService service.ProcessLifeCycleEvent, ...) api.ProcessLifeCycleEvent
- func NewRepositoryApi(repositoryService service.Company, jwtService service.Jwt) api.Repository
- func PipelineRouter(g *echo.Group)
- func ProcessEventRouter(g *echo.Group)
- func ProcessLifeCycleEventRouter(g *echo.Group)
- func ProcessRouter(g *echo.Group)
- func RepositoryRouter(g *echo.Group)
- func Router(g *echo.Group)
- type LogEvent
- type ProcessEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationRouter ¶
func ApplicationRouter(g *echo.Group)
ApplicationRouter api/v1/applications/* router
func AuthenticationHandler ¶
func AuthenticationHandler(handler echo.HandlerFunc) echo.HandlerFunc
AuthenticationHandler handles user authentication.
func AuthenticationHandlerForInternalCall ¶
func AuthenticationHandlerForInternalCall(handler echo.HandlerFunc) echo.HandlerFunc
AuthenticationHandlerForInternalCall handles internal call authentication.
func BitbucketEventRouter ¶
func BitbucketEventRouter(g *echo.Group)
BitbucketEventRouter api/v1/bitbuckets event router
func GetClientNameFromToken ¶
func GetUserResourcePermissionFromBearerToken ¶
func GetUserResourcePermissionFromBearerToken(context echo.Context, jwtService service.Jwt) (v1.UserResourcePermission, error)
func GithubEventRouter ¶
func GithubEventRouter(g *echo.Group)
GithubEventRouter api/v1/githubs event router
func KubeEventRouter ¶
func KubeEventRouter(g *echo.Group)
KubeEventRouter api/v1/kube_events/* router
func KubeObjectRouter ¶
func KubeObjectRouter(g *echo.Group)
KubeObjectRouter api/v1/kube_objects/* router
func NewAgentApi ¶
NewAgentApi returns Agent type api
func NewApplicationApi ¶
NewApplicationApi returns Application type api
func NewCompanyApi ¶
NewCompanyApi returns Company type api
func NewGithubApi ¶
NewGithubApi returns bitbucket type api
func NewKubeEventApi ¶
NewKubeEventApi returns KubeEvent type api
func NewKubeObjectApi ¶
func NewKubeObjectApi(kubeObjectService service.KubeObject, jwtService service.Jwt) api.KubeObject
NewKubeObjectApi returns KubeObject type api
func NewLogEvent ¶
func NewPipelineApi ¶
NewPipelineApi returns Pipeline type api
func NewProcessApi ¶
NewProcessApi returns Process type api
func NewProcessEvent ¶
func NewProcessEvent(processEvent service.ProcessEvent, jwtService service.Jwt) api.ProcessEvent
func NewProcessLifeCycleEventApi ¶
func NewProcessLifeCycleEventApi(processLifeCycleEventService service.ProcessLifeCycleEvent, jwtService service.Jwt) api.ProcessLifeCycleEvent
NewProcessLifeCycleEventApi returns ProcessLifeCycleEvent type api
func NewRepositoryApi ¶
NewRepositoryApi returns Repository type api
func ProcessEventRouter ¶
func ProcessEventRouter(g *echo.Group)
ProcessEventRouter api/v1/process_events router
func ProcessLifeCycleEventRouter ¶
func ProcessLifeCycleEventRouter(g *echo.Group)
ProcessLifeCycleEventRouter api/v1/process_life_cycle_events/* router
func RepositoryRouter ¶
func RepositoryRouter(g *echo.Group)
RepositoryRouter api/v1/repositories/* router
Types ¶
type LogEvent ¶
type LogEvent struct {
// contains filtered or unexported fields
}
type ProcessEvent ¶
type ProcessEvent struct {
// contains filtered or unexported fields
}
func (ProcessEvent) Get ¶
func (p ProcessEvent) Get(context echo.Context) error
Get ... Get Proccess Event By Company Id And Process Id @Summary Get Proccess Event By Company Id And Process Id @Description Get Proccess Event By Company Id And Process Id @Tags ProcessEvent @Accept json @Produce json @Param scope query string false "scope [notification]" @Param companyId query string true "Company Id" @Param processId query string false "Process Id when scope is notification [Optional]" @Param page query int64 false "Page number" @Param limit query int64 false "Record count" @Success 200 {object} common.ResponseDTO @Failure 404 {object} common.ResponseDTO @Router /api/v1/processes_events [GET]
func (ProcessEvent) Save ¶
func (p ProcessEvent) Save(context echo.Context) error
Save... Save Pipeline process event @Summary Save Pipeline process event @Description Stores Pipeline process event @Tags ProcessEvent @Accept json @Produce json @Param data body interface{} true "PipelineProcessEvent Data" @Success 200 {object} common.ResponseDTO @Failure 404 {object} common.ResponseDTO @Router /api/v1/processes_events [POST]