Skip to content
Snippets Groups Projects
Commit 81d51251 authored by Andre Sterba's avatar Andre Sterba Committed by Fabian Seidl
Browse files

Remove jq that will capture the exit code of golangci-lint

See merge request !268
parent 39df2ba9
No related branches found
No related tags found
2 merge requests!268Remove jq that will capture the exit code of golangci-lint,!264WIP: Develop
Pipeline #98434 passed
This commit is part of merge request !264. Comments created here will be created in the context of that merge request.
......@@ -26,7 +26,7 @@ ci-install-tools:
go install gotest.tools/gotestsum@v1.7.0
ci-lint: ci-install-tools
golangci-lint run --config .golangci.yml --out-format code-climate | jq -r '.[] | "\(.location.path):\(.location.lines.begin) \(.description)"'
golangci-lint run --config .golangci.yml --out-format code-climate
lint: install-tools
./$(TOOLS_DIR)/golangci-lint run --config .golangci.yml | jq
......
......@@ -404,6 +404,7 @@ func SendChangeRequest(addr, pid string, req *ppb.ChangeRequest) (*ppb.SetPathLi
return pndClient.SetPathList(ctx, r)
}
// Login logs a user in
func Login(addr, username, pwd string) (*apb.LoginResponse, error) {
authClient, err := nbi.AuthClient(addr, dialOptions...)
if err != nil {
......@@ -418,6 +419,7 @@ func Login(addr, username, pwd string) (*apb.LoginResponse, error) {
return authClient.Login(ctx, r)
}
// Logout logs a user out
func Logout(addr, username string) (*apb.LogoutResponse, error) {
authClient, err := nbi.AuthClient(addr, dialOptions...)
if err != nil {
......
......@@ -39,7 +39,6 @@ func Init() {
if err != nil {
log.Error("failed initialization of module import", err)
}
}
// InitializeConfig loads the configuration
......
......@@ -7,9 +7,11 @@ import (
"google.golang.org/grpc"
)
// AuthInterceptor provides an AuthInterceptor
type AuthInterceptor struct {
}
// Unary provides middleware functionality
func (auth AuthInterceptor) Unary() grpc.UnaryServerInterceptor {
return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
log.Info("Interceptor called")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment