Documentation
¶
Index ¶
- Constants
- Variables
- func NewAPIConfigMiddleware() func(h http.Handler) http.Handler
- type APIExportInput
- type APIExportOutput
- type APIImportInput
- type APILogMessage
- type APILogMessages
- type APIRoleConfigInput
- type APIRoleConfigOutput
- type APIToolPingInput
- type APIToolPingOutput
- type APIToolPortmapInput
- type APIToolPortmapOutput
- type APIToolPortmapOutputPort
- type APIToolTracerouteInput
- type APIToolTracerouteOutput
- type APIToolTracerouteOutputHop
- type APITransportEntry
- type Role
- func (r *Role) APIClusterExport() usecase.Interactor
- func (r *Role) APIClusterImport() usecase.Interactor
- func (r *Role) APIClusterNodeLogMessages() usecase.Interactor
- func (r *Role) APIRoleConfigGet() usecase.Interactor
- func (r *Role) APIRoleConfigPut() usecase.Interactor
- func (r *Role) APIToolPing() usecase.Interactor
- func (r *Role) APIToolPortmap() usecase.Interactor
- func (r *Role) APIToolTraceroute() usecase.Interactor
- func (r *Role) ListenAndServeHTTP()
- func (r *Role) ListenAndServeSocket()
- func (r *Role) Mux() *mux.Router
- func (r *Role) Ping(addr string) (*probing.Statistics, error)
- func (r *Role) Portmap(addr string) (nmap.Host, error)
- func (r *Role) RegisterMigrations()
- func (r *Role) Schema(ctx context.Context) *openapi3.Spec
- func (r *Role) SessionMiddleware(h http.Handler) http.Handler
- func (r *Role) SessionStore() sessions.Store
- func (r *Role) Start(ctx context.Context, config []byte) error
- func (r *Role) Stop()
- func (r *Role) Traceroute(addr string) (traceroute.TracerouteResult, error)
- type RoleConfig
Constants ¶
View Source
const ( VAR_RUN = "/var/run" GRAVITY_SOCK = "gravity.sock" )
Variables ¶
View Source
var APITemplate string
View Source
var IndexTemplate string
Functions ¶
Types ¶
type APIExportInput ¶ added in v0.6.19
type APIExportInput struct {
Safe bool `json:"safe"`
}
type APIExportOutput ¶ added in v0.3.1
type APIExportOutput struct {
Entries []APITransportEntry `json:"entries"`
}
type APIImportInput ¶ added in v0.3.1
type APIImportInput struct {
Entries []APITransportEntry `json:"entries"`
}
type APILogMessage ¶ added in v0.6.8
type APILogMessage struct {
Message string `json:"message" required:"true"`
Time time.Time `json:"time" required:"true"`
Level string `json:"level" required:"true"`
Logger string `json:"logger" required:"true"`
Fields map[string]interface{} `json:"fields" required:"true"`
Node string `json:"node" required:"true"`
}
type APILogMessages ¶ added in v0.6.8
type APILogMessages struct {
Messages []APILogMessage `json:"messages"`
}
type APIRoleConfigInput ¶
type APIRoleConfigInput struct {
Config RoleConfig `json:"config" required:"true"`
}
type APIRoleConfigOutput ¶
type APIRoleConfigOutput struct {
Config RoleConfig `json:"config" required:"true"`
}
type APIToolPingInput ¶ added in v0.3.14
type APIToolPingInput struct {
Host string `json:"host"`
}
type APIToolPingOutput ¶ added in v0.3.14
type APIToolPingOutput struct {
PacketsRecv int `json:"packetsRecv"`
PacketsSent int `json:"packetsSent"`
PacketsRecvDuplicates int `json:"packetsRecvDuplicates"`
PacketLoss float64 `json:"packetLoss"`
MinRtt time.Duration `json:"minRtt"`
MaxRtt time.Duration `json:"maxRtt"`
AvgRtt time.Duration `json:"avgRtt"`
StdDevRtt time.Duration `json:"stdDevRtt"`
}
type APIToolPortmapInput ¶ added in v0.3.14
type APIToolPortmapInput struct {
Host string `json:"host"`
}
type APIToolPortmapOutput ¶ added in v0.3.14
type APIToolPortmapOutput struct {
Ports []APIToolPortmapOutputPort `json:"ports"`
}
type APIToolPortmapOutputPort ¶ added in v0.3.14
type APIToolTracerouteInput ¶ added in v0.3.14
type APIToolTracerouteInput struct {
Host string `json:"host"`
}
type APIToolTracerouteOutput ¶ added in v0.3.14
type APIToolTracerouteOutput struct {
Hops []APIToolTracerouteOutputHop `json:"hops"`
}
type APIToolTracerouteOutputHop ¶ added in v0.3.14
type APITransportEntry ¶ added in v0.3.1
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func (*Role) APIClusterExport ¶ added in v0.3.1
func (r *Role) APIClusterExport() usecase.Interactor
func (*Role) APIClusterImport ¶ added in v0.3.1
func (r *Role) APIClusterImport() usecase.Interactor
func (*Role) APIClusterNodeLogMessages ¶ added in v0.6.8
func (r *Role) APIClusterNodeLogMessages() usecase.Interactor
func (*Role) APIRoleConfigGet ¶
func (r *Role) APIRoleConfigGet() usecase.Interactor
func (*Role) APIRoleConfigPut ¶
func (r *Role) APIRoleConfigPut() usecase.Interactor
func (*Role) APIToolPing ¶ added in v0.3.14
func (r *Role) APIToolPing() usecase.Interactor
func (*Role) APIToolPortmap ¶ added in v0.3.14
func (r *Role) APIToolPortmap() usecase.Interactor
func (*Role) APIToolTraceroute ¶ added in v0.3.14
func (r *Role) APIToolTraceroute() usecase.Interactor
func (*Role) ListenAndServeHTTP ¶ added in v0.3.1
func (r *Role) ListenAndServeHTTP()
func (*Role) ListenAndServeSocket ¶ added in v0.3.1
func (r *Role) ListenAndServeSocket()
func (*Role) RegisterMigrations ¶ added in v0.16.0
func (r *Role) RegisterMigrations()
func (*Role) SessionStore ¶
func (*Role) Traceroute ¶ added in v0.3.14
func (r *Role) Traceroute(addr string) (traceroute.TracerouteResult, error)
type RoleConfig ¶
type RoleConfig struct {
OIDC *types.OIDCConfig `json:"oidc"`
// Override listen address temporarily, must by JSON accessible as config is passed as JSON
ListenOverride string `json:"listenOverride,omitempty"`
CookieSecret string `json:"cookieSecret"`
Port int32 `json:"port"`
SessionDuration string `json:"sessionDuration"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.