kubescraper

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package kubescraper contains the scrape command and useful methods for sending notifications to users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisClient added in v0.4.0

func GetRedisClient() *redis.Client

GetRedisClient returns the redis client

func GetRedisPubChannel added in v0.4.0

func GetRedisPubChannel() string

GetRedisPubChannel returns the redis channel for publishing events

func NewCommand

func NewCommand(h ResponseHandler, opts ...Option) *cobra.Command

NewCommand returns the cobra command

func WithLogger added in v0.3.0

func WithLogger(l zerolog.Logger) func()

WithLogger puts a custom logger

Types

type Option added in v0.3.0

type Option func()

Option defines an option

type ResponseHandler

type ResponseHandler func(string, *http.Response, error)

ResponseHandler is a function is executed after each http call completed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL