handler

package
v0.0.0-...-5f720e0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupLock

func CleanupLock()

func GetRolloutCmdArgs

func GetRolloutCmdArgs() []string

func HealthCheck

func HealthCheck(w http.ResponseWriter, r *http.Request)

func JWTAuthMiddleware

func JWTAuthMiddleware(next http.Handler) http.Handler

JWTAuthMiddleware validates a JWT token and adds claims to the context

func LockExists

func LockExists(filePath string, createOnNotExists bool) bool

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

LoggingMiddleware logs incoming HTTP requests

func Rollout

func Rollout(w http.ResponseWriter, r *http.Request)

Types

type Handler

type Handler struct{}

func NewHandler

func NewHandler() *Handler

type RolloutPayload

type RolloutPayload struct {
	DockerImage string `json:"docker-image" env:"DOCKER_IMAGE"`
	DockerTag   string `json:"docker-tag" env:"DOCKER_TAG"`
	GitRepo     string `json:"git-repo" env:"GIT_REPO"`
	GitBranch   string `json:"git-branch" env:"GIT_BRANCH"`
	Arg1        string `json:"rollout-arg1" env:"ROLLOUT_ARG1"`
	Arg2        string `json:"rollout-arg2" env:"ROLLOUT_ARG2"`
	Arg3        string `json:"rollout-arg3" env:"ROLLOUT_ARG3"`
}

Jump to

Keyboard shortcuts

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