Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatorMiddleware ¶
func AuthenticatorMiddleware(auth Authenticator, logger lager.Logger) gin.HandlerFunc
Types ¶
type Authenticator ¶
type BasicAuthenticator ¶
type BasicAuthenticator struct {
// contains filtered or unexported fields
}
func NewBasicAuthenticator ¶
func NewBasicAuthenticator(cfURL string, httpClient *http.Client) *BasicAuthenticator
func (*BasicAuthenticator) Authenticate ¶
func (a *BasicAuthenticator) Authenticate(username, password string) (User, error)
type BasicUser ¶
type BasicUser struct {
// contains filtered or unexported fields
}
func NewBasicUser ¶
func NewBasicUser(cfClient cfclient.CloudFoundryClient, username string) *BasicUser
func (BasicUser) ListServiceInstancesMatchingPlanGUIDs ¶
func (u BasicUser) ListServiceInstancesMatchingPlanGUIDs(servicePlanGuids []string) ([]cfclient.ServiceInstance, error)
type MockAuthenticator ¶
func (*MockAuthenticator) Authenticate ¶
func (a *MockAuthenticator) Authenticate(username, password string) (User, error)
type MockUser ¶
type MockUser struct { MockUsername string MockServiceInstances []cfclient.ServiceInstance MockServiceInstancesErr error }
func (*MockUser) ListServiceInstancesMatchingPlanGUIDs ¶
func (u *MockUser) ListServiceInstancesMatchingPlanGUIDs(planGuids []string) ([]cfclient.ServiceInstance, error)
Click to show internal directories.
Click to hide internal directories.