Documentation ¶
Index ¶
- Constants
- func CleanupVersion(version string) string
- func ComputeCheckSum(filePath string) (hash string, err error)
- func FileExists(filePath string) (bool, error)
- func HasRootPermissions(folderPath string) (bool, error)
- func HttpDownload(log log.T, fileURL string, destinationPath string) (string, error)
- func HttpReadContent(stableVersionUrl string, client *http.Client) ([]byte, error)
Constants ¶
View Source
const ( SSMSetupCLIArtifactsFolderName = "ssm_setup_cli_artifacts" StableVersionString = "stable" LatestVersionString = "latest" VersionFile = "VERSION" )
View Source
const ( SSMSetupCLIBinary = "ssm-setup-cli" // ExpectedServiceRunningUser is the user we expect the agent to be running as ExpectedServiceRunningUser = "root" // AgentBinary is the name of agent binary AgentBinary = appconfig.DefaultAgentName )
Variables ¶
This section is empty.
Functions ¶
func CleanupVersion ¶
CleanupVersion is used cross package managers to remove additional characters from version
func ComputeCheckSum ¶
ComputeCheckSum computes check sum of binaries
func FileExists ¶
FileExists checks whether the file is present on the instance
func HasRootPermissions ¶
HasRootPermissions shows whether the folder path has root permission
func HttpDownload ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.