Documentation
¶
Overview ¶
Package connection provides the connection model and its methods
Index ¶
Constants ¶
View Source
const (
// Kind is the kind of the connection.
Kind = "Connection"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
ID uuid.UUID `json:"id"`
InstanceUID uuid.UUID `json:"instanceUid"`
Type string `json:"type"`
LastCommunicatedAt time.Time `json:"lastCommunicatedAt"`
Alive bool `json:"alive"`
} // @name Connection
Connection represents a connection to an agent.
type ListResponse ¶ added in v0.1.9
type ListResponse = v1.ListResponse[Connection]
ListResponse represents a list of connections with metadata.
func NewListResponse ¶ added in v0.1.9
func NewListResponse(connections []Connection, metadata v1.ListMeta) *ListResponse
NewListResponse creates a new ListResponse with the given connections and metadata.
Click to show internal directories.
Click to hide internal directories.