Documentation ¶
Index ¶
- func IsAuthenticated(next echo.HandlerFunc) echo.HandlerFunc
- type Authenticator
- type Config
- type Server
- func (s *Server) CreateOrganization(ctx echo.Context) error
- func (s *Server) CreateProject(ctx echo.Context, organization string) error
- func (s *Server) DeleteOrganization(ctx echo.Context, name string) error
- func (s *Server) DeleteProject(ctx echo.Context, organization, name string) error
- func (s *Server) FindOrganization(ctx echo.Context, name string) error
- func (s *Server) FindOrganizations(ctx echo.Context) error
- func (s *Server) FindProject(ctx echo.Context, organization, name string) error
- func (s *Server) FindProjects(ctx echo.Context, organization string) error
- func (s *Server) Serve(ctx context.Context, port int) error
- func (s *Server) UpdateOrganization(ctx echo.Context, name string) error
- func (s *Server) UpdateProject(ctx echo.Context, organization, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAuthenticated ¶
func IsAuthenticated(next echo.HandlerFunc) echo.HandlerFunc
IsAuthenticated is a middleware that checks if the user has already been authenticated previously.
Types ¶
type Authenticator ¶
Authenticator is used to authenticate our users. Refereance link - https://auth0.com/docs/quickstart/webapp/golang/01-login for sample auth setup.
func (*Authenticator) VerifyIDToken ¶
func (a *Authenticator) VerifyIDToken(ctx context.Context, token *oauth2.Token) (*oidc.IDToken, error)
VerifyIDToken verifies that an *oauth2.Token is a valid *oidc.IDToken.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateOrganization ¶
(POST /organizations)
func (*Server) CreateProject ¶
(POST /v1/organizations/{organization}/projects)
func (*Server) DeleteOrganization ¶
(DELETE /organizations/{name})
func (*Server) DeleteProject ¶
(DELETE /v1/organizations/{organization}/project/{name})
func (*Server) FindOrganization ¶
(GET /organizations/{name})
func (*Server) FindOrganizations ¶
(GET /v1/organizations)
func (*Server) FindProject ¶
(GET /v1/organizations/{organization}/project/{name})
func (*Server) FindProjects ¶
(GET /v1/organizations/{organization}/projects)
func (*Server) UpdateOrganization ¶
(PUT /organizations/{name})
func (*Server) UpdateProject ¶
(PUT /v1/organizations/{organization}/project/{name})