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 KosmoSecretAuthorizer ¶
KosmoSecretAuthorizer authorize with cosmo user's password secret
func NewKosmoSecretAuthorizer ¶
func NewKosmoSecretAuthorizer(c kosmo.Client) *KosmoSecretAuthorizer
func (*KosmoSecretAuthorizer) Authorize ¶
func (a *KosmoSecretAuthorizer) Authorize(ctx context.Context, req dashv1alpha1.LoginRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.