Documentation
¶
Index ¶
- func ExpandTilde(path string) string
- func FetchServiceEndpoints(ctx context.Context, clientset *kubernetes.Clientset, ...) (addrs []string, err error)
- func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
- func GetPodConditionFromList(conditions []corev1.PodCondition, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
- func GetPodReadyCondition(status corev1.PodStatus) *corev1.PodCondition
- func GetSysProxy() (envs []corev1.EnvVar, err error)
- func GetSysProxyEnvs() (envs []string, err error)
- func IsPodReady(pod *corev1.Pod) bool
- func IsPodReadyConditionTrue(status corev1.PodStatus) bool
- func ValidateDistro(distro string) (appcorev1.CliAppDistro, error)
- func ValidateShell(shell string) (appcorev1.CliAppShell, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandTilde ¶ added in v0.2.0
func FetchServiceEndpoints ¶ added in v0.2.0
func GetPodCondition ¶ added in v0.2.0
func GetPodCondition(status *corev1.PodStatus, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
GetPodCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func GetPodConditionFromList ¶ added in v0.2.0
func GetPodConditionFromList(conditions []corev1.PodCondition, conditionType corev1.PodConditionType) (int, *corev1.PodCondition)
GetPodConditionFromList extracts the provided condition from the given list of condition and returns the index of the condition and the condition. Returns -1 and nil if the condition is not present.
func GetPodReadyCondition ¶ added in v0.2.0
func GetPodReadyCondition(status corev1.PodStatus) *corev1.PodCondition
GetPodReadyCondition extracts the pod ready condition from the given status and returns that. Returns nil if the condition is not present.
func GetSysProxy ¶
func GetSysProxyEnvs ¶ added in v0.2.0
func IsPodReady ¶ added in v0.2.0
IsPodReady returns true if a pod is ready; false otherwise.
func IsPodReadyConditionTrue ¶ added in v0.2.0
IsPodReadyConditionTrue returns true if a pod is ready; false otherwise.
func ValidateDistro ¶ added in v0.2.0
func ValidateDistro(distro string) (appcorev1.CliAppDistro, error)
func ValidateShell ¶ added in v0.2.0
func ValidateShell(shell string) (appcorev1.CliAppShell, error)
Types ¶
This section is empty.