Documentation ¶
Index ¶
- func ArrayToString(array []string, sep string) string
- func DoHttpRequest(ctx context.Context, client *http.Client, request *http.Request) ([]byte, error)
- func FilterAlerts(data template.Data, selector *v1.LabelSelector, logger log.Logger) template.Data
- func JsonDecode(reader io.Reader, v interface{}) error
- func JsonEncode(writer io.Writer, v interface{}) error
- func JsonMarshal(v interface{}) ([]byte, error)
- func JsonMarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func JsonUnmarshal(data []byte, v interface{}) error
- func KvToLabelSet(obj template.KV) model.LabelSet
- func MapToStruct(mv map[string]interface{}, v interface{}) error
- func Md5key(val interface{}) (string, error)
- func StringIsNil(s string) bool
- func UrlWithParameters(u string, parameters map[string]string) (string, error)
- func UrlWithPath(u, path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToString ¶
func DoHttpRequest ¶
func FilterAlerts ¶
FilterAlerts filter the alerts with label selector,if the selector is not correct, return all of the alerts.
func JsonDecode ¶
func JsonEncode ¶
func JsonMarshal ¶
func JsonMarshalIndent ¶
func JsonUnmarshal ¶
func MapToStruct ¶
func StringIsNil ¶
func UrlWithParameters ¶
func UrlWithPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.