cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(Version string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ConnectivityProblemsRequest

type ConnectivityProblemsRequest struct {
	Url            string   `json:"url"`
	EdgeLocationId string   `json:"edgeLocationId"`
	SpoofEdgeIp    string   `json:"spoofEdgeIp,omitempty"`
	ClientIp       string   `json:"clientIp,omitempty"`
	RequestHeaders []string `json:"requestHeaders,omitempty"`
	IpVersion      string   `json:"ipVersion,omitempty"`
	PacketType     string   `json:"packetType,omitempty"`
	Port           int      `json:"port,omitempty"`
}

type ConnectivityProblemsResponse

type ConnectivityProblemsResponse struct {
	ExecutionStatus string `json:"executionStatus"`
	RetryAfter      int    `json:"retryAfter"`
	Link            string `json:"link"`
}

type CreateGroup

type CreateGroup struct {
	URL       string `json:"url"`
	GroupName string `json:"groupName"`
}

type CurlResults

type CurlResults struct {
	HttpStatusCode  int               `json:"httpStatusCode"`
	ResponseHeaders map[string]string `json:"responseHeaders"`
	ResponseBody    string            `json:"responseBody"`
}

type DebugUrl

type DebugUrl struct {
	DNSinformation  []string            `json:"dnsInformation"`
	HTTPResponse    []map[string]string `json:"httpResponse"`
	Logs            []Log               `json:"logs"`
	ResponseHeaders []string            `json:"responseHeaders"`
}

type DebugUrlJson

type DebugUrlJson struct {
	Url          string    `json:"url"`
	EdgeIP       string    `json:"edgeIP"`
	Headers      []string  `json:"headers"`
	ReportedTime string    `json:"reportedTime"`
	DebugUrl     *DebugUrl `json:"urlDebug"`
}

type DiagnosticLinkResponse

type DiagnosticLinkResponse struct {
	GroupName      string `json:"groupName"`
	Url            string `json:"url"`
	ReportedTime   string `json:"reportedTime"`
	DiagnosticLink string `json:"diagnosticLink"`
}

type DiagnosticRecord

type DiagnosticRecord struct {
	EndUserDataId     string         `json:"endUserDataId"`
	Cipher            string         `json:"cipher"`
	Cookie            bool           `json:"cookie"`
	Protocol          string         `json:"protocol"`
	UserAgent         string         `json:"userAgent"`
	CreatedDate       string         `json:"createdDate"`
	UniqueId          int            `json:"uniqueId"`
	UserKey           string         `json:"userKey"`
	ClientDnsIpv6     *IPinfoRecord  `json:"clientDnsIpv6"`
	EdgeIPs           []IPinfoRecord `json:"edgeIps"`
	ClientIPv4        *IPinfoRecord  `json:"clientIpv4"`
	ClientIPv6        *IPinfoRecord  `json:"clientIpv6"`
	ClientDnsIpv4     *IPinfoRecord  `json:"clientDnsIpv4"`
	PreferredClientIP *IPinfoRecord  `json:"preferredClientIp"`
}

type DigInfo

type DigInfo struct {
	HostName         string      `json:"hostName"`
	QueryType        string      `json:"queryType"`
	AnswerSection    []DnsRecord `json:"answerSection"`
	AuthoritySection []DnsRecord `json:"authoritySection"`
	Result           string      `json:"result"`
}

type DigInfoJson

type DigInfoJson struct {
	HostName              string   `json:"hostName"`
	IpAddressOrLocationId string   `json:"ipAdderssOrLocationId"`
	QueryType             string   `json:"queryType"`
	ReportedTime          string   `json:"reportedTime"`
	DigInfo               *DigInfo `json:"digInfo"`
}

type DnsRecord

type DnsRecord struct {
	Domain          string `json:"domain"`
	Ttl             int    `json:"ttl"`
	RecordClass     string `json:"recordClass"`
	RecordType      string `json:"recordType"`
	PreferenceValue string `json:"preferenceValue"`
	Value           string `json:"value"`
}

type EdgeIPinfo

type EdgeIPinfo struct {
	EdgeIP       string `json:"edgeIp"`
	EdgeLogsLink string `json:"edgeLogsLink"`
	ErrorCode    string `json:"errorCode"`
	Hits         int    `json:"hits"`
	HTTPstatus   int    `json:"httpStatus"`
	ObjStatus    string `json:"objStatus"`
	Region       int    `json:"region"`
}
type EndUserDiagnosticLink struct {
	DiagnosticLinkID string   `json:"diagnosticLinkId"`
	GroupName        string   `json:"groupName"`
	CaseIds          []string `json:"caseIds"`
	URL              string   `json:"url"`
	CreatedDate      string   `json:"createdDate"`
	DiagnosticLink   string   `json:"diagnosticLink"`
	Status           string   `json:"status"`
	RecordCount      int      `json:"recordCount"`
	DiagLinkCode     string   `json:"diagLinkCode"`
}

type EndUserDiagnosticLinkJson

type EndUserDiagnosticLinkJson struct {
	ReportedTime           string                  `json:"reportedTime"`
	EndUserDiagnosticLinks []EndUserDiagnosticLink `json:"endUserDiagnosticLinks"`
}

type Estats

type Estats struct {
	CpCode                          int                      `json:"cpCode"`
	EdgeErrors                      int                      `json:"edgeErrors"`
	EdgeFailurePercentage           float32                  `json:"edgeFailurePercentage"`
	EdgeHits                        int                      `json:"edgeHits"`
	EdgeStatusCodeDistribution      []StatusCodeDistribution `json:"edgeStatusCodeDistribution"`
	OriginErrors                    int                      `json:"originError"`
	OriginFailurePercentage         float32                  `json:"originFailuerPercentage"`
	OriginHits                      int                      `json:"originHits"`
	OriginStatusCodeDistribution    []StatusCodeDistribution `json:"originStatusCodeDistribution"`
	TopEdgeIPsWithError             []EdgeIPinfo             `json:"topEdgeIpsWithError"`
	TopEdgeIPsWithSuccess           []EdgeIPinfo             `json:"topEdgeIpsWithSuccess"`
	TopEdgeIPsWithErrorFromOrigin   []EdgeIPinfo             `json:"topEdgeIpsWithErrorFromOrigin"`
	TopEdgeIPsWithSuccessFromOrigin []EdgeIPinfo             `json:"topEdgeIpsWithSuccessFromOrigin"`
}

type EstatsJson

type EstatsJson struct {
	UrlorCpCode  string  `json:"urlOrCpCode"`
	ReportedTime string  `json:"reportedTime"`
	Estats       *Estats `json:"eStats"`
}

type GeoLocation

type GeoLocation struct {
	AreaCode    string  `json:"areaCode"`
	AsNum       string  `json:"asNum"`
	City        string  `json:"city"`
	ClientIP    string  `json:"clientIp"`
	Continent   string  `json:"continent"`
	CountryCode string  `json:"countryCode"`
	County      string  `json:"county"`
	DMA         *int    `json:"dma"`
	FIPS        string  `json:"fips"`
	Latitude    float32 `json:"latitude"`
	Longitude   float32 `json:"longitude"`
	MSA         *int    `json:"msa"`
	Network     string  `json:"network"`
	NetworkType string  `json:"networkType"`
	PMSA        *int    `json:"pmsa"`
	Proxy       string  `json:"proxy"`
	RegionCode  string  `json:"regionCode"`
	Throughput  string  `json:"throughput"`
	TimeZone    string  `json:"timeZone"`
	ZipCode     string  `json:"zipCode"`
}

type GeoLocationJson

type GeoLocationJson struct {
	IpAddress    string       `json:"ipAddress"`
	ReportedTime string       `json:"reportedTime"`
	GeoLocation  *GeoLocation `json:"geoLocation"`
}

type GhostLocationsList

type GhostLocationsList struct {
	Locations []map[string]string `json:"locations"`
}

type GlobalFlags

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

type Hop

type Hop struct {
	Avg    float32 `json:"avg"`
	Best   float32 `json:"best"`
	Host   string  `json:"host"`
	Last   float32 `json:"last"`
	Loss   float32 `json:"loss"`
	Number int     `json:"number"`
	Sent   int     `json:"sent"`
	StdDev float32 `json:"stDev"`
	Worst  float32 `json:"worst"`
}

type IPinfoRecord

type IPinfoRecord struct {
	ID              string            `json:"id"`
	IP              string            `json:"ip"`
	IPtype          string            `json:"IPtype"`
	AssociatedDnsIp string            `json:"associatedDnsIp"`
	Ecs             string            `json:"ecs"`
	Location        map[string]string `json:"location"`
}

type Log

type Log struct {
	Description string                 `json:"description"`
	Fields      map[string]interface{} `json:"fields"`
}

type LogLines

type LogLines struct {
	Headers string   `json:"headers"`
	Logs    []string `json:"logs"`
}

type LogLinesJson

type LogLinesJson struct {
	EdgeServerIp string `json:"edgeServerIp"`
	EndDate      string `json:"endDate"`
	EndTime      string `json:"endTime"`

	Duration       int       `json:"duration"`
	MaxLines       int       `json:"maxLines"`
	ClientRequest  bool      `json:"clientRequest"`
	ForwardRequest bool      `json:"forwardRequest"`
	ReportedTime   string    `json:"reportedTime"`
	LogLines       *LogLines `json:"logLines"`
	// contains filtered or unexported fields
}

type MtrData

type MtrData struct {
	Source      string  `json:"source"`
	Destination string  `json:"destination"`
	StartTime   string  `json:"startTime"`
	Host        string  `json:"host"`
	PacketLoss  float32 `json:"packetLoss"`
	AvgLatency  float32 `json:"avgLatency"`
	Analysis    string  `json:"analysis"`
	Hops        []Hop   `json:"hops"`
	Result      string  `json:"result"`
}

type MtrDataJson

type MtrDataJson struct {
	DestinationDomain     string   `json:"destinationDomain"`
	IpAddressOrLocationId string   `json:"isAddressOrLocationId"`
	ResolveDns            bool     `json:"resolveDns"`
	ReportedTime          string   `json:"reportedTime"`
	Mtr                   *MtrData `json:"mtr"`
}

type ResponseError

type ResponseError struct {
	Type   string              `json:"type"`
	Title  string              `json:"title"`
	Status int                 `json:"status"`
	Detail string              `json:"detail"`
	Errors []map[string]string `json:"errors"`
}

type StatusCodeDistribution

type StatusCodeDistribution struct {
	Hits       int     `json:"hits"`
	HTTPStatus int     `json:"httpStatus"`
	Percentage float32 `json:"percentage"`
}

type TranslateURLJson

type TranslateURLJson struct {
	Url          string         `json:"url"`
	ReportedTime string         `json:"reportedTime"`
	TranlatedURL *TranslatedURL `json:"translatedUrl"`
}

type TranslatedError

type TranslatedError struct {
	Url              string `json:"url"`
	HttpResponseCode int    `json:"httpResponseCode"`
	ClientIP         string `json:"clientIp"`
	ConnectingIP     string `json:"connectingIp"`
	CpCode           string `json:"cpCode"`
	EpochTime        int    `json:"epochTime"`
	Logs             []Log  `json:"logs"`
	OriginHostname   string `json:"originHostname"`
	OriginIP         string `json:"originIp"`
	ReasonForFailure string `json:"reasonForFailure"`
	RequestMethod    string `json:"requestMethod"`
	ServerIP         string `json:"serverIp"`
	Timestamp        string `json:"timestamp"`
	UserAgent        string `json:"userAgent"`
	WafDetails       string `json:wafDetails`
}

type TranslatedErrorJosn

type TranslatedErrorJosn struct {
	ErrorCode       string           `json:"errorCode"`
	ReportedTime    string           `json:"reportedTime"`
	TranslatedError *TranslatedError `json:"translatedError"`
}

type TranslatedURL

type TranslatedURL struct {
	TypeCode     string `json:"typeCode"`
	OriginServer string `json:"originServer"`
	CpCode       int    `json:"cpCode"`
	SerialNumber int    `json:"serialNumber"`
	TTL          string `json:"ttl"`
}

type UserDiagnosticData

type UserDiagnosticData struct {
	GroupName         string             `json:"groupName"`
	CreatedDate       string             `json:"createdDate"`
	URL               string             `json:"url"`
	DiagnosticLink    string             `json:"diagnosticLink"`
	CaseIds           []string           `json:"caseIds"`
	Status            string             `json:"status"`
	DiagnosticRecords []DiagnosticRecord `json:"diagnosticRecords"`
}

type UserDiagnosticDataJson

type UserDiagnosticDataJson struct {
	LinkId             string             `json:"linkId"`
	ReportedTime       string             `json:"reportedTime"`
	UserDiagnosticData UserDiagnosticData `json:"endUserDiagnosticData"`
}

type VerifyIpJson

type VerifyIpJson struct {
	IpAddress    string `json:"ipAddress"`
	ReportedTime string `json:"reportedTime"`
	IsCdnIp      bool   `json:"isCdnIp"`
}

type Wrapper

type Wrapper struct {
	DigInfo                *DigInfo                `json:"digInfo"`
	Mtr                    *MtrData                `json:"mtr"`
	GeoLocation            *GeoLocation            `json:"geoLocation"`
	TranlatedURL           *TranslatedURL          `json:"translatedUrl"`
	TranslatedError        *TranslatedError        `json:"translatedError"`
	Curl                   *CurlResults            `json:"curlResults"`
	URLDebug               *DebugUrl               `json:"urlDebug"`
	Estats                 *Estats                 `json:"eStats"`
	LogLines               *LogLines               `json:"logLines"`
	EndUserDiagnosticLinks []EndUserDiagnosticLink `json:"endUserDiagnosticLinks"`
}

Jump to

Keyboard shortcuts

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