Documentation ¶
Index ¶
- Constants
- func ErrList(e []error) error
- func GetDefaultRKETools() string
- func GetImageTagFromImage(image string) (string, error)
- func GetObjectQueue(l interface{}) chan interface{}
- func GetTagMajorVersion(tag string) string
- func IsFileExists(filePath string) (bool, error)
- func IsRancherBackupSupported(image string) bool
- func IsSymlink(file string) (bool, error)
- func StrToSemVer(version string) (*semver.Version, error)
- func UniqueStringSlice(elements []string) []string
Constants ¶
View Source
const ( WorkerThreads = 50 // SupportedSyncToolsVersion this should be kept at the latest version of rke released with // rancher 2.2.0. SupportedSyncToolsVersion = "0.1.25" )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultRKETools ¶ added in v0.2.0
func GetDefaultRKETools() string
func GetImageTagFromImage ¶ added in v0.2.3
func GetObjectQueue ¶ added in v0.1.18
func GetObjectQueue(l interface{}) chan interface{}
func GetTagMajorVersion ¶ added in v0.1.17
func IsFileExists ¶ added in v0.2.3
func IsRancherBackupSupported ¶ added in v0.2.0
IsRancherBackupSupported with rancher 2.2.0 and rke 0.2.0, etcdbackup was completely refactored and the interface for the rke-tools backup command changed significantly. This function is used to check the the release rke-tools version to choose between the new backup or the legacy backup code paths. The released version of rke-tools should be set in the const SupportedSyncToolsVersion
func UniqueStringSlice ¶ added in v0.2.0
UniqueStringSlice - Input slice, retrun slice with unique elements. Will not maintain order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.