Documentation ¶
Index ¶
- func CreateDTClient(env manifest.EnvironmentDefinition, dryRun bool) (client.Client, error)
- func GetEnvFromManifest(fs afero.Fs, manifestPath string, specificEnvironmentName string) (env manifest.EnvironmentDefinition, err error)
- func GetFilePaths(fileName string) (string, string, error)
- func GetManifest(fs afero.Fs, manifestPath string) (manifest.Manifest, error)
- func SilenceUsageCommand() func(cmd *cobra.Command, args []string)
- func VerifyEnvironmentGeneration(envs manifest.Environments) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDTClient ¶
CreateDTClient is driven by data given through a manifest.EnvironmentDefinition to create an appropriate client.Client.
In case when flag dryRun is true this factory returns the client.DummyClient.
func GetEnvFromManifest ¶
func SilenceUsageCommand ¶
SilenceUsageCommand gives back a command that is just configured to skip printing of usage info. We use it as a PreRun hook to enforce the behavior of printing usage info when the command structure given by the user is faulty
func VerifyEnvironmentGeneration ¶
func VerifyEnvironmentGeneration(envs manifest.Environments) bool
VerifyEnvironmentGeneration takes a manifestEnvironments map and tries to verify that each environment can be reached using the configured credentials
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.