-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DLP info type configuration (#56)
* Add DLP info type configuration
- Loading branch information
1 parent
4368650
commit 94516a6
Showing
7 changed files
with
98 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,11 @@ package api | |
|
||
import ( | ||
"fmt" | ||
"github.com/runopsio/hoop/gateway/review" | ||
"os" | ||
"strings" | ||
|
||
"github.com/runopsio/hoop/gateway/review" | ||
|
||
"github.com/runopsio/hoop/gateway/security" | ||
"github.com/runopsio/hoop/gateway/security/idp" | ||
|
||
|
@@ -108,6 +109,7 @@ func (api *Api) CreateTrialEntities() error { | |
Name: "hooper", | ||
Email: "[email protected]", | ||
Status: "active", | ||
Groups: []string{"admin"}, | ||
} | ||
|
||
a := agent.Agent{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package dlp | ||
|
||
import ( | ||
"github.com/runopsio/hoop/gateway/plugin" | ||
|
||
pb "github.com/runopsio/hoop/common/proto" | ||
) | ||
|
||
const Name string = "dlp" | ||
|
||
type ( | ||
dlpPlugin struct { | ||
name string | ||
} | ||
) | ||
|
||
func New() *dlpPlugin { | ||
return &dlpPlugin{name: Name} | ||
} | ||
|
||
func (p *dlpPlugin) Name() string { | ||
return p.name | ||
} | ||
|
||
func (p *dlpPlugin) OnStartup(config plugin.Config) error { | ||
return nil | ||
} | ||
|
||
func (p *dlpPlugin) OnConnect(config plugin.Config) error { | ||
return nil | ||
} | ||
|
||
func (p *dlpPlugin) OnReceive(pluginConfig plugin.Config, config []string, pkt *pb.Packet) error { | ||
return nil | ||
} | ||
|
||
func (p *dlpPlugin) OnDisconnect(config plugin.Config) error { | ||
return nil | ||
} | ||
|
||
func (p *dlpPlugin) OnShutdown() {} |