{"modulePath":"github.com/api7/cloud-cli","version":"v0.0.0-20240523012138-b9cffea42484","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Variables\n\n```go\nvar TraceVerbose traceVerbose\n```\n\n## Functions\n\n```go\nfunc CheckIfCertificateIsExpired(data []byte) (bool, error)\n```\nCheckIfCertificateIsExpired checks whether the certificate is expired or not. Note this function accepts the certificate as a byte array (in PEM format).\n\n```go\nfunc DumpTrace(data *cloud.TraceSeries)\n```\n\n```go\nfunc GetAPISIXID(kubectl commands.Cmd, podName string) (string, error)\n```\nGetAPISIXID get the id for APISIX instance\n\n```go\nfunc GetDeploymentName(kubectl commands.Cmd) (string, error)\n```\nGetDeploymentName get the deploy name for APISIX instance\n\n```go\nfunc GetPodsNames(kubectl commands.Cmd) ([]string, error)\n```\nGetPodsNames get the pod names for APISIX instance\n\n```go\nfunc GetServiceName(kubectl commands.Cmd) (string, error)\n```\nGetServiceName get the service name for APISIX instance\n\n```go\nfunc ReadConsumerFromFile(filename string) (*sdk.Consumer, error)\n```\n\n```go\nfunc ReadRouterFromFile(filename string) (*sdk.API, error)\n```\n\n```go\nfunc ReadServiceFromFile(filename string) (*sdk.Application, error)\n```\n\n```go\nfunc VerboseGoroutine(traceChan \u003c-chan *cloud.TraceSeries)\n```\n\n```go\nfunc WaitForSignal(callback func())\n```\nWaitForSignal creates a channel and wait until desired signal arriving. It's a block call so be sure you're using it correctly.\n\n","path":"github.com/api7/cloud-cli/internal/utils","name":"utils","synopsis":"","isRedistributable":true}
