server

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(logger *zap.Logger, db database.DB) *Server

func (*Server) CreateOrganization

func (s *Server) CreateOrganization(ctx echo.Context) error

(POST /organizations)

func (*Server) CreateProject added in v0.11.0

func (s *Server) CreateProject(ctx echo.Context, organization string) error

(POST /v1/organizations/{organization}/projects)

func (*Server) DeleteOrganization

func (s *Server) DeleteOrganization(ctx echo.Context, name string) error

(DELETE /organizations/{name})

func (*Server) DeleteProject added in v0.11.0

func (s *Server) DeleteProject(ctx echo.Context, organization string, name string) error

(DELETE /v1/organizations/{organization}/project/{name})

func (*Server) FindOrganization

func (s *Server) FindOrganization(ctx echo.Context, name string) error

(GET /organizations/{name})

func (*Server) FindOrganizations added in v0.11.0

func (s *Server) FindOrganizations(ctx echo.Context) error

(GET /v1/organizations)

func (*Server) FindProject added in v0.11.0

func (s *Server) FindProject(ctx echo.Context, organization string, name string) error

(GET /v1/organizations/{organization}/project/{name})

func (*Server) FindProjects added in v0.11.0

func (s *Server) FindProjects(ctx echo.Context, organization string) error

(GET /v1/organizations/{organization}/projects)

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, port int) error

func (*Server) UpdateOrganization

func (s *Server) UpdateOrganization(ctx echo.Context, name string) error

(PUT /organizations/{name})

func (*Server) UpdateProject added in v0.11.0

func (s *Server) UpdateProject(ctx echo.Context, organization string, name string) error

(PUT /v1/organizations/{organization}/project/{name})

Jump to

Keyboard shortcuts

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