2020-06-02 23:03:18 +00:00
|
|
|
package cli
|
2020-02-08 21:50:17 +00:00
|
|
|
|
|
|
|
|
import (
|
2020-09-05 12:57:16 -04:00
|
|
|
"context"
|
2020-06-13 10:43:47 -04:00
|
|
|
|
2020-12-29 00:55:31 +00:00
|
|
|
"github.com/qdm12/gluetun/internal/os"
|
2020-02-08 21:50:17 +00:00
|
|
|
)
|
|
|
|
|
|
2020-12-29 18:24:03 +00:00
|
|
|
type CLI interface {
|
|
|
|
|
ClientKey(args []string, openFile os.OpenFileFunc) error
|
|
|
|
|
HealthCheck(ctx context.Context) error
|
|
|
|
|
OpenvpnConfig(os os.OS) error
|
|
|
|
|
Update(args []string, os os.OS) error
|
2020-06-13 10:43:47 -04:00
|
|
|
}
|
|
|
|
|
|
2020-12-29 18:24:03 +00:00
|
|
|
type cli struct{}
|
2020-09-12 14:04:54 -04:00
|
|
|
|
2020-12-29 18:24:03 +00:00
|
|
|
func New() CLI {
|
|
|
|
|
return &cli{}
|
2020-08-28 08:17:04 -04:00
|
|
|
}
|