Documentation ¶
Index ¶
- Constants
- Variables
- func AddNetTrace(req *http.Request) *http.Request
- func CheckMesgErr(resp map[string]interface{}, orgi string)
- func GetClusterUrl() string
- func GetDefaultNamespace() string
- func GetEndpointWithProtocol(endpoint string) string
- func GetPageSize() uint32
- func GetStartTime(lastSeen int64) time.Time
- func GetTimeAsString(s int64) string
- func GetUIPass() string
- func GetUIUser() string
- func GetUrlForResource(r defines.Resource, args ...string) string
- func HandleError(err error)
- func HandleError2(err error, mesg string)
- func InitApiClient(authToken string, authType TokenType, endpoint string, trace bool) error
- func NeedsLineBreak() bool
- func PreRun(cmd *cobra.Command, args []string)
- func PreRunUiTokenOrCredentials(cmd *cobra.Command, args []string)
- func PreRunWithNs(cmd *cobra.Command, args []string)
- func PrintResponse(data interface{}) bool
- func PrintResult(responseList []types.Resource, asList bool)
- func PrintTable(responseList []types.Resource)
- type Api
- type ApiClient
- type TokenType
Constants ¶
View Source
const ( TokenType_APIKEY = iota TokenType_BEARER = iota )
View Source
const ( KeyCluster = "cluster" KeyPort = "port" DefaultPort = "8081" KeyNamespace = "namespace" AuthToken = "uitoken" KeyUiUser = "uiuser" KeyUiPassword = "uipassword" )
View Source
const LineBreaksKey = "lineBreaksAfterEachLogEntry"
Variables ¶
View Source
var EventRuleGroupsFlag string
View Source
var FlagAppName string
View Source
var FlagBegTime string
View Source
var FlagCluster string
View Source
var FlagDashboardName string
View Source
var FlagDashboardSource string
View Source
var FlagEnablePsmod bool
View Source
var FlagEnableSerial bool
View Source
var FlagEndTime string
View Source
var FlagFile string
View Source
var FlagInputMap string
View Source
var FlagLogsFollow bool
View Source
var FlagLogsPageSize uint32
View Source
var FlagLogsSince string
View Source
var FlagMaxLogLines int
View Source
var FlagNamespace string
View Source
var FlagNetTrace bool
View Source
var FlagOut string
View Source
var FlagParCopies int
View Source
var FlagParPeriod int
View Source
var FlagProcId string
View Source
var FlagRegex bool
View Source
var FlagSubSecond bool
View Source
var FlagTimeFormat string
Functions ¶
func CheckMesgErr ¶
func GetClusterUrl ¶
func GetClusterUrl() string
func GetDefaultNamespace ¶
func GetDefaultNamespace() string
func GetEndpointWithProtocol ¶
func GetPageSize ¶
func GetPageSize() uint32
func GetStartTime ¶
func GetTimeAsString ¶
func HandleError ¶
func HandleError(err error)
func HandleError2 ¶
func InitApiClient ¶
func NeedsLineBreak ¶
func NeedsLineBreak() bool
func PreRunWithNs ¶
func PrintResponse ¶
func PrintResponse(data interface{}) bool
func PrintResult ¶
func PrintTable ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.