mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 16:26:01 +00:00
add windows stub to fix build issue
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
//go:build !windows
|
||||||
|
// +build !windows
|
||||||
|
|
||||||
package gateway
|
package gateway
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
//go:build windows
|
||||||
|
// +build windows
|
||||||
|
|
||||||
|
package gateway
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
errMissingTlsCert = errors.New("Missing TLS files")
|
||||||
|
errWindowsNotSupported = errors.New("Relay is not supported on Windows")
|
||||||
|
)
|
||||||
|
|
||||||
|
type GatewayRelay struct {
|
||||||
|
Config *GatewayRelayConfig
|
||||||
|
}
|
||||||
|
|
||||||
|
type GatewayRelayConfig struct {
|
||||||
|
PublicIP string
|
||||||
|
Port int
|
||||||
|
Realm string
|
||||||
|
AuthSecret string
|
||||||
|
RelayMinPort uint16
|
||||||
|
RelayMaxPort uint16
|
||||||
|
TlsCertPath string
|
||||||
|
TlsPrivateKeyPath string
|
||||||
|
TlsCaPath string
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGatewayRelay(configFilePath string) (*GatewayRelay, error) {
|
||||||
|
return nil, errWindowsNotSupported
|
||||||
|
}
|
||||||
|
|
||||||
|
func (g *GatewayRelay) Run() error {
|
||||||
|
return errWindowsNotSupported
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user