Documentation
¶
Index ¶
- Constants
- func CopyFile(src, dst string) error
- func GetPodFromYurtHub(namespace, name string) (*v1.Pod, error)
- func GetPodsFromYurtHub(url string) (*v1.PodList, error)
- func WaitForPodRunning(namespace, name, hash string, timeout time.Duration) (bool, error)
- func WithBackupSuffix(path string) string
- func WithUpgradeSuffix(path string) string
- func WithYamlSuffix(path string) string
Constants ¶
View Source
const ( YurtHubAddress = "http://127.0.0.1:10267" YurtHubAPIPath = "/pods" )
View Source
const ( YamlSuffix string = ".yaml" BackupSuffix = ".bak" UpgradeSuffix string = ".upgrade" StaticPodHashAnnotation = "openyurt.io/static-pod-hash" )
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
CopyFile copy file content from src to dst, if destination file not exist, then create it
func WaitForPodRunning ¶
WaitForPodRunning waits static pod to run Success: Static pod annotation `StaticPodHashAnnotation` value equals to function argument hash Failed: Receive PodFailed event
func WithBackupSuffix ¶
func WithUpgradeSuffix ¶
func WithYamlSuffix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.