v1

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package v1 contains the v1 api and client models.

Index

Constants

View Source
const DefaultNamespace = "apps"

Variables

This section is empty.

Functions

func DeleteDeployment added in v0.0.7

func DeleteDeployment(c echo.Context, stateRepo git.Repo, deploymentService deployment.Service) error

func GetSecrets

func GetSecrets(c echo.Context, secretService secret.Service, stageService stage.Service) error

func GetStatus

func GetStatus(c echo.Context, statusService deploymentstatus.Service) error

func ListApps

func ListApps(c echo.Context, appRepo core.AppRepository) error

func ListStages

func ListStages(c echo.Context, stageRepository core.StageRepository) error

func PostApp

func PostApp(c echo.Context, appService app.Service) error

func PostDeployment

func PostDeployment(c echo.Context, stateRepo git.Repo, appService app.Service, deploymentService deployment.Service, stageService stage.Service) error

TODO: Refactor and add unit test coverage

func PostStagePing

func PostStagePing(c echo.Context, stageService stage.Service) error

TODO: Once RBAC is implemented this should be limited to the controller.

func PostValidateAppConfig

func PostValidateAppConfig(c echo.Context) error

func PutDeploymentStatus

func PutDeploymentStatus(c echo.Context, deploymentStatusService deploymentstatus.Service) error

func PutRollout added in v0.0.6

func PutRollout(c echo.Context, rolloutService rollout.Service, stageService stage.Service, stateRepo git.Repo) error

func PutSecret

func PutSecret(c echo.Context, stateRepo git.Repo, secretService secret.Service, stageService stage.Service) error

func PutStageConfig

func PutStageConfig(c echo.Context, stageService stage.Service) error

func RegisterRoutes

func RegisterRoutes(e *echo.Echo, repo git.Repo, db *sql.DB)

Types

This section is empty.

Directories

Path Synopsis
model module

Jump to

Keyboard shortcuts

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