Files
gluetun/internal/alpine/alpine.go

24 lines
517 B
Go
Raw Normal View History

2021-02-06 16:26:23 +00:00
// Package alpine defines a configurator to interact with the Alpine operating system.
package alpine
import (
2021-01-02 01:57:00 +00:00
"github.com/qdm12/golibs/os"
"github.com/qdm12/golibs/os/user"
)
type Configurator interface {
2020-12-27 00:36:39 +00:00
CreateUser(username string, uid int) (createdUsername string, err error)
}
type configurator struct {
openFile os.OpenFileFunc
osUser user.OSUser
}
func NewConfigurator(openFile os.OpenFileFunc, osUser user.OSUser) Configurator {
return &configurator{
openFile: openFile,
osUser: osUser,
}
}