Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BUILDTIME string
BUILDTIME should be populated by at build time: -ldflags "-w -X github.com/amadeusitgroup/redis-operator/pkg/utils.BUILDTIME=${DATE} with for example DATE=$(shell date +%Y-%m-%d/%H:%M:%S ) (pay attention not to use space!)
var COMMIT string
COMMIT should be populated by at build time: -ldflags "-w -X github.com/amadeusitgroup/redis-operator/pkg/utils.COMMIT=${COMMIT} with for example COMMIT=$(shell git rev-parse HEAD)
var TAG string
TAG should be populated by at build time: -ldflags "-w -X github.com/amadeusitgroup/redis-operator/pkg/utils.TAG=${TAG} with for example TAG=$(shell git tag|tail -1)
var VERSION string
VERSION should be populated by at build time: -ldflags "-w -X github.com/amadeusitgroup/redis-operator/pkg/utils.VERSION=${VERSION} with for example VERSION=$(shell git rev-parse --abbrev-ref HEAD)
Functions ¶
Types ¶
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
LogWriter struct representation of a log writter, containing the pointer of the logging function
func NewLogWriter ¶
func NewLogWriter(f func(args ...interface{})) *LogWriter
NewLogWriter create a new LogWriter with the pointer of the logging function in input