v1beta1connect

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest           = errors.New("invalid syntax in body")
	ErrOperationUnsupported = errors.New("operation not supported")
	ErrInternalServerError  = errors.New("internal server error")
	ErrUnauthenticated      = errors.New("not authenticated")
	ErrUnauthorized         = errors.New("not authorized")
	ErrNotFound             = errors.New("not found")
	ErrInvalidEmail         = errors.New("Invalid email")
	ErrUserNotExist         = errors.New("user doesn't exist")
	ErrInvalidNamesapceOrID = errors.New("namespace and ID cannot be empty")
)

Functions

func ExtractLogger added in v0.69.0

func ExtractLogger(ctx context.Context) *zap.Logger

Types

type ConnectHandler

type ConnectHandler struct {
	frontierv1beta1connect.UnimplementedAdminServiceHandler
	frontierv1beta1connect.UnimplementedFrontierServiceHandler
	// contains filtered or unexported fields
}

func NewConnectHandler

func NewConnectHandler(deps api.Deps, authConf authenticate.Config) *ConnectHandler

func (*ConnectHandler) AuthCallback added in v0.69.0

func (*ConnectHandler) AuthLogout added in v0.69.0

func (*ConnectHandler) AuthToken added in v0.69.0

func (*ConnectHandler) Authenticate added in v0.69.0

func (*ConnectHandler) CheckPlanEntitlement added in v0.69.0

func (h *ConnectHandler) CheckPlanEntitlement(ctx context.Context, obj relation.Object) error

CheckPlanEntitlement is only currently used to restrict seat based plans

func (*ConnectHandler) GetLoggedInPrincipal added in v0.69.0

func (h *ConnectHandler) GetLoggedInPrincipal(ctx context.Context, via ...authenticate.ClientAssertion) (authenticate.Principal, error)

func (*ConnectHandler) GetRawCheckout added in v0.69.0

func (h *ConnectHandler) GetRawCheckout(ctx context.Context, id string) (checkout.Checkout, error)

func (*ConnectHandler) GetServiceUser added in v0.69.0

func (*ConnectHandler) IsAuthorized added in v0.69.0

func (h *ConnectHandler) IsAuthorized(ctx context.Context, object relation.Object, permission string) error

func (*ConnectHandler) IsSuperUser added in v0.69.0

func (h *ConnectHandler) IsSuperUser(ctx context.Context) error

func (*ConnectHandler) ListPlatformPreferences added in v0.69.0

func (h *ConnectHandler) ListPlatformPreferences(ctx context.Context) (map[string]string, error)

Jump to

Keyboard shortcuts

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