Documentation
¶
Index ¶
- func Hash(s string) (uint32, error)
- func IsContainsAll(a, b map[string]string) bool
- func ParseCapacity(capacity string) (uint16, string, error)
- func ParsePrometheusMetric(metric string) (map[string]*dto.MetricFamily, error)
- func ParsePrometheusMetricValue(metric string) (float64, error)
- func RenderFinalizer(name string, extras ...string) string
- func RenderManagerSidecar() (*corev1.Container, error)
- func RenderMetricsService(name, namespace string) (*corev1.Service, error)
- func RenderMetricsSidecar() (*corev1.Container, error)
- func RenderMountPoint(pattern, name string, index int) string
- func RenderPVCName(elems ...string) (string, error)
- func WaitForSemaphore(ctx context.Context, sem Semaphore, errChan chan<- error) (func(), error)
- type Semaphore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsContainsAll ¶
IsContainsAll finds for a contains all b
func ParsePrometheusMetric ¶ added in v0.0.2
func ParsePrometheusMetric(metric string) (map[string]*dto.MetricFamily, error)
ParsePrometheusMetric parses Prometheus metrisc details
func ParsePrometheusMetricValue ¶ added in v0.0.2
ParsePrometheusMetricValue parses Prometheus metrisc value
func RenderFinalizer ¶
RenderFinalizer calculates finalizer name
func RenderManagerSidecar ¶ added in v0.0.2
RenderManagerSidecar returns the manager sidecar
func RenderMetricsService ¶ added in v0.0.2
RenderMetricsService returns the metrics service
func RenderMetricsSidecar ¶ added in v0.0.2
RenderMetricsSidecar returns the metrics sidecar
func RenderMountPoint ¶
RenderMountPoint calculates mount point
func RenderPVCName ¶
RenderPVCName calculates PVC name
Types ¶
Click to show internal directories.
Click to hide internal directories.