v2

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Version    string    `json:"version"`
	Time       time.Time `json:"time"`
	ClientUUID string    `json:"client_uuid"`
	// ClientLocation is the location data fetched from client http request ip using ip-api in telemetry collector.
	ClientLocation report.Location `json:"client_location,omitempty"`
	// MasterLocation is the location data fetched from kkp master cluster node ip using ip-api in telemetry collector.
	MasterLocation report.Location   `json:"master_location,omitempty"`
	Records        []json.RawMessage `json:"records,omitempty"`
}

func (*Report) ListRecords

func (r *Report) ListRecords() []json.RawMessage

func (*Report) SetClientLocation

func (r *Report) SetClientLocation(location report.Location)

func (*Report) SetMasterLocation

func (r *Report) SetMasterLocation(location report.Location)

func (*Report) String

func (r *Report) String() string

Jump to

Keyboard shortcuts

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