methods

package
v0.0.0-...-ccd72b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

EPOS Open Source - Local installation with Docker
Copyright (C) 2023  EPOS ERIC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

file: ./cmd/methods/createfunctions.go

EPOS Open Source - Local installation with Docker
Copyright (C) 2023  EPOS ERIC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

file: ./cmd/methods/deletefunctions.go

file: ./cmd/methods/embeds.go

EPOS Open Source - Local installation with Docker
Copyright (C) 2023  EPOS ERIC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

file: ./cmd/methods/exportfunctions.go

EPOS Open Source - Local installation with Docker
Copyright (C) 2023  EPOS ERIC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

file: ./cmd/functions.go

EPOS Open Source - Local installation with Docker
Copyright (C) 2023  EPOS ERIC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

file: ./cmd/methods/populatefunctions.go

EPOS Open Source - Local installation with Docker
Copyright (C) 2023  EPOS ERIC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

file: ./cmd/functions.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckImagesUpdate

func CheckImagesUpdate() error

func CreateDirectory

func CreateDirectory(dir string) error

func CreateEnvironment

func CreateEnvironment(env string, dockercomposefile string, externalip string, envname string, envtag string, update string, autoupdate string) error

func DeleteEnvironment

func DeleteEnvironment(env string, dockercomposefile string, envname string, envtag string) error

func ExecuteCommand

func ExecuteCommand(cmd *exec.Cmd) error

func ExportVariablesEnvironment

func ExportVariablesEnvironment(file string, output string) error

func GenerateDirectoryName

func GenerateDirectoryName() string

func GenerateFile

func GenerateFile(text []byte, filePath string) error

func GenerateTempFile

func GenerateTempFile(dname string, filetype string, text []byte) (string, error)

func GetAvailablePort

func GetAvailablePort() (string, error)

func GetConfigurationsEmbed

func GetConfigurationsEmbed() []byte

func GetDockerComposeEmbed

func GetDockerComposeEmbed() []byte

func GetFreePort

func GetFreePort() (int, error)

func GetLastDockerImageTag

func GetLastDockerImageTag(repo string) (string, error)

func GetLastTag

func GetLastTag() error

func GetVersion

func GetVersion() string

func IsPortAvailable

func IsPortAvailable(port string) (bool, error)

func OverridePorts

func OverridePorts(update string) error

func PopulateEnvironment

func PopulateEnvironment(env string, path string, envname string, envtag string) error

func PrintError

func PrintError(message string)

func PrintNewVersionAvailable

func PrintNewVersionAvailable(message string)

func PrintNotification

func PrintNotification(message string)

func PrintSetup

func PrintSetup(env string, dockercomposefile string)

func PrintTask

func PrintTask(message string)

func PrintUrls

func PrintUrls()

func PrintWait

func PrintWait(message string)

func RemoveContents

func RemoveContents(dir string) error

func SetupIPs

func SetupIPs() error

func SetupProvidedIPs

func SetupProvidedIPs(externalip string) error

Types

type Response

type Response struct {
	Count    int    `json:"count"`
	Next     string `json:"next"`
	Previous any    `json:"previous"`
	Results  []struct {
		Creator int `json:"creator"`
		ID      int `json:"id"`
		Images  []struct {
			Architecture string    `json:"architecture"`
			Features     string    `json:"features"`
			Variant      any       `json:"variant"`
			Digest       string    `json:"digest"`
			Os           string    `json:"os"`
			OsFeatures   string    `json:"os_features"`
			OsVersion    any       `json:"os_version"`
			Size         int       `json:"size"`
			Status       string    `json:"status"`
			LastPulled   any       `json:"last_pulled"`
			LastPushed   time.Time `json:"last_pushed"`
		} `json:"images"`
		LastUpdated         time.Time `json:"last_updated"`
		LastUpdater         int       `json:"last_updater"`
		LastUpdaterUsername string    `json:"last_updater_username"`
		Name                string    `json:"name"`
		Repository          int       `json:"repository"`
		FullSize            int       `json:"full_size"`
		V2                  bool      `json:"v2"`
		TagStatus           string    `json:"tag_status"`
		TagLastPulled       any       `json:"tag_last_pulled"`
		TagLastPushed       time.Time `json:"tag_last_pushed"`
		MediaType           string    `json:"media_type"`
		ContentType         string    `json:"content_type"`
		Digest              string    `json:"digest"`
	} `json:"results"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL