context

package
v0.0.0-...-ed127e3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClustersFolder = "clusters"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployerContext

type DeployerContext struct {
	KubeConnection *connect.KubeConnection
	RootOutputDir  string
	RootSourceDir  string
	Logger         *logrus.Logger
}

func InitDeployerContext

func InitDeployerContext(args *config.Args, kubeConnection *connect.KubeConnection, logger *logrus.Logger) *DeployerContext

func (*DeployerContext) GetKubeConfig

func (dc *DeployerContext) GetKubeConfig() *rest.Config

func (*DeployerContext) GetKubeConfigPath

func (dc *DeployerContext) GetKubeConfigPath() string

func (*DeployerContext) GetLogger

func (dc *DeployerContext) GetLogger() *logrus.Logger

func (*DeployerContext) GetRootOutputDir

func (dc *DeployerContext) GetRootOutputDir() string

func (*DeployerContext) GetRootSourceDir

func (dc *DeployerContext) GetRootSourceDir() string

type InfraContext

type InfraContext struct {
	ScriptPath           string
	AnsiblePlaybookPath  string
	SourceClustersDir    string
	InfraRootDir         string
	OutputClustersFolder string
}

func InitInfraContext

func InitInfraContext(flags *config.Args) *InfraContext

Jump to

Keyboard shortcuts

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