Skip to content

Commit

Permalink
Switch to new repository golib/pkg/auth/userinfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgooch committed Dec 5, 2019
1 parent f68954f commit 0091e83
Show file tree
Hide file tree
Showing 19 changed files with 8 additions and 599 deletions.
2 changes: 1 addition & 1 deletion broker/aws/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/Cloud-Foundations/Dominator/lib/log"
"github.com/Cloud-Foundations/cloud-gate/broker"
"github.com/Cloud-Foundations/cloud-gate/broker/configuration"
"github.com/Cloud-Foundations/cloud-gate/lib/userinfo"
"github.com/Cloud-Foundations/golib/pkg/auth/userinfo"
)

type userAllowedCredentialsCacheEntry struct {
Expand Down
2 changes: 1 addition & 1 deletion broker/httpd/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/Cloud-Foundations/cloud-gate/broker/configuration"
"github.com/Cloud-Foundations/cloud-gate/broker/staticconfiguration"
"github.com/Cloud-Foundations/cloud-gate/lib/constants"
"github.com/Cloud-Foundations/cloud-gate/lib/userinfo"
"github.com/Cloud-Foundations/golib/pkg/auth/userinfo"
"github.com/Cloud-Foundations/keymaster/lib/instrumentedwriter"
)

Expand Down
1 change: 1 addition & 0 deletions broker/staticconfiguration/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type BaseConfig struct {
}

type GitDatabaseConfig struct {
Branch string `yaml:"branch"`
CheckInterval time.Duration `yaml:"check_interval"`
LocalRepositoryDirectory string `yaml:"local_repository_directory"`
RepositoryURL string `yaml:"repository_url"`
Expand Down
2 changes: 1 addition & 1 deletion cloud-gate.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: cloud-gate
Version: 0.7.7
Version: 0.7.8
Release: 1%{?dist}
Summary: Access broker for clouds

Expand Down
7 changes: 4 additions & 3 deletions cmd/cloud-gate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"github.com/Cloud-Foundations/cloud-gate/broker/configuration"
"github.com/Cloud-Foundations/cloud-gate/broker/httpd"
"github.com/Cloud-Foundations/cloud-gate/broker/staticconfiguration"
"github.com/Cloud-Foundations/cloud-gate/lib/userinfo"
"github.com/Cloud-Foundations/cloud-gate/lib/userinfo/gitdb"
"github.com/Cloud-Foundations/cloud-gate/lib/userinfo/ldap"
"github.com/Cloud-Foundations/golib/pkg/auth/userinfo"
"github.com/Cloud-Foundations/golib/pkg/auth/userinfo/gitdb"
"github.com/Cloud-Foundations/golib/pkg/auth/userinfo/ldap"
"github.com/Cloud-Foundations/tricorder/go/tricorder"
)

Expand All @@ -50,6 +50,7 @@ func getUserInfo(config *staticconfiguration.StaticConfiguration,
}
if config.GitDB.LocalRepositoryDirectory != "" {
userInfo, err := gitdb.New(config.GitDB.RepositoryURL,
config.GitDB.Branch,
config.GitDB.LocalRepositoryDirectory,
config.GitDB.CheckInterval, logger)
if err != nil {
Expand Down
10 changes: 0 additions & 10 deletions lib/userinfo/api.go

This file was deleted.

29 changes: 0 additions & 29 deletions lib/userinfo/gitdb/api.go

This file was deleted.

228 changes: 0 additions & 228 deletions lib/userinfo/gitdb/impl.go

This file was deleted.

69 changes: 0 additions & 69 deletions lib/userinfo/gitdb/impl_test.go

This file was deleted.

Loading

0 comments on commit 0091e83

Please sign in to comment.