module

package
v0.0.0-...-e73abb9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AzureCliModuleCommandHelper

func AzureCliModuleCommandHelper()

func AzurecliModuleProcessor

func AzurecliModuleProcessor()

func GetCommandArgument

func GetCommandArgument() string

func GetModuleArgument

func GetModuleArgument() string

func GetSubCommandArgument

func GetSubCommandArgument() string

func PrintCommandHelper

func PrintCommandHelper()

func RestApiModuleProcessor

func RestApiModuleProcessor()

func ServiceBusCliModuleProcessor

func ServiceBusCliModuleProcessor()

Types

type DeploymentToolsModule

type DeploymentToolsModule struct {
	Name                  string
	WindowsExecutableName string
	LinuxExecutableName   string
	FolderPath            string
	ModulePath            string
	ExecPath              string
	Exec                  string
	Exists                bool
	Latest                bool
	Version               string
	GetLocalVersion       GetLocalVersion
	GetOnlineVersions     GetOnlineVersions
	Download              Download
	Process               Process
	PreInstall            PreInstall
	PostInstall           PostInstall
	PreUninstall          PreUninstall
	PostUninstall         PostUninstall
}

DeploymentToolsModule Entity

func (*DeploymentToolsModule) GetCachedVersions

func (m *DeploymentToolsModule) GetCachedVersions() []Version

GetCachedVersions Get all the cached version of a module

func (*DeploymentToolsModule) GetExec

func (m *DeploymentToolsModule) GetExec() string

func (*DeploymentToolsModule) GetLatestCachedVersion

func (m *DeploymentToolsModule) GetLatestCachedVersion() Version

GetLatestCachedVersion Gets the latest cached version of the module

func (*DeploymentToolsModule) GetLatestModule

func (m *DeploymentToolsModule) GetLatestModule()

GetLatestModule Get the latest version of a specific module

func (*DeploymentToolsModule) GetLatestVersion

func (m *DeploymentToolsModule) GetLatestVersion() string

GetLatestVersion Gets a module latest version

func (*DeploymentToolsModule) GetModule

func (m *DeploymentToolsModule) GetModule(version string)

GetModule GetModule Terraform into the tools folder

func (*DeploymentToolsModule) InstallVersion

func (m *DeploymentToolsModule) InstallVersion(version string) error

InstallVersion Installs a specific version of a module

func (*DeploymentToolsModule) IsLatest

func (m *DeploymentToolsModule) IsLatest() bool

IsLatest Check if the installed version is the latest

func (*DeploymentToolsModule) SetExists

func (m *DeploymentToolsModule) SetExists(version string) bool

SetExists checks if Terraform module exists

func (*DeploymentToolsModule) SetPathsFromVersion

func (m *DeploymentToolsModule) SetPathsFromVersion(version Version)

SetPathsFromVersion Sets the path od the module from a version

func (*DeploymentToolsModule) SetWorkingVersion

func (m *DeploymentToolsModule) SetWorkingVersion(version string)

SetWorkingVersion Sets a working version for the module

func (*DeploymentToolsModule) UninstallAll

func (m *DeploymentToolsModule) UninstallAll() error

UninstallAll Removes all cached versions of the module

func (*DeploymentToolsModule) UninstallVersion

func (m *DeploymentToolsModule) UninstallVersion(version string) error

UninstallVersion Removes a specific version of a module

func (*DeploymentToolsModule) VersionToInt

func (m *DeploymentToolsModule) VersionToInt(value string) int

VersionToInt Gets a integer of a version for version comparing

type Download

type Download func(version string) (string, error)

Download Local Module Download function

type GetLocalVersion

type GetLocalVersion func(filePath string) (string, error)

GetLocalVersion Local Module Version function

type GetOnlineVersions

type GetOnlineVersions func() ([]string, error)

GetOnlineVersions Local Module Get Online Versions function

type PostInstall

type PostInstall func(version string) error

PostInstall Instructions to be executed after installing any version

type PostUninstall

type PostUninstall func(version string) error

PostUninstall Instructions to be executed after uninstalling any version

type PreInstall

type PreInstall func(version string) error

PreInstall Instructions to be executed before installing any version

type PreUninstall

type PreUninstall func(version string) error

PreUninstall Instructions to be executed before uninstalling any version

type Process

type Process func()

Process Process the module variables and functions

type Version

type Version struct {
	Version  string `json:"version" yaml:"version"`
	Revision string `json:"revision" yaml:"revision"`
	Path     string `json:"path" yaml:"path"`
}

Version Entity

Jump to

Keyboard shortcuts

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