Documentation ¶
Index ¶
- Constants
- Variables
- func BinDirectory(version string) string
- func ContainsTeleportBinaries(dir string) bool
- func CreateLinks(force bool) error
- func CreateSymbolicLink(binaryName string) error
- func Execute(binaryName string, args ...string) error
- func ExistsOnPath(binaryName string) (bool, error)
- func FilterStringStartsWith(start string) func(string) bool
- func GetInstalledVersions() (versionList, error)
- func GetSelectedVersion() (string, error)
- func GetValidProfileNames() ([]string, error)
- func InstallVersion(ctx context.Context, version string) error
- func ListInstalledVersions() error
- func SelectProfile(profileName string) error
- func StringSliceContains(slice []string, item string) bool
- func StringSliceFilter(slice []string, filter func(string) bool) []string
- func UseTeleport(version string) error
- type Config
Constants ¶
View Source
const DirectoryMode = 0755
View Source
const FileMode = 0755
Variables ¶
View Source
var SelectedVersionFile = path.Join(TeleportEnvHomeDirectory, "selected-version")
View Source
var TeleportBinaryNames = []string{"teleport", "tsh", "tctl", "tbot"}
View Source
var TeleportBinaryURLTemplate = template.Must(template.New("binary_url").Parse(
"https://get.gravitational.com/teleport-v{{.Version}}-{{.OS}}-{{.Arch}}-bin.tar.gz",
))
View Source
var TeleportCurrentProfileFile = path.Join(TeleportHomeDirectory, "current-profile")
View Source
var TeleportEnvConfigFile = path.Join(TeleportEnvHomeDirectory, "config.yaml")
View Source
var TeleportEnvHomeDirectory = os.ExpandEnv("$HOME/.tenv")
View Source
var TeleportEnvVersionDirectory = path.Join(TeleportEnvHomeDirectory, "versions")
View Source
var TeleportHomeDirectory = os.ExpandEnv("$HOME/.tsh")
View Source
var TeleportOptionalBinaryNames = []string{"tbot"}
Functions ¶
func BinDirectory ¶
func CreateLinks ¶
func CreateSymbolicLink ¶
func ExistsOnPath ¶
func FilterStringStartsWith ¶
func GetInstalledVersions ¶
func GetInstalledVersions() (versionList, error)
func GetSelectedVersion ¶
func GetValidProfileNames ¶
func ListInstalledVersions ¶
func ListInstalledVersions() error
func SelectProfile ¶
func StringSliceContains ¶
func UseTeleport ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.