installer_other.go 363 B

123456789101112131415161718
  1. //go:build !linux
  2. package ike
  3. import (
  4. "context"
  5. "errors"
  6. )
  7. type unsupportedInstaller struct{}
  8. func defaultChildSAInstaller() ChildSAInstaller {
  9. return unsupportedInstaller{}
  10. }
  11. func (unsupportedInstaller) Install(context.Context, ChildSAConfig) (ChildSAHandle, error) {
  12. return nil, errors.New("kernel CHILD_SA installation is supported only on Linux")
  13. }