Documentation ¶
Index ¶
- func EdgeGroupRelatedEndpoints(edgeGroup *portainer.EdgeGroup, endpoints []portainer.Endpoint, ...) []portainer.EndpointID
- func EdgeGroupSet(edgeGroupIDs []portainer.EdgeGroupID) map[portainer.EdgeGroupID]bool
- func EdgeStackRelatedEndpoints(edgeGroupIDs []portainer.EdgeGroupID, endpoints []portainer.Endpoint, ...) ([]portainer.EndpointID, error)
- func EndpointRelatedEdgeStacks(endpoint *portainer.Endpoint, endpointGroup *portainer.EndpointGroup, ...) []portainer.EdgeStackID
- func GetEndpointsFromEdgeGroups(edgeGroupIDs []portainer.EdgeGroupID, datastore dataservices.DataStore) ([]portainer.EndpointID, error)
- func LoadEdgeJobs(dataStore dataservices.DataStore, ...) error
- func ParseHostForEdge(portainerURL string) (string, error)
- type EndpointRelationsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EdgeGroupRelatedEndpoints ¶
func EdgeGroupRelatedEndpoints(edgeGroup *portainer.EdgeGroup, endpoints []portainer.Endpoint, endpointGroups []portainer.EndpointGroup) []portainer.EndpointID
EdgeGroupRelatedEndpoints returns a list of environments(endpoints) related to this Edge group
func EdgeGroupSet ¶
func EdgeGroupSet(edgeGroupIDs []portainer.EdgeGroupID) map[portainer.EdgeGroupID]bool
func EdgeStackRelatedEndpoints ¶
func EdgeStackRelatedEndpoints(edgeGroupIDs []portainer.EdgeGroupID, endpoints []portainer.Endpoint, endpointGroups []portainer.EndpointGroup, edgeGroups []portainer.EdgeGroup) ([]portainer.EndpointID, error)
EdgeStackRelatedEndpoints returns a list of environments(endpoints) related to this Edge stack
func EndpointRelatedEdgeStacks ¶
func EndpointRelatedEdgeStacks(endpoint *portainer.Endpoint, endpointGroup *portainer.EndpointGroup, edgeGroups []portainer.EdgeGroup, edgeStacks []portainer.EdgeStack) []portainer.EdgeStackID
EndpointRelatedEdgeStacks returns a list of Edge stacks related to this Environment(Endpoint)
func GetEndpointsFromEdgeGroups ¶
func GetEndpointsFromEdgeGroups(edgeGroupIDs []portainer.EdgeGroupID, datastore dataservices.DataStore) ([]portainer.EndpointID, error)
func LoadEdgeJobs ¶
func LoadEdgeJobs(dataStore dataservices.DataStore, reverseTunnelService portainer.ReverseTunnelService) error
LoadEdgeJobs registers all edge jobs inside corresponding environment(endpoint) tunnel
func ParseHostForEdge ¶
ParseHostForEdge returns the hostname of the given URL, will fail if host is localhost
Types ¶
type EndpointRelationsConfig ¶
type EndpointRelationsConfig struct { Endpoints []portainer.Endpoint EndpointGroups []portainer.EndpointGroup EdgeGroups []portainer.EdgeGroup }
func FetchEndpointRelationsConfig ¶
func FetchEndpointRelationsConfig(dataStore dataservices.DataStore) (*EndpointRelationsConfig, error)
FetchEndpointRelationsConfig fetches config needed for Edge Stack related endpoints
Click to show internal directories.
Click to hide internal directories.