Documentation ¶
Index ¶
- func GetNextRevisionNumber(revisions []*appsv1.ControllerRevision) int64
- func GetNonLiveHistory(revisions []*appsv1.ControllerRevision, historyLimit int) []*appsv1.ControllerRevision
- func GetPodLogs(clientset *kubernetes.Clientset, pod *corev1.Pod) (string, error)
- func GetRevisionWithNameNumber(cr *appsv1.ControllerRevision) string
- func GetTime(timeStr string) time.Time
- func HasTimeElapsed(timeToCheckStr string, now time.Time, intervalSec int) bool
- func IsBlank(s *string) bool
- func MapDiff[K comparable, V any](a, b map[K]V) map[K]DiffValue
- func SetTimestamp(target *string)
- func UpperBoundedResourceList(resources corev1.ResourceRequirements) *corev1.ResourceList
- type DiffValue
- type TimeConverter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNextRevisionNumber ¶
func GetNextRevisionNumber(revisions []*appsv1.ControllerRevision) int64
func GetNonLiveHistory ¶
func GetNonLiveHistory(revisions []*appsv1.ControllerRevision, historyLimit int) []*appsv1.ControllerRevision
func GetPodLogs ¶
func GetRevisionWithNameNumber ¶
func GetRevisionWithNameNumber(cr *appsv1.ControllerRevision) string
Compose revision in FlinkClusterStatus with name and number of ControllerRevision
func HasTimeElapsed ¶ added in v0.4.2
Check time has passed
func MapDiff ¶ added in v0.4.2
func MapDiff[K comparable, V any](a, b map[K]V) map[K]DiffValue
func SetTimestamp ¶
func SetTimestamp(target *string)
SetTimestamp sets the current timestamp to the target.
func UpperBoundedResourceList ¶ added in v0.4.2
func UpperBoundedResourceList(resources corev1.ResourceRequirements) *corev1.ResourceList
Types ¶
type TimeConverter ¶
type TimeConverter struct{}
TimeConverter converts between time.Time and string.
func (*TimeConverter) FromString ¶
func (tc *TimeConverter) FromString(timeStr string) time.Time
FromString converts string to time.Time.
Click to show internal directories.
Click to hide internal directories.