types

package
v1.11.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtendResource

type ExtendResource struct {
	Name     string            `json:"name,omitempty"`
	Type     string            `json:"type,omitempty"`
	Capacity resource.Quantity `json:"capacity,omitempty"`
}

ExtendResource is extended resource details that come from edge

type HTTPRequest added in v1.7.0

type HTTPRequest struct {
	Header http.Header `json:"header"`
	Body   []byte      `json:"body"`
	Method string      `json:"method"`
	URL    string      `json:"url"`
}

HTTPRequest is used structure used to unmarshal message content from cloud

type HTTPResponse added in v1.7.0

type HTTPResponse struct {
	Header     http.Header `json:"header"`
	StatusCode int         `json:"status_code"`
	Body       []byte      `json:"body"`
}

HTTPResponse is HTTP request's response structure used to send response to cloud

type NodeStatusRequest

type NodeStatusRequest struct {
	UID             types.UID
	Status          v1.NodeStatus
	ExtendResources map[v1.ResourceName][]ExtendResource
}

NodeStatusRequest is Message.Content which come from edge

type PodStatusRequest

type PodStatusRequest struct {
	UID    types.UID
	Name   string
	Status v1.PodStatus
}

PodStatusRequest is Message.Content which come from edge

Jump to

Keyboard shortcuts

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