utilities

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: LGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EntBundleCliBinary = SourceBinary{
	Name:     "entando-bundle-cli",
	Path:     GetEntandoConfigInstance().GetEntBundleCliBinFilePath(),
	Tag:      "v1.1.2",
	Sha:      "2eb3bb76d2c86fc825957893620c2e05d3b20f5c",
	RepoName: "entando-bundle-cli",
}
View Source
var EntExtBinaries = []SourceBinary{EntBundleCliBinary}

Functions

func GetEntandoIngressesPath

func GetEntandoIngressesPath(protocol string) *types.EntandoIngressesPath

func HashAndTruncate

func HashAndTruncate(input string) string

func HttpGet

func HttpGet(url string) []byte

func IsEmpty

func IsEmpty(str string) bool

func IsValidURL

func IsValidURL(input string) bool

func NormalizeName

func NormalizeName(input string) string

func ReadFileToYaml

func ReadFileToYaml(filePath string, data interface{})

func ReadString

func ReadString(inputText string, required bool) string

func RetrieveProtocol

func RetrieveProtocol() string

func ShowAdditionalCommandsInHelp

func ShowAdditionalCommandsInHelp()

func WriteYamlToFile

func WriteYamlToFile(filePath string, data interface{})

Types

type EntandoConfig

type EntandoConfig struct {
	// contains filtered or unexported fields
}

func GetEntandoConfigInstance

func GetEntandoConfigInstance() *EntandoConfig

func (*EntandoConfig) GetEntBinFolderFilePath

func (ec *EntandoConfig) GetEntBinFolderFilePath() string

func (*EntandoConfig) GetEntBundleCliBinFilePath

func (ec *EntandoConfig) GetEntBundleCliBinFilePath() string

func (*EntandoConfig) GetEntConfigFilePathByProfile

func (ec *EntandoConfig) GetEntConfigFilePathByProfile(profile string) string

func (*EntandoConfig) GetEntFolderFilePath

func (ec *EntandoConfig) GetEntFolderFilePath() string

func (*EntandoConfig) GetEntGlobalConfigFilePath

func (ec *EntandoConfig) GetEntGlobalConfigFilePath() string

func (*EntandoConfig) GetHomeDir

func (e *EntandoConfig) GetHomeDir() string

func (*EntandoConfig) GetProfile

func (ec *EntandoConfig) GetProfile() string

func (*EntandoConfig) GetProfileFilePath

func (ec *EntandoConfig) GetProfileFilePath(profile string) string

func (*EntandoConfig) GetProfiles

func (ec *EntandoConfig) GetProfiles() ([]string, error)

func (*EntandoConfig) GetProfilesDirectories

func (ec *EntandoConfig) GetProfilesDirectories() ([]os.DirEntry, error)

func (*EntandoConfig) GetProfilesFilePath

func (ec *EntandoConfig) GetProfilesFilePath() string

func (*EntandoConfig) SetHomeDir

func (e *EntandoConfig) SetHomeDir(homeDir string)

type KubeClient

type KubeClient struct {
	ClientSet         *kubernetes.Clientset
	EntandoClientSet  *entandoclients.Clientset
	PipelineClientSet *pipelineclients.Clientset
	DynamicClient     *dynamic.DynamicClient
	Namespace         string
}

func GetKubeClientInstance

func GetKubeClientInstance() *KubeClient

type SourceBinary

type SourceBinary struct {
	Name     string
	Path     string
	Tag      string
	Sha      string
	RepoName string
}

TODO: make multiplatform and multiarch

func (*SourceBinary) DetermineUrl

func (sb *SourceBinary) DetermineUrl() string

Jump to

Keyboard shortcuts

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