Documentation ¶
Index ¶
- Variables
- func NewVersionChecker() grpc.UnaryServerInterceptor
- func UnsupportedHandler(handler func() error) grpc.UnaryClientInterceptor
- type AppConverter
- type Handler
- func (h *Handler) CheckAuth(ctx context.Context, r *stoolapi.CheckAuthRequest) (*stoolapi.CheckAuthResponse, error)
- func (h *Handler) CompleteLogin(ctx context.Context, r *stoolapi.CompleteLoginRequest) (*stoolapi.CompleteLoginResponse, error)
- func (h *Handler) CompletePushBuild(ctx context.Context, r *stoolapi.CompletePushBuildRequest) (*stoolapi.CompletePushBuildResponse, error)
- func (h *Handler) CreateApplication(ctx context.Context, r *stoolapi.CreateApplicationRequest) (*stoolapi.CreateApplicationResponse, error)
- func (h *Handler) CreateBranch(ctx context.Context, r *stoolapi.CreateBranchRequest) (*stoolapi.CreateBranchResponse, error)
- func (h *Handler) DeleteBranch(ctx context.Context, r *stoolapi.DeleteBranchRequest) (*stoolapi.DeleteBranchResponse, error)
- func (h *Handler) DownloadBuild(ctx context.Context, r *stoolapi.DownloadBuildRequest) (*stoolapi.DownloadBuildResponse, error)
- func (h *Handler) DownloadPublicBuild(ctx context.Context, r *stoolapi.DownloadPublicBuildRequest) (*stoolapi.DownloadPublicBuildResponse, error)
- func (h *Handler) GetApplication(ctx context.Context, r *stoolapi.GetApplicationRequest) (*stoolapi.GetApplicationResponse, error)
- func (h *Handler) GetApplications(ctx context.Context, r *stoolapi.GetApplicationsRequest) (*stoolapi.GetApplicationsResponse, error)
- func (h *Handler) GetPublicApplication(ctx context.Context, r *stoolapi.GetPublicApplicationRequest) (*stoolapi.GetPublicApplicationResponse, error)
- func (h *Handler) Login(ctx context.Context, r *stoolapi.LoginRequest) (*stoolapi.LoginResponse, error)
- func (h *Handler) Logout(ctx context.Context, r *stoolapi.LogoutRequest) (*stoolapi.LogoutResponse, error)
- func (h *Handler) PromoteBranch(ctx context.Context, r *stoolapi.PromoteBranchRequest) (*stoolapi.PromoteBranchResponse, error)
- func (h *Handler) PublishBuild(ctx context.Context, r *stoolapi.PublishBuildRequest) (*stoolapi.PublishBuildResponse, error)
- func (h *Handler) PushBuild(ctx context.Context, r *stoolapi.PushBuildRequest) (*stoolapi.PushBuildResponse, error)
- func (h *Handler) UserID(ctx context.Context) (domain.UserID, error)
- type VersionChecker
Constants ¶
This section is empty.
Variables ¶
View Source
var MinAllowedClient = "0.0.3"
Functions ¶
func NewVersionChecker ¶
func NewVersionChecker() grpc.UnaryServerInterceptor
func UnsupportedHandler ¶
func UnsupportedHandler(handler func() error) grpc.UnaryClientInterceptor
Types ¶
type AppConverter ¶
type AppConverter struct{}
type Handler ¶
type Handler struct { AppConverter // contains filtered or unexported fields }
func New ¶
func New(apps domain.AppRepository, builds domain.BuildRepository, auth *auth.Service, bucket *blob.Bucket) *Handler
func (*Handler) CheckAuth ¶
func (h *Handler) CheckAuth(ctx context.Context, r *stoolapi.CheckAuthRequest) (*stoolapi.CheckAuthResponse, error)
func (*Handler) CompleteLogin ¶
func (h *Handler) CompleteLogin(ctx context.Context, r *stoolapi.CompleteLoginRequest) (*stoolapi.CompleteLoginResponse, error)
func (*Handler) CompletePushBuild ¶
func (h *Handler) CompletePushBuild(ctx context.Context, r *stoolapi.CompletePushBuildRequest) (*stoolapi.CompletePushBuildResponse, error)
func (*Handler) CreateApplication ¶
func (h *Handler) CreateApplication(ctx context.Context, r *stoolapi.CreateApplicationRequest) (*stoolapi.CreateApplicationResponse, error)
func (*Handler) CreateBranch ¶
func (h *Handler) CreateBranch(ctx context.Context, r *stoolapi.CreateBranchRequest) (*stoolapi.CreateBranchResponse, error)
func (*Handler) DeleteBranch ¶
func (h *Handler) DeleteBranch(ctx context.Context, r *stoolapi.DeleteBranchRequest) (*stoolapi.DeleteBranchResponse, error)
func (*Handler) DownloadBuild ¶
func (h *Handler) DownloadBuild(ctx context.Context, r *stoolapi.DownloadBuildRequest) (*stoolapi.DownloadBuildResponse, error)
func (*Handler) DownloadPublicBuild ¶
func (h *Handler) DownloadPublicBuild(ctx context.Context, r *stoolapi.DownloadPublicBuildRequest) (*stoolapi.DownloadPublicBuildResponse, error)
func (*Handler) GetApplication ¶
func (h *Handler) GetApplication(ctx context.Context, r *stoolapi.GetApplicationRequest) (*stoolapi.GetApplicationResponse, error)
func (*Handler) GetApplications ¶
func (h *Handler) GetApplications(ctx context.Context, r *stoolapi.GetApplicationsRequest) (*stoolapi.GetApplicationsResponse, error)
func (*Handler) GetPublicApplication ¶
func (h *Handler) GetPublicApplication(ctx context.Context, r *stoolapi.GetPublicApplicationRequest) (*stoolapi.GetPublicApplicationResponse, error)
func (*Handler) Login ¶
func (h *Handler) Login(ctx context.Context, r *stoolapi.LoginRequest) (*stoolapi.LoginResponse, error)
func (*Handler) Logout ¶
func (h *Handler) Logout(ctx context.Context, r *stoolapi.LogoutRequest) (*stoolapi.LogoutResponse, error)
func (*Handler) PromoteBranch ¶
func (h *Handler) PromoteBranch(ctx context.Context, r *stoolapi.PromoteBranchRequest) (*stoolapi.PromoteBranchResponse, error)
func (*Handler) PublishBuild ¶
func (h *Handler) PublishBuild(ctx context.Context, r *stoolapi.PublishBuildRequest) (*stoolapi.PublishBuildResponse, error)
func (*Handler) PushBuild ¶
func (h *Handler) PushBuild(ctx context.Context, r *stoolapi.PushBuildRequest) (*stoolapi.PushBuildResponse, error)
type VersionChecker ¶
type VersionChecker struct {
// contains filtered or unexported fields
}
func (*VersionChecker) Intercept ¶
func (c *VersionChecker) Intercept(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
Click to show internal directories.
Click to hide internal directories.