Documentation ¶
Index ¶
- Variables
- func CheckAppPermission(ctx context.Context, resourceId string) (*models.App, error)
- func CheckAppVersionPermission(ctx context.Context, resourceId string) (*models.AppVersion, error)
- func CheckAppVersionsPermission(ctx context.Context, resourceIds []string) ([]*models.AppVersion, error)
- func CheckAppsPermission(ctx context.Context, resourceIds []string) ([]*models.App, error)
- func Serve(cfg *config.Config)
- type Action
- type Server
- func (p *Server) AdminPassAppVersion(ctx context.Context, req *pb.PassAppVersionRequest) (*pb.PassAppVersionResponse, error)
- func (p *Server) AdminRejectAppVersion(ctx context.Context, req *pb.RejectAppVersionRequest) (*pb.RejectAppVersionResponse, error)
- func (p *Server) BusinessPassAppVersion(ctx context.Context, req *pb.PassAppVersionRequest) (*pb.PassAppVersionResponse, error)
- func (p *Server) BusinessRejectAppVersion(ctx context.Context, req *pb.RejectAppVersionRequest) (*pb.RejectAppVersionResponse, error)
- func (p *Server) BusinessReviewAppVersion(ctx context.Context, req *pb.ReviewAppVersionRequest) (*pb.ReviewAppVersionResponse, error)
- func (p *Server) CancelAppVersion(ctx context.Context, req *pb.CancelAppVersionRequest) (*pb.CancelAppVersionResponse, error)
- func (p *Server) Checker(ctx context.Context, req interface{}) error
- func (p *Server) CreateApp(ctx context.Context, req *pb.CreateAppRequest) (*pb.CreateAppResponse, error)
- func (p *Server) CreateAppVersion(ctx context.Context, req *pb.CreateAppVersionRequest) (*pb.CreateAppVersionResponse, error)
- func (p *Server) DeleteAppVersion(ctx context.Context, req *pb.DeleteAppVersionRequest) (*pb.DeleteAppVersionResponse, error)
- func (p *Server) DeleteApps(ctx context.Context, req *pb.DeleteAppsRequest) (*pb.DeleteAppsResponse, error)
- func (p *Server) DescribeActiveAppVersions(ctx context.Context, req *pb.DescribeAppVersionsRequest) (*pb.DescribeAppVersionsResponse, error)
- func (p *Server) DescribeActiveApps(ctx context.Context, req *pb.DescribeAppsRequest) (*pb.DescribeAppsResponse, error)
- func (p *Server) DescribeAppVersionAudits(ctx context.Context, req *pb.DescribeAppVersionAuditsRequest) (*pb.DescribeAppVersionAuditsResponse, error)
- func (p *Server) DescribeAppVersionReviews(ctx context.Context, req *pb.DescribeAppVersionReviewsRequest) (*pb.DescribeAppVersionReviewsResponse, error)
- func (p *Server) DescribeAppVersions(ctx context.Context, req *pb.DescribeAppVersionsRequest) (*pb.DescribeAppVersionsResponse, error)
- func (p *Server) DescribeApps(ctx context.Context, req *pb.DescribeAppsRequest) (*pb.DescribeAppsResponse, error)
- func (p *Server) GetAppStatistics(ctx context.Context, req *pb.GetAppStatisticsRequest) (*pb.GetAppStatisticsResponse, error)
- func (p *Server) GetAppVersionPackage(ctx context.Context, req *pb.GetAppVersionPackageRequest) (*pb.GetAppVersionPackageResponse, error)
- func (p *Server) GetAppVersionPackageFiles(ctx context.Context, req *pb.GetAppVersionPackageFilesRequest) (*pb.GetAppVersionPackageFilesResponse, error)
- func (p *Server) IsvPassAppVersion(ctx context.Context, req *pb.PassAppVersionRequest) (*pb.PassAppVersionResponse, error)
- func (p *Server) IsvRejectAppVersion(ctx context.Context, req *pb.RejectAppVersionRequest) (*pb.RejectAppVersionResponse, error)
- func (p *Server) IsvReviewAppVersion(ctx context.Context, req *pb.ReviewAppVersionRequest) (*pb.ReviewAppVersionResponse, error)
- func (p *Server) ModifyApp(ctx context.Context, req *pb.ModifyAppRequest) (*pb.ModifyAppResponse, error)
- func (p *Server) ModifyAppVersion(ctx context.Context, req *pb.ModifyAppVersionRequest) (*pb.ModifyAppVersionResponse, error)
- func (p *Server) RecoverAppVersion(ctx context.Context, req *pb.RecoverAppVersionRequest) (*pb.RecoverAppVersionResponse, error)
- func (p *Server) ReleaseAppVersion(ctx context.Context, req *pb.ReleaseAppVersionRequest) (*pb.ReleaseAppVersionResponse, error)
- func (p *Server) SubmitAppVersion(ctx context.Context, req *pb.SubmitAppVersionRequest) (*pb.SubmitAppVersionResponse, error)
- func (p *Server) SuspendAppVersion(ctx context.Context, req *pb.SuspendAppVersionRequest) (*pb.SuspendAppVersionResponse, error)
- func (p *Server) SyncRepo(ctx context.Context, req *pb.SyncRepoRequest) (*pb.SyncRepoResponse, error)
- func (p *Server) TechnicalPassAppVersion(ctx context.Context, req *pb.PassAppVersionRequest) (*pb.PassAppVersionResponse, error)
- func (p *Server) TechnicalRejectAppVersion(ctx context.Context, req *pb.RejectAppVersionRequest) (*pb.RejectAppVersionResponse, error)
- func (p *Server) TechnicalReviewAppVersion(ctx context.Context, req *pb.ReviewAppVersionRequest) (*pb.ReviewAppVersionResponse, error)
- func (p *Server) UploadAppAttachment(ctx context.Context, req *pb.UploadAppAttachmentRequest) (*pb.UploadAppAttachmentResponse, error)
- func (p *Server) ValidatePackage(ctx context.Context, req *pb.ValidatePackageRequest) (*pb.ValidatePackageResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedReviewAccesses = []string{ constants.OperatorTypeIsv, constants.OperatorTypeTechnical, constants.OperatorTypeBusiness, }
View Source
var VersionFiniteStatusMachine = map[Action][]string{ Modify: {constants.StatusDraft, constants.StatusRejected, constants.StatusActive}, Submit: {constants.StatusDraft, constants.StatusRejected}, Review: {constants.StatusSubmitted, constants.StatusInReview}, Cancel: {constants.StatusSubmitted, constants.StatusInReview, constants.StatusPassed}, Release: {constants.StatusPassed}, Delete: { constants.StatusSuspended, constants.StatusDraft, constants.StatusPassed, constants.StatusRejected, }, Pass: {constants.StatusInReview}, Reject: {constants.StatusInReview}, Suspend: {constants.StatusActive}, Recover: {constants.StatusSuspended}, }
Action => []version.status
Functions ¶
func CheckAppPermission ¶ added in v0.2.3
func CheckAppVersionPermission ¶ added in v0.2.3
func CheckAppVersionsPermission ¶ added in v0.2.3
func CheckAppsPermission ¶ added in v0.2.3
Types ¶
type Server ¶
type Server struct { }
func (*Server) AdminPassAppVersion ¶ added in v0.4.2
func (p *Server) AdminPassAppVersion(ctx context.Context, req *pb.PassAppVersionRequest) (*pb.PassAppVersionResponse, error)
func (*Server) AdminRejectAppVersion ¶ added in v0.4.2
func (p *Server) AdminRejectAppVersion(ctx context.Context, req *pb.RejectAppVersionRequest) (*pb.RejectAppVersionResponse, error)
func (*Server) BusinessPassAppVersion ¶ added in v0.4.0
func (p *Server) BusinessPassAppVersion(ctx context.Context, req *pb.PassAppVersionRequest) (*pb.PassAppVersionResponse, error)
func (*Server) BusinessRejectAppVersion ¶ added in v0.4.0
func (p *Server) BusinessRejectAppVersion(ctx context.Context, req *pb.RejectAppVersionRequest) (*pb.RejectAppVersionResponse, error)
func (*Server) BusinessReviewAppVersion ¶ added in v0.4.0
func (p *Server) BusinessReviewAppVersion(ctx context.Context, req *pb.ReviewAppVersionRequest) (*pb.ReviewAppVersionResponse, error)
func (*Server) CancelAppVersion ¶ added in v0.2.1
func (p *Server) CancelAppVersion(ctx context.Context, req *pb.CancelAppVersionRequest) (*pb.CancelAppVersionResponse, error)
func (*Server) CreateApp ¶
func (p *Server) CreateApp(ctx context.Context, req *pb.CreateAppRequest) (*pb.CreateAppResponse, error)
func (*Server) CreateAppVersion ¶
func (p *Server) CreateAppVersion(ctx context.Context, req *pb.CreateAppVersionRequest) (*pb.CreateAppVersionResponse, error)
func (*Server) DeleteAppVersion ¶ added in v0.2.1
func (p *Server) DeleteAppVersion(ctx context.Context, req *pb.DeleteAppVersionRequest) (*pb.DeleteAppVersionResponse, error)
func (*Server) DeleteApps ¶
func (p *Server) DeleteApps(ctx context.Context, req *pb.DeleteAppsRequest) (*pb.DeleteAppsResponse, error)
func (*Server) DescribeActiveAppVersions ¶ added in v0.4.0
func (p *Server) DescribeActiveAppVersions(ctx context.Context, req *pb.DescribeAppVersionsRequest) (*pb.DescribeAppVersionsResponse, error)
func (*Server) DescribeActiveApps ¶ added in v0.4.0
func (p *Server) DescribeActiveApps(ctx context.Context, req *pb.DescribeAppsRequest) (*pb.DescribeAppsResponse, error)
func (*Server) DescribeAppVersionAudits ¶ added in v0.4.0
func (p *Server) DescribeAppVersionAudits(ctx context.Context, req *pb.DescribeAppVersionAuditsRequest) (*pb.DescribeAppVersionAuditsResponse, error)
func (*Server) DescribeAppVersionReviews ¶ added in v0.4.0
func (p *Server) DescribeAppVersionReviews(ctx context.Context, req *pb.DescribeAppVersionReviewsRequest) (*pb.DescribeAppVersionReviewsResponse, error)
func (*Server) DescribeAppVersions ¶
func (p *Server) DescribeAppVersions(ctx context.Context, req *pb.DescribeAppVersionsRequest) (*pb.DescribeAppVersionsResponse, error)
func (*Server) DescribeApps ¶
func (p *Server) DescribeApps(ctx context.Context, req *pb.DescribeAppsRequest) (*pb.DescribeAppsResponse, error)
func (*Server) GetAppStatistics ¶ added in v0.1.5
func (p *Server) GetAppStatistics(ctx context.Context, req *pb.GetAppStatisticsRequest) (*pb.GetAppStatisticsResponse, error)
func (*Server) GetAppVersionPackage ¶
func (p *Server) GetAppVersionPackage(ctx context.Context, req *pb.GetAppVersionPackageRequest) (*pb.GetAppVersionPackageResponse, error)
func (*Server) GetAppVersionPackageFiles ¶
func (p *Server) GetAppVersionPackageFiles(ctx context.Context, req *pb.GetAppVersionPackageFilesRequest) (*pb.GetAppVersionPackageFilesResponse, error)
func (*Server) IsvPassAppVersion ¶ added in v0.4.0
func (p *Server) IsvPassAppVersion(ctx context.Context, req *pb.PassAppVersionRequest) (*pb.PassAppVersionResponse, error)
func (*Server) IsvRejectAppVersion ¶ added in v0.4.0
func (p *Server) IsvRejectAppVersion(ctx context.Context, req *pb.RejectAppVersionRequest) (*pb.RejectAppVersionResponse, error)
func (*Server) IsvReviewAppVersion ¶ added in v0.4.0
func (p *Server) IsvReviewAppVersion(ctx context.Context, req *pb.ReviewAppVersionRequest) (*pb.ReviewAppVersionResponse, error)
func (*Server) ModifyApp ¶
func (p *Server) ModifyApp(ctx context.Context, req *pb.ModifyAppRequest) (*pb.ModifyAppResponse, error)
func (*Server) ModifyAppVersion ¶
func (p *Server) ModifyAppVersion(ctx context.Context, req *pb.ModifyAppVersionRequest) (*pb.ModifyAppVersionResponse, error)
func (*Server) RecoverAppVersion ¶ added in v0.2.1
func (p *Server) RecoverAppVersion(ctx context.Context, req *pb.RecoverAppVersionRequest) (*pb.RecoverAppVersionResponse, error)
func (*Server) ReleaseAppVersion ¶ added in v0.2.1
func (p *Server) ReleaseAppVersion(ctx context.Context, req *pb.ReleaseAppVersionRequest) (*pb.ReleaseAppVersionResponse, error)
func (*Server) SubmitAppVersion ¶ added in v0.2.1
func (p *Server) SubmitAppVersion(ctx context.Context, req *pb.SubmitAppVersionRequest) (*pb.SubmitAppVersionResponse, error)
func (*Server) SuspendAppVersion ¶ added in v0.2.1
func (p *Server) SuspendAppVersion(ctx context.Context, req *pb.SuspendAppVersionRequest) (*pb.SuspendAppVersionResponse, error)
func (*Server) SyncRepo ¶ added in v0.2.3
func (p *Server) SyncRepo(ctx context.Context, req *pb.SyncRepoRequest) (*pb.SyncRepoResponse, error)
func (*Server) TechnicalPassAppVersion ¶ added in v0.4.0
func (p *Server) TechnicalPassAppVersion(ctx context.Context, req *pb.PassAppVersionRequest) (*pb.PassAppVersionResponse, error)
func (*Server) TechnicalRejectAppVersion ¶ added in v0.4.0
func (p *Server) TechnicalRejectAppVersion(ctx context.Context, req *pb.RejectAppVersionRequest) (*pb.RejectAppVersionResponse, error)
func (*Server) TechnicalReviewAppVersion ¶ added in v0.4.0
func (p *Server) TechnicalReviewAppVersion(ctx context.Context, req *pb.ReviewAppVersionRequest) (*pb.ReviewAppVersionResponse, error)
func (*Server) UploadAppAttachment ¶ added in v0.4.0
func (p *Server) UploadAppAttachment(ctx context.Context, req *pb.UploadAppAttachmentRequest) (*pb.UploadAppAttachmentResponse, error)
func (*Server) ValidatePackage ¶ added in v0.4.0
func (p *Server) ValidatePackage(ctx context.Context, req *pb.ValidatePackageRequest) (*pb.ValidatePackageResponse, error)
Click to show internal directories.
Click to hide internal directories.