Documentation ¶
Index ¶
- Constants
- func AppendUnique(slice []interface{}, i interface{}) []interface{}
- func AppendUniqueIndex(slice []interface{}, i interface{}, idx string, override bool) []interface{}
- func ConcatenateList(list []string, delimiter string) string
- func ContainsEqualFold(slice []string, s string) bool
- func ContainsEqualFoldSubstring(str, substr string) bool
- func ContainsString(slice []string, s string) bool
- func Difference(a, b []string) []string
- func FieldPath(path string) []string
- func FieldPathString(path ...string) string
- func FieldValue(path string, obj map[string]interface{}) interface{}
- func GetDecodedString(str string) (string, error)
- func GetGroupsForOsFamily(osFamily string) []string
- func GetLastElementBy(s, sep string) string
- func GetNodeBootstrapRemove(arn string, osFamily string) *awsauth.MapperArguments
- func GetNodeBootstrapUpsert(arn string, osFamily string) *awsauth.MapperArguments
- func GetTimeString() string
- func Int64InRange(i, min, max int64) bool
- func Int64ToStr(x int64) string
- func Int64Value(i *int64) int64
- func IntOrStrValue(x *intstr.IntOrString) int
- func IsBase64(str string) bool
- func IsValidPercent(percent string) error
- func MapEmpty(m map[string]string) bool
- func MergeSliceByIndex(sl1, sl2 []interface{}, idx string, override bool) []interface{}
- func MergeSliceByUnique(sl1, sl2 []interface{}) []interface{}
- func Min(a, b int64) int64
- func ReadFile(path string) ([]byte, error)
- func RemoveAuthConfigMap(kube kubernetes.Interface, arns []string, osFamilies []string) error
- func SetFieldValue(path string, obj map[string]interface{}, value interface{}) error
- func SliceEmpty(slice []string) bool
- func StringEmpty(str string) bool
- func StringMD5(s string) string
- func StringMapSliceContains(m []map[string]string, contains map[string]string) bool
- func StringPtr(str string) *string
- func StringSliceContains(x, y []string) bool
- func StringSliceEqualFold(x []string, y []string) bool
- func StringSliceEquals(x, y []string) bool
- func StringValue(str *string) string
- func UpsertAuthConfigMap(kube kubernetes.Interface, arns []string, osFamilies []string) error
- type MetricsCollector
- func (c MetricsCollector) Collect(ch chan<- prometheus.Metric)
- func (c MetricsCollector) Describe(ch chan<- *prometheus.Desc)
- func (c *MetricsCollector) IncFail(instanceGroup, reason string)
- func (c *MetricsCollector) IncSuccess(instanceGroup string)
- func (c *MetricsCollector) IncThrottle(serviceName, operationName string)
- func (c *MetricsCollector) SetInstanceGroup(instanceGroup, state string)
- func (c *MetricsCollector) UnsetInstanceGroup()
Constants ¶
View Source
const ( Base64 string = "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=|[A-Za-z0-9+\\/]{4})$" Percent string = "^[0-9]+%$" )
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶
func AppendUnique(slice []interface{}, i interface{}) []interface{}
func AppendUniqueIndex ¶
func ConcatenateList ¶
ConcatenateList joins lists to strings delimited with `delimiter`
func ContainsEqualFold ¶
ContainsEqualFold returns true if a given slice 'slice' contains string 's' under unicode case-folding
func ContainsString ¶
ContainsString returns true if a given slice 'slice' contains string 's', otherwise return false
func FieldPathString ¶
func FieldValue ¶
func GetDecodedString ¶
func GetGroupsForOsFamily ¶
func GetLastElementBy ¶
func GetNodeBootstrapRemove ¶
func GetNodeBootstrapRemove(arn string, osFamily string) *awsauth.MapperArguments
func GetNodeBootstrapUpsert ¶
func GetNodeBootstrapUpsert(arn string, osFamily string) *awsauth.MapperArguments
func GetTimeString ¶
func GetTimeString() string
func Int64InRange ¶
func Int64ToStr ¶
func Int64Value ¶
func IntOrStrValue ¶
func IntOrStrValue(x *intstr.IntOrString) int
func IsValidPercent ¶
func MergeSliceByIndex ¶
func MergeSliceByUnique ¶
func MergeSliceByUnique(sl1, sl2 []interface{}) []interface{}
func RemoveAuthConfigMap ¶
func RemoveAuthConfigMap(kube kubernetes.Interface, arns []string, osFamilies []string) error
func SetFieldValue ¶
func SliceEmpty ¶
func StringEmpty ¶
func StringMapSliceContains ¶
func StringSliceContains ¶
func StringSliceEqualFold ¶
func StringSliceEquals ¶
func StringValue ¶
func UpsertAuthConfigMap ¶
func UpsertAuthConfigMap(kube kubernetes.Interface, arns []string, osFamilies []string) error
Types ¶
type MetricsCollector ¶
type MetricsCollector struct { prometheus.Collector // contains filtered or unexported fields }
func NewMetricsCollector ¶
func NewMetricsCollector() *MetricsCollector
func (MetricsCollector) Collect ¶
func (c MetricsCollector) Collect(ch chan<- prometheus.Metric)
func (MetricsCollector) Describe ¶
func (c MetricsCollector) Describe(ch chan<- *prometheus.Desc)
func (*MetricsCollector) IncFail ¶
func (c *MetricsCollector) IncFail(instanceGroup, reason string)
func (*MetricsCollector) IncSuccess ¶
func (c *MetricsCollector) IncSuccess(instanceGroup string)
func (*MetricsCollector) IncThrottle ¶
func (c *MetricsCollector) IncThrottle(serviceName, operationName string)
func (*MetricsCollector) SetInstanceGroup ¶
func (c *MetricsCollector) SetInstanceGroup(instanceGroup, state string)
func (*MetricsCollector) UnsetInstanceGroup ¶
func (c *MetricsCollector) UnsetInstanceGroup()
Click to show internal directories.
Click to hide internal directories.