util

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DockerHubHost = "index.docker.io/v1/"
View Source
const MaxHashLength = 10

Variables

This section is empty.

Functions

func Hash

func Hash(s string) (string, error)

func NewLagerLogr

func NewLagerLogr(logger lager.Logger) logr.Logger

func ParseAppIndex

func ParseAppIndex(podName string) (int, error)

func ParseImageRegistryHost

func ParseImageRegistryHost(imageURL string) string

Types

type LagerLogr

type LagerLogr struct {
	// contains filtered or unexported fields
}

LagerLogr is a logr (https://github.com/go-logr/logr) implementation over lager.Logger

func (LagerLogr) Enabled

func (l LagerLogr) Enabled(level int) bool

func (LagerLogr) Error

func (l LagerLogr) Error(err error, msg string, kvs ...interface{})

func (LagerLogr) Info

func (l LagerLogr) Info(level int, msg string, kvs ...interface{})

func (LagerLogr) Init added in v0.3.0

func (l LagerLogr) Init(_ logr.RuntimeInfo)

func (LagerLogr) WithName

func (l LagerLogr) WithName(name string) logr.LogSink

func (LagerLogr) WithValues

func (l LagerLogr) WithValues(kvs ...interface{}) logr.LogSink

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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