Documentation ¶
Index ¶
- type AppServer
- func (s *AppServer) Create(ctx context.Context, req *api.AppCreateRequest) (res *api.AppCreateResponse, err error)
- func (s *AppServer) Deploy(ctx context.Context, req *api.AppDeployRequest) (res *api.AppDeployResponse, err error)
- func (s *AppServer) Status(ctx context.Context, req *api.AppStatusRequest) (res *api.AppStatusResponse, err error)
- type Plugin
- type ServerContext
- type TokenServer
- type UserOrgServer
- func (s *UserOrgServer) GetRoleBinding(ctx context.Context, in *modoki.GetRoleBindingRequest) (*modoki.GetRoleBindingResponse, error)
- func (s *UserOrgServer) OrganizationAdd(_ context.Context, _ *modoki.OrganizationAddRequest) (*modoki.OrganizationAddResponse, error)
- func (s *UserOrgServer) OrganizationDelete(_ context.Context, _ *modoki.OrganizationDeleteRequest) (*modoki.OrganizationDeleteResponse, error)
- func (s *UserOrgServer) OrganizationInviteUser(_ context.Context, _ *modoki.OrganizationInviteUserRequest) (*modoki.OrganizationInviteUserResponse, error)
- func (s *UserOrgServer) OrganizationListUser(_ context.Context, _ *modoki.OrganizationListUserRequest) (*modoki.OrganizationListUserResponse, error)
- func (s *UserOrgServer) UserAdd(ctx context.Context, req *modoki.UserAddRequest) (res *modoki.UserAddResponse, err error)
- func (s *UserOrgServer) UserDelete(_ context.Context, _ *modoki.UserDeleteRequest) (*modoki.UserDeleteResponse, error)
- func (s *UserOrgServer) UserFindByID(ctx context.Context, req *modoki.UserFindByIDRequest) (*modoki.UserFindByIDResponse, error)
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 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 (s *UserOrgServer) GetRoleBinding(ctx context.Context, in *modoki.GetRoleBindingRequest) (*modoki.GetRoleBindingResponse, error)
func (*UserOrgServer) OrganizationAdd ¶
func (s *UserOrgServer) OrganizationAdd(_ context.Context, _ *modoki.OrganizationAddRequest) (*modoki.OrganizationAddResponse, error)
func (*UserOrgServer) OrganizationDelete ¶
func (s *UserOrgServer) OrganizationDelete(_ context.Context, _ *modoki.OrganizationDeleteRequest) (*modoki.OrganizationDeleteResponse, error)
func (*UserOrgServer) OrganizationInviteUser ¶
func (s *UserOrgServer) OrganizationInviteUser(_ context.Context, _ *modoki.OrganizationInviteUserRequest) (*modoki.OrganizationInviteUserResponse, error)
func (*UserOrgServer) OrganizationListUser ¶
func (s *UserOrgServer) OrganizationListUser(_ context.Context, _ *modoki.OrganizationListUserRequest) (*modoki.OrganizationListUserResponse, error)
func (*UserOrgServer) UserAdd ¶
func (s *UserOrgServer) UserAdd(ctx context.Context, req *modoki.UserAddRequest) (res *modoki.UserAddResponse, err error)
func (*UserOrgServer) UserDelete ¶
func (s *UserOrgServer) UserDelete(_ context.Context, _ *modoki.UserDeleteRequest) (*modoki.UserDeleteResponse, error)
func (*UserOrgServer) UserFindByID ¶
func (s *UserOrgServer) UserFindByID(ctx context.Context, req *modoki.UserFindByIDRequest) (*modoki.UserFindByIDResponse, error)
Click to show internal directories.
Click to hide internal directories.