util

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustRateInterval

func AdjustRateInterval(namespaceCreationTime time.Time, queryTime time.Time, ratesInterval string) (string, error)

func ConfigToJS

func ConfigToJS()

ConfigToJS generates env.js file from Kiali config

func GetStartTimeForRateInterval

func GetStartTimeForRateInterval(baseTime time.Time, rateInterval string) (time.Time, error)

func UpdateBaseURL

func UpdateBaseURL(webRootPath string)

UpdateBaseURL updates index.html base href with web root string

Types

type ClockMock

type ClockMock struct {
	Time time.Time
}

func (ClockMock) Now

func (clock ClockMock) Now() time.Time

type RealClock

type RealClock struct{}

func (RealClock) Now

func (clock RealClock) Now() time.Time

type TimeProvider

type TimeProvider interface {
	Now() time.Time
}
var Clock TimeProvider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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