controllers

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct{}

func (*App) Index

func (a *App) Index(c echo.Context) error

type Branches

type Branches struct{}

func (*Branches) Create

func (b *Branches) Create(c echo.Context) error

func (*Branches) Delete

func (b *Branches) Delete(c echo.Context) error

func (*Branches) Deploy

func (b *Branches) Deploy(c echo.Context) error

func (*Branches) Index

func (b *Branches) Index(c echo.Context) error

func (*Branches) Show

func (b *Branches) Show(c echo.Context) error

func (*Branches) Status

func (b *Branches) Status(c echo.Context) error

type EditProjectForm

type EditProjectForm struct {
	BaseURL           string           `json:"base_url" form:"base_url" valid:"required,stringlength(1|255)"`
	HelmDirectoryName string           `json:"helm_directory_name" form:"helm_directory_name" valid:"stringlength(0|255)"`
	Namespace         string           `json:"namespace" form:"namespace" valid:"required,stringlength(1|255)"`
	ValueOptions      []*OverrideValue `json:"value_options" form:"value_options" valid:"-"`
}

EditProjectForm is form struct for update projects.

type Github

type Github struct{}

func (*Github) Branches

func (g *Github) Branches(c echo.Context) error

func (*Github) Repos

func (g *Github) Repos(c echo.Context) error

type NewBranchForm

type NewBranchForm struct {
	Name string `json:"name" form:"name" valid:"required,stringlength(1|255)"`
}

type NewProjectForm

type NewProjectForm struct {
	Title             string           `json:"title" form:"title" valid:"required,stringlength(1|255)"`
	BaseURL           string           `json:"base_url" form:"base_url" valid:"required,stringlength(1|255)"`
	RepositoryOwner   string           `json:"repository_owner" form:"repository_owner" valid:"required,stringlength(1|255)"`
	RepositoryName    string           `json:"repository_name" form:"repository_name" valid:"required,stringlength(1|255)"`
	HelmRepositoryURL string           `json:"helm_repository_url" form:"helm_repository_url" valid:"required,stringlength(1|255)"`
	HelmDirectoryName string           `json:"helm_directory_name" form:"helm_directory_name" valid:"stringlength(0|255)"`
	Namespace         string           `json:"namespace" form:"namespace" valid:"required,stringlength(1|255)"`
	ValueOptions      []*OverrideValue `json:"value_options" form:"value_options" valid:"-"`
}

NewProjectForm is form struct for create projects.

type Oauth

type Oauth struct {
}

func (*Oauth) Callback

func (o *Oauth) Callback(c echo.Context) error

func (*Oauth) Login

func (o *Oauth) Login(c echo.Context) error

type OverrideValue

type OverrideValue struct {
	Key   string `json:"key" from:"key" valid:"required,stringlength(1|255)"`
	Value string `json:"value" from:"value" valid:"required,stringlength(1|255)"`
}

OverrideValue is form struct for value options.

type Projects

type Projects struct{}

Projects is projects controller.

func (*Projects) Create

func (p *Projects) Create(c echo.Context) error

Create is create method for a project.

func (*Projects) Delete

func (p *Projects) Delete(c echo.Context) error

Delete is delete method for a project.

func (*Projects) Index

func (p *Projects) Index(c echo.Context) error

Index returns all projects.

func (*Projects) Show

func (p *Projects) Show(c echo.Context) error

Show gets a project.

func (*Projects) Update

func (p *Projects) Update(c echo.Context) error

Update is update method for a project.

type StatusResponse

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

Jump to

Keyboard shortcuts

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