This commit is contained in:
crusader 2017-12-01 15:44:08 +09:00
parent 597eda88ed
commit 4e0f744ccc
6 changed files with 50 additions and 0 deletions

View File

@ -19,3 +19,4 @@ type NoAuthProbe struct {
Domain *domain.DomainMember `json:"domain,omitempty"` Domain *domain.DomainMember `json:"domain,omitempty"`
Probe *probe.Probe `json:"probe,omitempty"` Probe *probe.Probe `json:"probe,omitempty"`
} }

View File

@ -0,0 +1,6 @@
package model
type NoAuthProbeDescription struct {
Host *NoAuthProbeDescriptionHost `json:"host,omitempty"`
Network *NoAuthProbeDescriptionNetwork `json:"network,omitempty"`
}

View File

@ -0,0 +1,11 @@
package model
type NoAuthProbeDescriptionHost struct {
Name string `json:"name,omitempty"`
OS string `json:"os,omitempty"`
Platform string `json:"paltform,omitempty"`
PlatformFamily string `json:"platformFamily,omitempty"`
PlatformVersion string `json:"platformVersion,omitempty"`
KernelVersion string `json:"kernelVersion,omitempty"`
HostID string `json:"hostID,omitempty"`
}

View File

@ -0,0 +1,8 @@
package model
type NoAuthProbeDescriptionNetwork struct {
Name string `json:"name,omitempty"`
Address string `json:"address,omitempty"`
Gateway string `json:"gateway,omitempty"`
MacAddress string `json:"macAddress,omitempty"`
}

View File

@ -0,0 +1,13 @@
package noauthprobe
const (
HTTPRequestHeaderKey_NoAuthProbe_Method = "overFlow-NoAuthProbe-Method"
HTTPRequestHeaderKey_NoAuthProbe_TempProbeKey = "overFlow-NoAuthProbe-TempProbeKey"
HTTPResponseHeaderKey_NoAuthProbe_SetTempProbeKey = "overFlow-NoAuthProbe-SetTempProbeKey"
)
const (
HTTPRequestHeaderValue_NoAuthProbe_Method_Regist = "REGIST"
HTTPRequestHeaderValue_NoAuthProbe_Method_Connect = "CONNECT"
)

View File

@ -0,0 +1,11 @@
package service
import (
noauthprobeM "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe/model"
probeM "git.loafle.net/overflow/overflow_commons_go/modules/probe/model"
)
type NoAuthProbeService interface {
Accept(probe probeM.Probe)
Deny(noAuthProbe noauthprobeM.NoAuthProbe)
}