Documentation
¶
Index ¶
- func CleanContext(eveDist, certsDist, imagesDist, evePID, eveUUID string, configSaved string, ...) (err error)
- func CleanEden(...) (err error)
- func CloneFromGit(dist string, gitRepo string, tag string) (err error)
- func GenerateEVEConfig(eveConfig string, domain string, ip string, port int, apiV1 bool) (err error)
- func GenerateEveCerts(certsDir, domain, ip, eveIP, uuid, devModel, ssid, password string) (err error)
- func MakeEveInRepo(distEve string, configPath string, arch string, hv string, imageFormat string, ...) (image, additional string, err error)
- func ReadFileInSquashFS(squashFSPath, filePath string) (content []byte, err error)
- func StartAdam(adamPort int, adamPath string, adamForce bool, adamTag string, ...) (err error)
- func StartEServer(serverPort int, imageDist string, eserverForce bool, eserverTag string) (err error)
- func StartEVEQemu(qemuARCH, qemuOS, eveImageFile, qemuSMBIOSSerial string, eveTelnetPort int, ...) (err error)
- func StartRedis(redisPort int, redisPath string, redisForce bool, redisTag string) (err error)
- func StartRegistry(port int, tag, registryPath string, opts ...string) (err error)
- func StatusAdam() (status string, err error)
- func StatusEServer() (status string, err error)
- func StatusEVEQemu(pidFile string) (status string, err error)
- func StatusRedis() (status string, err error)
- func StatusRegistry() (status string, err error)
- func StopAdam(adamRm bool) (err error)
- func StopEServer(eserverRm bool) (err error)
- func StopEVEQemu(pidFile string) (err error)
- func StopEden(adamRm, redisRm, registryRm, eserverRm, eveRemote bool, evePidFile string)
- func StopRedis(redisRm bool) (err error)
- func StopRegistry(rm bool) (err error)
- type EServer
- type EVEInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanContext ¶
func CleanContext(eveDist, certsDist, imagesDist, evePID, eveUUID string, configSaved string, remote bool) (err error)
CleanContext cleanup only context data
func CleanEden ¶
func CleanEden(eveDist, adamDist, certsDist, imagesDist, eserverDist, redisDist, registryDist, configDir, evePID string, configSaved string, remote bool) (err error)
CleanEden teardown Eden and cleanup
func CloneFromGit ¶
CloneFromGit function clone from git into dist
func GenerateEVEConfig ¶
func GenerateEVEConfig(eveConfig string, domain string, ip string, port int, apiV1 bool) (err error)
GenerateEVEConfig function copy certs to EVE config folder
func GenerateEveCerts ¶
func GenerateEveCerts(certsDir, domain, ip, eveIP, uuid, devModel, ssid, password string) (err error)
GenerateEveCerts function generates certs for EVE
func MakeEveInRepo ¶
func MakeEveInRepo(distEve string, configPath string, arch string, hv string, imageFormat string, rootFSOnly bool) (image, additional string, err error)
MakeEveInRepo build live image of EVE
func ReadFileInSquashFS ¶
ReadFileInSquashFS returns the content of a single file (filePath) inside squashfs (squashFSPath)
func StartAdam ¶
func StartAdam(adamPort int, adamPath string, adamForce bool, adamTag string, adamRemoteRedisURL string, opts ...string) (err error)
StartAdam function run adam in docker with mounted adamPath/run:/adam/run if adamForce is set, it recreates container
func StartEServer ¶
func StartEServer(serverPort int, imageDist string, eserverForce bool, eserverTag string) (err error)
StartEServer function run eserver in docker if eserverForce is set, it recreates container
func StartEVEQemu ¶
func StartEVEQemu(qemuARCH, qemuOS, eveImageFile, qemuSMBIOSSerial string, eveTelnetPort int, qemuHostFwd map[string]string, qemuAccel bool, qemuConfigFile, logFile string, pidFile string, foregroud bool) (err error)
StartEVEQemu function run EVE in qemu
func StartRedis ¶
StartRedis function run redis in docker with mounted redisPath:/data if redisForce is set, it recreates container
func StartRegistry ¶
StartRegistry function run registry in docker
func StatusAdam ¶
StatusAdam function return status of adam
func StatusEServer ¶
StatusEServer function return eserver of adam
func StatusEVEQemu ¶
StatusEVEQemu function get status of EVE
func StatusRedis ¶
StatusRedis function return status of redis
func StatusRegistry ¶
StatusRegistry function return status of registry
func StopEServer ¶
StopEServer function stop eserver container
func StopRegistry ¶
StopRegistry function stop registry container
Types ¶
type EServer ¶
EServer for connection to eserver
func (*EServer) EServerAddFile ¶
EServerAddFile send file with image into eserver
func (*EServer) EServerAddFileURL ¶
EServerAddFileURL send url to download image into eserver
type EVEInfo ¶
type EVEInfo struct {
EVERelease []byte //EVERelease is /etc/eve-release from rootfs
Syslog []byte //Syslog is /rsyslog/syslog.txt from persist volume
}
EVEInfo contains info from SD card
func GetInfoFromSDCard ¶
GetInfoFromSDCard obtain info from SD card with EVE devicePath is /dev/sdX or /dev/diskX