Documentation
¶
Index ¶
- type Dependencies
- type FakeAuthService
- func (m *FakeAuthService) Authorize(_ context.Context, _ *auth.AuthorizationRequest) (*auth.AuthorizationResponse, error)
- func (m *FakeAuthService) GetCredentials(_ context.Context, accessKey string) (*model.Credential, error)
- func (m *FakeAuthService) GetUser(_ context.Context, _ string) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct {
// contains filtered or unexported fields
}
func GetBasicHandler ¶
func GetBasicHandler(t *testing.T, authService *FakeAuthService, repoName string) (http.Handler, *Dependencies)
type FakeAuthService ¶
type FakeAuthService struct { BareDomain string `json:"bare_domain"` AccessKeyID string `json:"access_key_id"` SecretAccessKey string `json:"access_secret_key"` UserID string `json:"user_id"` Region string `json:"region"` }
func (*FakeAuthService) Authorize ¶
func (m *FakeAuthService) Authorize(_ context.Context, _ *auth.AuthorizationRequest) (*auth.AuthorizationResponse, error)
func (*FakeAuthService) GetCredentials ¶
func (m *FakeAuthService) GetCredentials(_ context.Context, accessKey string) (*model.Credential, error)
Click to show internal directories.
Click to hide internal directories.