Documentation
¶
Index ¶
- func CleanupLock()
- func GetRolloutCmdArgs() []string
- func HealthCheck(w http.ResponseWriter, r *http.Request)
- func JWTAuthMiddleware(next http.Handler) http.Handler
- func LockExists(filePath string, createOnNotExists bool) bool
- func LoggingMiddleware(next http.Handler) http.Handler
- func Rollout(w http.ResponseWriter, r *http.Request)
- type Handler
- type RolloutPayload
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 ¶
JWTAuthMiddleware validates a JWT token and adds claims to the context
func LockExists ¶
func LoggingMiddleware ¶
LoggingMiddleware logs incoming HTTP requests
Types ¶
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"` }
Click to show internal directories.
Click to hide internal directories.