httpendpoint

package
v1.12.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLocalEndpoint

func LoadLocalEndpoint(log logger.Logger, runtimeID string, paths ...string) []*httpEndpointV1alpha1.HTTPEndpoint

LoadLocalEndpoint loads endpoint configurations from local folders.

Types

type EndpointsLoader

type EndpointsLoader interface {
	LoadHTTPEndpoints() ([]httpEndpointsV1alpha1.HTTPEndpoint, error)
}

EndpointsLoader is an interface for returning Dapr HTTP endpoints.

type HTTPEndpointHandler

type HTTPEndpointHandler interface {
	OnHTTPEndpointUpdated(endpoint httpEndpointsV1alpha1.HTTPEndpoint)
}

HTTPEndpointHandler is an interface for reacting on HTTP endpoint changes.

type KubernetesHTTPEndpoints

type KubernetesHTTPEndpoints struct {
	// contains filtered or unexported fields
}

KubernetesHTTPEndpoints loads http endpoints in a kubernetes environment.

func NewKubernetesHTTPEndpoints

func NewKubernetesHTTPEndpoints(configuration config.KubernetesConfig, namespace string, operatorClient operatorv1pb.OperatorClient, podName string) *KubernetesHTTPEndpoints

NewKubernetesHTTPEndpoints returns a new kubernetes loader.

func (*KubernetesHTTPEndpoints) LoadHTTPEndpoints

LoadHTTPEndpoints returns HTTP endpoints from a given control plane address.

type LocalHTTPEndpoints

type LocalHTTPEndpoints struct {
	// contains filtered or unexported fields
}

LocalHTTPEndpoints loads http endpoints from a given directory.

func NewLocalHTTPEndpoints

func NewLocalHTTPEndpoints(resourcesPaths ...string) *LocalHTTPEndpoints

NewLocalHTTPEndpoints returns a new LocalHTTPEndpoint.

func (*LocalHTTPEndpoints) LoadHTTPEndpoints

func (s *LocalHTTPEndpoints) LoadHTTPEndpoints() ([]httpEndpointsV1alpha1.HTTPEndpoint, error)

LocalHTTPEndpoints loads dapr http endpoints from a given directory.

type ManifestLoader

type ManifestLoader[T kubernetesManifest] interface {
	// Load loads all manifests.
	Load() ([]T, error)
}

ManifestLoader loads manifest-like files.

Jump to

Keyboard shortcuts

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