v1

package
v0.0.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentRouter

func AgentRouter(g *echo.Group)

AgentRouter api/v1/agents/* router

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 CompanyRouter

func CompanyRouter(g *echo.Group)

CompanyRouter api/v1/companies/* router

func GetClientNameFromToken

func GetClientNameFromToken(context echo.Context, jwtService service.Jwt) (v1.AgentData, error)

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 LogEventRouter

func LogEventRouter(g *echo.Group)

LogEventRouter api/v1/logs router

func NewAgentApi

func NewAgentApi(agentService service.Agent, jwtService service.Jwt) api.Agent

NewAgentApi returns Agent type api

func NewApplicationApi

func NewApplicationApi(applicationService service.Company, jwtService service.Jwt) api.Application

NewApplicationApi returns Application type api

func NewCompanyApi

func NewCompanyApi(companyService service.Company, jwtService service.Jwt) api.Company

NewCompanyApi returns Company type api

func NewGithubApi

func NewGithubApi(github service.Github, jwtService service.Jwt) api.Git

NewGithubApi returns bitbucket type api

func NewKubeEventApi

func NewKubeEventApi(kubeEventService service.KubeEvent, jwtService service.Jwt) api.KubeEvent

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 NewLogEvent(logEventService service.LogEvent, jwtService service.Jwt) api.LogEvent

func NewPipelineApi

func NewPipelineApi(pipelineService service.Pipeline, jwtService service.Jwt) api.Pipeline

NewPipelineApi returns Pipeline type api

func NewProcessApi

func NewProcessApi(processService service.Process, jwtService service.Jwt) api.Process

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

func NewRepositoryApi(repositoryService service.Company, jwtService service.Jwt) api.Repository

NewRepositoryApi returns Repository type api

func PipelineRouter

func PipelineRouter(g *echo.Group)

PipelineRouter api/v1/pipelines/* router

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 ProcessRouter

func ProcessRouter(g *echo.Group)

ProcessRouter api/v1/processes/* router

func RepositoryRouter

func RepositoryRouter(g *echo.Group)

RepositoryRouter api/v1/repositories/* router

func Router

func Router(g *echo.Group)

Router api/v1 base router

Types

type LogEvent

type LogEvent struct {
	// contains filtered or unexported fields
}

func (LogEvent) Save

func (l LogEvent) Save(context echo.Context) error

Save... Save log @Summary Save log @Description Stores logs @Tags Log @Accept json @Produce json @Param data body interface{} true "LogEvent Data" @Success 200 {object} common.ResponseDTO @Failure 404 {object} common.ResponseDTO @Router /api/v1/logs [POST]

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL