service

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

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

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InformerService

type InformerService interface {
	GetMasterUserRecord(name string) (*toolchainv1alpha1.MasterUserRecord, error)
	GetSpace(name string) (*toolchainv1alpha1.Space, error)
	GetToolchainStatus() (*toolchainv1alpha1.ToolchainStatus, error)
	GetUserSignup(name string) (*toolchainv1alpha1.UserSignup, error)
	ListSpaceBindings(reqs ...labels.Requirement) ([]toolchainv1alpha1.SpaceBinding, error)
	GetProxyPluginConfig(name string) (*toolchainv1alpha1.ProxyPlugin, error)
	GetNSTemplateTier(name string) (*toolchainv1alpha1.NSTemplateTier, error)
}

type MemberClusterService

type MemberClusterService interface {
	GetClusterAccess(userID, username, workspace, proxyPluginName string) (*access.ClusterAccess, error)
}

type Services

type Services interface {
	InformerService() InformerService
	SignupService() SignupService
	VerificationService() VerificationService
	MemberClusterService() MemberClusterService
}

type SignupService

type SignupService interface {
	Signup(ctx *gin.Context) (*toolchainv1alpha1.UserSignup, error)
	GetSignup(ctx *gin.Context, userID, username string) (*signup.Signup, error)
	GetSignupFromInformer(ctx *gin.Context, userID, username string, checkUserSignupCompleted bool) (*signup.Signup, error)
	GetUserSignupFromIdentifier(userID, username string) (*toolchainv1alpha1.UserSignup, error)
	UpdateUserSignup(userSignup *toolchainv1alpha1.UserSignup) (*toolchainv1alpha1.UserSignup, error)
	PhoneNumberAlreadyInUse(userID, username, phoneNumberOrHash string) error
}

type SocialEventService

type SocialEventService interface {
	GetEvent(code string) (*toolchainv1alpha1.SocialEvent, error)
}

type VerificationService

type VerificationService interface {
	InitVerification(ctx *gin.Context, userID, username, e164PhoneNumber, countryCode string) error
	VerifyPhoneCode(ctx *gin.Context, userID, username, code string) error
	VerifyActivationCode(ctx *gin.Context, userID, username, code string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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