edge

package
v0.0.0-...-270f78c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Zlib Imports: 9 Imported by: 0

Documentation

Index

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

func ParseHostForEdge(portainerURL string) (string, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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