Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayHttpClient ¶
type GatewayHttpClient struct {
Client *http.HttpClient
}
func (*GatewayHttpClient) CreateHarborProject ¶
func (c *GatewayHttpClient) CreateHarborProject(name string) error
func (*GatewayHttpClient) CreateHarborWebhook ¶
func (c *GatewayHttpClient) CreateHarborWebhook(project string) error
func (*GatewayHttpClient) SendArgoCDWebhook ¶
func (c *GatewayHttpClient) SendArgoCDWebhook(payload []byte, headers map[string]string) error
func (*GatewayHttpClient) Set ¶
func (c *GatewayHttpClient) Set(i interface{})
type GatewayRouter ¶
func NewRouter ¶
func NewRouter() *GatewayRouter
func (*GatewayRouter) RegisterRoute ¶
func (r *GatewayRouter) RegisterRoute(method, path string, f http.HandlerFunc)
func (*GatewayRouter) RegisterRoutePrefix ¶
func (r *GatewayRouter) RegisterRoutePrefix(method, path string, f http.HandlerFunc)
type GatewayServer ¶
type GatewayServer struct { Http *http.Server Router *GatewayRouter }
func New ¶
func New(port int) *GatewayServer
func (*GatewayServer) Run ¶
func (svr *GatewayServer) Run()
func (*GatewayServer) Stop ¶
func (svr *GatewayServer) Stop()
Click to show internal directories.
Click to hide internal directories.