http

package
v0.0.0-...-c5ab296 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	Status string `json:"status"`
}

type DebugHandler

type DebugHandler struct{}

DebugHandler expose debug routes

func (DebugHandler) AddRoutes

func (g DebugHandler) AddRoutes(router *mux.Router)

AddRoutes add debug routes on a router

type Opts

type Opts struct {
	Port int

	// available providers
	Providers provider.Providers

	ApprovalManager approvals.Manager

	Authenticator auth.Authenticator

	GRC *k8s.GenericResourceCache

	Store store.Store

	UIDir string

	AuthenticatedWebhooks bool
}

Opts - http server options

type TriggerServer

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

TriggerServer - webhook trigger & healthcheck server

func NewTriggerServer

func NewTriggerServer(opts *Opts) *TriggerServer

NewTriggerServer - create new HTTP trigger based server

func (*TriggerServer) Start

func (s *TriggerServer) Start() error

Start - start server

func (*TriggerServer) Stop

func (s *TriggerServer) Stop()

Stop - stop webhook server

type UserInfo

type UserInfo struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Username      string `json:"username"`
	Avatar        string `json:"avatar"`
	Status        int    `json:"status"`
	LastLoginIP   string `json:"last_login_ip"`
	LastLoginTime int64  `json:"last_login_time"`
	RoleID        string `json:"role_id"`
}

Jump to

Keyboard shortcuts

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