handler

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppServer

type AppServer struct {
	Context *ServerContext
}

func (*AppServer) Create

func (s *AppServer) Create(ctx context.Context, req *api.AppCreateRequest) (res *api.AppCreateResponse, err error)

func (*AppServer) Deploy

func (s *AppServer) Deploy(ctx context.Context, req *api.AppDeployRequest) (res *api.AppDeployResponse, err error)

func (*AppServer) Status

func (s *AppServer) Status(ctx context.Context, req *api.AppStatusRequest) (res *api.AppStatusResponse, err error)

Status returns app status

type Plugin

type Plugin struct {
	Name    string
	Client  api.GeneratorClient
	Metrics bool
}

type ServerContext

type ServerContext struct {
	Config *config.Config

	DB *sqlx.DB

	AppClient     api.AppClient
	UserOrgClient api.UserOrgClient
	Generators    []*Plugin

	K8s *k8s.Client

	Connector *connector.Connector
}

ServerContext contains accessor used by handlers

func NewServerContext

func NewServerContext(cfg *config.Config) (*ServerContext, error)

type TokenServer

type TokenServer struct {
	Context *ServerContext
}

func (*TokenServer) IssueToken

func (s *TokenServer) IssueToken(ctx context.Context, req *modoki.IssueTokenRequest) (resp *modoki.IssueTokenResponse, err error)

func (*TokenServer) ValidateToken

func (s *TokenServer) ValidateToken(ctx context.Context, req *modoki.ValidateTokenRequest) (resp *modoki.ValidateTokenResponse, err error)

type UserOrgServer

type UserOrgServer struct {
	Context *ServerContext
}

func (*UserOrgServer) GetRoleBinding

func (*UserOrgServer) UserAdd

func (s *UserOrgServer) UserAdd(ctx context.Context, req *modoki.UserAddRequest) (res *modoki.UserAddResponse, err error)

func (*UserOrgServer) UserDelete

func (*UserOrgServer) UserFindByID

Jump to

Keyboard shortcuts

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