Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer interface {
Authorize(ctx context.Context, req dashv1alpha1.LoginRequest) (bool, error)
}
type HTTPAuthorizer ¶
HTTPAuthorizer authorize with cosmo-dashboard login API
func NewHTTPAuthorizer ¶
func NewHTTPAuthorizer(url string, ca []byte) *HTTPAuthorizer
func (*HTTPAuthorizer) Authorize ¶
func (a *HTTPAuthorizer) Authorize(ctx context.Context, req dashv1alpha1.LoginRequest) (bool, error)
type PasswordSecretAuthorizer ¶ added in v0.5.0
PasswordSecretAuthorizer authorize with cosmo user's password secret
func NewPasswordSecretAuthorizer ¶ added in v0.5.0
func NewPasswordSecretAuthorizer(c client.Client) *PasswordSecretAuthorizer
func (*PasswordSecretAuthorizer) Authorize ¶ added in v0.5.0
func (a *PasswordSecretAuthorizer) Authorize(ctx context.Context, req dashv1alpha1.LoginRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.