Files
gluetun/internal/cli/cli.go

27 lines
567 B
Go
Raw Normal View History

2021-02-06 16:26:23 +00:00
// Package cli defines an interface CLI to run command line operations.
package cli
2020-02-08 21:50:17 +00:00
import (
"context"
"github.com/qdm12/golibs/logging"
2021-07-22 20:45:17 +00:00
"github.com/qdm12/golibs/params"
2020-02-08 21:50:17 +00:00
)
type CLI interface {
ClientKey(args []string) error
HealthCheck(ctx context.Context, env params.Env, logger logging.Logger) error
OpenvpnConfig(logger logging.Logger) error
Update(ctx context.Context, args []string, logger logging.Logger) error
}
type cli struct {
repoServersPath string
}
func New() CLI {
return &cli{
repoServersPath: "./internal/constants/servers.json",
}
}