MCPcopy
hub / github.com/portainer/portainer / Endpoint

Struct Endpoint

api/portainer.go:439–516  ·  view source on GitHub ↗

Environment(Endpoint) represents a Docker environment(endpoint) with all the info required to connect to it

Source from the content-addressed store, hash-verified

437 // Environment(Endpoint) represents a Docker environment(endpoint) with all the info required
438 // to connect to it
439 Endpoint struct {
440 // Environment(Endpoint) Identifier
441 ID EndpointID `json:"Id" example:"1"`
442 // Environment(Endpoint) name
443 Name string `json:"Name" example:"my-environment"`
444 // Environment(Endpoint) environment(endpoint) type. 1 for a Docker environment(endpoint), 2 for an agent on Docker environment(endpoint) or 3 for an Azure environment(endpoint).
445 Type EndpointType `json:"Type" example:"1"`
446 // ContainerEngine represents the container engine type. This can be 'docker' or 'podman' when interacting directly with these environmentes, otherwise '' for kubernetes environments.
447 ContainerEngine string `json:"ContainerEngine" example:"docker"`
448 // URL or IP address of the Docker host associated to this environment(endpoint)
449 URL string `json:"URL" example:"docker.mydomain.tld:2375"`
450 // Environment(Endpoint) group identifier
451 GroupID EndpointGroupID `json:"GroupId" example:"1"`
452 // URL or IP address where exposed containers will be reachable
453 PublicURL string `json:"PublicURL" example:"docker.mydomain.tld:2375"`
454 Gpus []Pair `json:"Gpus"`
455 TLSConfig TLSConfiguration `json:"TLSConfig"`
456 AzureCredentials AzureCredentials `json:"AzureCredentials,omitzero"`
457 // List of tag identifiers to which this environment(endpoint) is associated
458 TagIDs []TagID `json:"TagIds"`
459 // The status of the environment(endpoint) (1 - up, 2 - down)
460 Status EndpointStatus `json:"Status" example:"1"`
461 // List of snapshots
462 Snapshots []DockerSnapshot `json:"Snapshots"`
463 // List of user identifiers authorized to connect to this environment(endpoint)
464 UserAccessPolicies UserAccessPolicies `json:"UserAccessPolicies"`
465 // List of team identifiers authorized to connect to this environment(endpoint)
466 TeamAccessPolicies TeamAccessPolicies `json:"TeamAccessPolicies"`
467 // The identifier of the edge agent associated with this environment(endpoint)
468 EdgeID string `json:"EdgeID,omitempty"`
469 // The key which is used to map the agent to Portainer
470 EdgeKey string `json:"EdgeKey"`
471 // The check in interval for edge agent (in seconds)
472 EdgeCheckinInterval int `json:"EdgeCheckinInterval" example:"5"`
473 // Associated Kubernetes data
474 Kubernetes KubernetesData `json:"Kubernetes"`
475 // Maximum version of docker-compose
476 ComposeSyntaxMaxVersion string `json:"ComposeSyntaxMaxVersion" example:"3.8"`
477 // Environment(Endpoint) specific security settings
478 SecuritySettings EndpointSecuritySettings
479 // The identifier of the AMT Device associated with this environment(endpoint)
480 AMTDeviceGUID string `json:"AMTDeviceGUID,omitempty" example:"4c4c4544-004b-3910-8037-b6c04f504633"`
481 // LastCheckInDate mark last check-in date on checkin
482 LastCheckInDate int64
483 // Heartbeat indicates the heartbeat status of an edge environment
484 Heartbeat bool `json:"Heartbeat" example:"true"`
485
486 // Whether the device has been trusted or not by the user
487 UserTrusted bool `json:"UserTrusted,omitempty"`
488
489 // Whether we need to run any "post init migrations".
490 PostInitMigrations EndpointPostInitMigrations `json:"PostInitMigrations"`
491
492 Edge EnvironmentEdgeSettings
493
494 Agent struct {
495 Version string `example:"1.0.0"`
496 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected