utils

package
v0.0.0-...-b9cffea Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TraceVerbose traceVerbose

Functions

func CheckIfCertificateIsExpired

func CheckIfCertificateIsExpired(data []byte) (bool, error)

CheckIfCertificateIsExpired checks whether the certificate is expired or not. Note this function accepts the certificate as a byte array (in PEM format).

func DumpTrace

func DumpTrace(data *cloud.TraceSeries)

func GetAPISIXID

func GetAPISIXID(kubectl commands.Cmd, podName string) (string, error)

GetAPISIXID get the id for APISIX instance

func GetDeploymentName

func GetDeploymentName(kubectl commands.Cmd) (string, error)

GetDeploymentName get the deploy name for APISIX instance

func GetPodsNames

func GetPodsNames(kubectl commands.Cmd) ([]string, error)

GetPodsNames get the pod names for APISIX instance

func GetServiceName

func GetServiceName(kubectl commands.Cmd) (string, error)

GetServiceName get the service name for APISIX instance

func ReadConsumerFromFile

func ReadConsumerFromFile(filename string) (*sdk.Consumer, error)

func ReadRouterFromFile

func ReadRouterFromFile(filename string) (*sdk.API, error)

func ReadServiceFromFile

func ReadServiceFromFile(filename string) (*sdk.Application, error)

func VerboseGoroutine

func VerboseGoroutine(traceChan <-chan *cloud.TraceSeries)

func WaitForSignal

func WaitForSignal(callback func())

WaitForSignal creates a channel and wait until desired signal arriving. It's a block call so be sure you're using it correctly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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