Documentation
¶
Index ¶
- func QueryString(r *http.Request, s string) string
- type Configuration
- type Service
- func (s *Service) ApplyConfiguration(config interface{}) error
- func (s *Service) CheckConfiguration(config interface{}) error
- func (s *Service) Init(config interface{}) (cdsclient.ServiceConfig, error)
- func (s *Service) SearchPullRequestHandler() service.Handler
- func (s *Service) Serve(c context.Context) error
- func (s *Service) Status(ctx context.Context) *sdk.MonitoringStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
Name string `toml:"name" comment:"Name of this CDS VCS Service\n Enter a name to enable this service" json:"name"`
HTTP service.HTTPRouterConfiguration `toml:"http" comment:"######################\n CDS VCS HTTP Configuration \n######################" json:"http"`
URL string `default:"http://localhost:8084" json:"url"`
API service.APIServiceConfiguration `toml:"api" comment:"######################\n CDS API Settings \n######################" json:"api"`
Cache struct {
TTL int `toml:"ttl" default:"60" json:"ttl"`
Redis sdk.RedisConf `toml:"redis" json:"redis"`
} `toml:"cache" comment:"######################\n CDS VCS Cache Settings \n######################" json:"cache"`
ProxyWebhook string `` /* 272-byte string literal not displayed */
}
Configuration is the vcs configuration structure
type Service ¶
type Service struct {
service.Common
Cfg Configuration
Router *api.Router
Cache cache.Store
UI struct {
HTTP struct {
URL string
}
}
}
Service is the stuct representing a vcs µService
func (*Service) ApplyConfiguration ¶
ApplyConfiguration apply an object of type hooks.Configuration after checking it
func (*Service) CheckConfiguration ¶
CheckConfiguration checks the validity of the configuration object
func (*Service) SearchPullRequestHandler ¶ added in v0.53.0
Click to show internal directories.
Click to hide internal directories.