methods

package
v0.0.0-...-da66991 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: 18 Imported by: 0

Documentation

Overview

EPOS Open Source - Local installation with Kubernetes
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 Kubernetes
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 Kubernetes
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 Kubernetes
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 Kubernetes
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 Kubernetes
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 CopyFromEmbedAndSubstitute

func CopyFromEmbedAndSubstitute(dname string, filetype string, file []byte) (string, error)

func CreateDirectory

func CreateDirectory(dir string) error

func CreateEnvironment

func CreateEnvironment(env string, context string, namespace string, tag string, autoupdate string, update string) error

func DeleteEnvironment

func DeleteEnvironment(context string, namespace string) error

func ExecuteCommand

func ExecuteCommand(cmd *exec.Cmd) error

func ExportHostname

func ExportHostname(cmd *exec.Cmd) (string, 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 GetBackofficeResourceEmbed

func GetBackofficeResourceEmbed() []byte

func GetConfigurationsEmbed

func GetConfigurationsEmbed() []byte

func GetConverterResourceEmbed

func GetConverterResourceEmbed() []byte

func GetDataPortalResourceEmbed

func GetDataPortalResourceEmbed() []byte

func GetExternalAccessResourceEmbed

func GetExternalAccessResourceEmbed() []byte

func GetFreePort

func GetFreePort() (int, error)

func GetGatewayResourceEmbed

func GetGatewayResourceEmbed() []byte

func GetIngestorResourceEmbed

func GetIngestorResourceEmbed() []byte

func GetLastDockerImageTag

func GetLastDockerImageTag(repo string) (string, error)

func GetLastTag

func GetLastTag() error

func GetLoggingResourceEmbed

func GetLoggingResourceEmbed() []byte

func GetMetadataDatabaseResourceEmbed

func GetMetadataDatabaseResourceEmbed() []byte

func GetOperatorResourceEmbed

func GetOperatorResourceEmbed() []byte

func GetRabbitMQResourceEmbed

func GetRabbitMQResourceEmbed() []byte

func GetResourcesResourceEmbed

func GetResourcesResourceEmbed() []byte

func GetSecretsResourceEmbed

func GetSecretsResourceEmbed() []byte

func GetVersion

func GetVersion() string

func IsPortAvailable

func IsPortAvailable(port string) (bool, error)

func OverridePorts

func OverridePorts(update string) error

func PopulateEnvironment

func PopulateEnvironment(context string, env string, path string, namespace string, tag 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, context string, namespace string, tag string)

func PrintSetupShort

func PrintSetupShort(context string, namespace 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

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