endpoint

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package endpoint implements different endpoint services required by the edge-cluster service

Package endpoint implements different endpoint services required by the edge-cluster service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointCreatorContract

type EndpointCreatorContract interface {
	// CreateEdgeClusterEndpoint creates Create Edge Cluster endpoint
	// Returns the Create Edge Cluster endpoint
	CreateEdgeClusterEndpoint() endpoint.Endpoint

	// ReadEdgeClusterEndpoint creates Read Edge Cluster endpoint
	// Returns the Read Edge Cluster endpoint
	ReadEdgeClusterEndpoint() endpoint.Endpoint

	// UpdateEdgeClusterEndpoint creates Update Edge Cluster endpoint
	// Returns the Update Edge Cluster endpoint
	UpdateEdgeClusterEndpoint() endpoint.Endpoint

	// DeleteEdgeClusterEndpoint creates Delete Edge Cluster endpoint
	// Returns the Delete Edge Cluster endpoint
	DeleteEdgeClusterEndpoint() endpoint.Endpoint

	// ListEdgeClustersEndpoint creates ListEdgeClusters Edge Cluster endpoint
	// Returns the ListEdgeClusters Edge Cluster endpoint
	ListEdgeClustersEndpoint() endpoint.Endpoint

	// ListEdgeClusterNodesEndpoint creates List Edge Cluster Nodes endpoint
	// Returns the List Edge Cluster Nodes endpoint
	ListEdgeClusterNodesEndpoint() endpoint.Endpoint

	// ListEdgeClusterPodsEndpoint creates List Edge Cluster Pods endpoint
	// Returns the List Edge Cluster Pods endpoint
	ListEdgeClusterPodsEndpoint() endpoint.Endpoint

	// ListEdgeClusterServicesEndpoint creates List Edge Cluster Services endpoint
	// Returns the List Edge Cluster Services endpoint
	ListEdgeClusterServicesEndpoint() endpoint.Endpoint
}

EndpointCreatorContract declares the contract that creates endpoints to create new edgeCluster, read, update and delete existing edgeClusters.

func NewEndpointCreatorService

func NewEndpointCreatorService(
	businessService business.BusinessContract) (EndpointCreatorContract, error)

NewEndpointCreatorService creates new instance of the EndpointCreatorService, setting up all dependencies and returns the instance businessService: Mandatory. Reference to the instance of the Edge Cluster service Returns the new service or error if something goes wrong

Directories

Path Synopsis
Package mock_endpoint is a generated GoMock package.
Package mock_endpoint is a generated GoMock package.

Jump to

Keyboard shortcuts

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