Documentation ¶
Index ¶
- Constants
- func Decode(in []byte, out interface{}) errordeprecated
- func DecodeGOB(in []byte, out interface{}) error
- func DecodeJSON(in []byte, out interface{}) error
- func DecodeSnappy(in []byte, out interface{}) error
- func Encode(in interface{}) (out []byte, err error)deprecated
- func EncodeGOB(in interface{}) ([]byte, error)
- func EncodeJSON(in interface{}) ([]byte, error)
- func EncodeSnappy(in interface{}) (out []byte, err error)
- func RegisterGOBTypes()
- type AutomationStatus
- type ContainerResources
- type EntityDeltaKind
- type GroupVersionResourceKind
- type MetricStoreV2Request
- type PacketAuthorizationAnswer
- type PacketAuthorizationFailure
- type PacketAuthorizationQuestion
- type PacketAuthorizationRequest
- type PacketAuthorizationSuccess
- type PacketAutomation
- type PacketAutomationFeedbackRequest
- type PacketAutomationResponse
- type PacketBye
- type PacketEntitiesDeltasRequest
- type PacketEntitiesDeltasResponse
- type PacketEntitiesResyncItem
- type PacketEntitiesResyncRequest
- type PacketEntitiesResyncResponse
- type PacketEntityDelta
- type PacketHello
- type PacketKind
- type PacketLogItem
- type PacketLogLevel
- type PacketLogs
- type PacketMetricsStoreV2Request
- type PacketPing
- type PacketPong
- type PacketRestart
- type ParentController
- type ReplicasStatus
- type RequestLimit
Constants ¶
View Source
const ( ResourceRequirementKindSet = "set" ResourceRequirementKindDefaultsLimitRange = "defaults-limit-range" ResourceRequirementKindDefaultFromLimits = "default-from-limits" )
Variables ¶
This section is empty.
Functions ¶
func DecodeJSON ¶
func DecodeSnappy ¶
func EncodeJSON ¶
func EncodeSnappy ¶
func RegisterGOBTypes ¶
func RegisterGOBTypes()
Types ¶
type AutomationStatus ¶ added in v2.9.0
type AutomationStatus string
const ( AutomationExecuted AutomationStatus = "executed" AutomationFailed AutomationStatus = "failed" AutomationSkipped AutomationStatus = "skipped" )
type ContainerResources ¶
type ContainerResources struct { Requests *RequestLimit `json:"requests,omitempty"` Limits *RequestLimit `json:"limits,omitempty"` }
type EntityDeltaKind ¶
type EntityDeltaKind string
const ( EntityEventTypeUpsert EntityDeltaKind = "UPSERT" EntityEventTypeDelete EntityDeltaKind = "DELETE" )
type GroupVersionResourceKind ¶
type GroupVersionResourceKind struct { schema.GroupVersionResource Kind string `json:"kind"` }
type MetricStoreV2Request ¶
type MetricStoreV2Request struct { Name string `json:"name"` Type string `json:"type"` NodeName string `json:"node_name"` NodeIP string `json:"node_ip"` NamespaceName string `json:"namespace_name"` ControllerName string `json:"controller_name"` ControllerKind string `json:"controller_kind"` ContainerName string `json:"container_name"` Timestamp time.Time `json:"timestamp"` Value int64 `json:"value"` PodName string `json:"pod_name"` AdditionalTags map[string]interface{} `json:"additional_tags"` }
type PacketAuthorizationAnswer ¶
type PacketAuthorizationAnswer struct {
Token []byte `json:"token"`
}
type PacketAuthorizationFailure ¶
type PacketAuthorizationFailure struct{}
type PacketAuthorizationQuestion ¶
type PacketAuthorizationQuestion struct {
Token []byte `json:"token"`
}
type PacketAuthorizationRequest ¶
type PacketAuthorizationRequest struct { AccountID uuid.UUID `json:"account_id"` ClusterID uuid.UUID `json:"cluster_id"` }
type PacketAuthorizationSuccess ¶
type PacketAuthorizationSuccess struct{}
type PacketAutomation ¶ added in v2.9.0
type PacketAutomation struct { ID string `json:"id"` NamespaceName string `json:"namespace_name"` ControllerName string `json:"controller_name"` ControllerKind string `json:"controller_kind"` ContainerName string `json:"container_name"` ContainerResources ContainerResources `json:"container_resources"` }
type PacketAutomationFeedbackRequest ¶ added in v2.9.0
type PacketAutomationFeedbackRequest struct { ID string `json:"id"` NamespaceName string `json:"namespace_name"` ControllerName string `json:"controller_name"` ControllerKind string `json:"controller_kind"` ContainerName string `json:"container_name"` Status AutomationStatus `json:"status"` Message string `json:"message"` }
type PacketAutomationResponse ¶ added in v2.9.0
type PacketEntitiesDeltasRequest ¶
type PacketEntitiesDeltasRequest struct { Items []PacketEntityDelta `json:"items"` Timestamp time.Time `json:"timestamp"` }
type PacketEntitiesDeltasResponse ¶
type PacketEntitiesDeltasResponse struct{}
type PacketEntitiesResyncItem ¶
type PacketEntitiesResyncItem struct { Gvrk GroupVersionResourceKind `json:"gvrk"` Data []*unstructured.Unstructured `json:"data"` }
type PacketEntitiesResyncRequest ¶
type PacketEntitiesResyncRequest struct { Timestamp time.Time `json:"timestamp"` // map of entities kind and entities definitions // it holds other entities not already specified in attributes above Snapshot map[string]PacketEntitiesResyncItem `json:"snapshot"` }
type PacketEntitiesResyncResponse ¶
type PacketEntitiesResyncResponse struct{}
type PacketEntityDelta ¶
type PacketEntityDelta struct { Gvrk GroupVersionResourceKind `json:"gvrk"` DeltaKind EntityDeltaKind `json:"delta_kind"` Data unstructured.Unstructured `json:"data"` Parent *ParentController `json:"parents"` Timestamp time.Time `json:"timestamp"` }
type PacketHello ¶
type PacketHello struct { Major uint `json:"major"` Minor uint `json:"minor"` Build string `json:"build"` StartID string `json:"start_id"` AccountID uuid.UUID `json:"account_id"` ClusterID uuid.UUID `json:"cluster_id"` PacketV2Enabled bool `json:"packet_v2_enabled,omitempty"` ServerVersion string `json:"server_version"` AgentPermissions string `json:"agent_permissions"` }
type PacketKind ¶
type PacketKind string
const ( PacketKindHello PacketKind = "hello" PacketKindAuthorizationRequest PacketKind = "authorization/request" PacketKindAuthorizationAnswer PacketKind = "authorization/answer" PacketKindLogs PacketKind = "logs" PacketKindMetricsStoreV2Request PacketKind = "metrics/store_v2" PacketKindEntitiesDeltasRequest PacketKind = "entities/deltas" PacketKindEntitiesResyncRequest PacketKind = "entities/resync" PacketKindBye PacketKind = "bye" PacketKindAutomation PacketKind = "automation" PacketKindAutomationFeedback PacketKind = "automation/feedback" PacketKindRestart PacketKind = "restart" PacketKindRawStoreRequest PacketKind = "raw/store" PacketKindLogLevel PacketKind = "loglevel" )
const (
PacketKindPing PacketKind = "ping"
)
func (PacketKind) String ¶
func (kind PacketKind) String() string
type PacketLogItem ¶
type PacketLogLevel ¶ added in v2.9.0
type PacketLogLevel struct {
Level string `json:"level"`
}
PacketLogLevel used to change current log level
type PacketLogs ¶
type PacketLogs []PacketLogItem
type PacketMetricsStoreV2Request ¶
type PacketMetricsStoreV2Request []MetricStoreV2Request
type PacketPing ¶
type PacketPong ¶
type PacketRestart ¶
type PacketRestart struct {
Status int `json:"status"`
}
type ParentController ¶
type ParentController struct { Kind string `json:"kind"` Name string `json:"name"` APIVersion string `json:"api_version"` IsWatched bool `json:"is_watched"` Parent *ParentController `json:"parent"` }
type ReplicasStatus ¶
type RequestLimit ¶
Click to show internal directories.
Click to hide internal directories.