Help us shape the future of Go! Take the 2026 Go Developer Survey

endpoints

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProtoApi

func FromProtoApi(api *corev1.API) string

func FromProtoEndpoint

func FromProtoEndpoint(e *corev1.Endpoint) (*configurations.Endpoint, error)

func Light

func Light(e *corev1.Endpoint) *corev1.Endpoint

func LightApi

func LightApi(api *corev1.API) *corev1.API

func NewGrpcApi

func NewGrpcApi(endpoint *configurations.Endpoint, filename string) (*corev1.Endpoint, error)

func NewRestApi

func NewRestApi(endpoint *configurations.Endpoint) (*corev1.Endpoint, error)

func NewRestApiFromOpenAPI

func NewRestApiFromOpenAPI(ctx context.Context, endpoint *configurations.Endpoint, filename string) (*corev1.Endpoint, error)

func StandardPort

func StandardPort(api *corev1.API) (int, error)

func WhichApi

func WhichApi(api *corev1.API) (string, error)

func WhichApiFromEndpoint

func WhichApiFromEndpoint(endpoint *corev1.Endpoint) (string, error)

func WithApi

func WithApi(endpoint *configurations.Endpoint, source ApiSource) (*corev1.Endpoint, error)

Types

type ApiSource

type ApiSource interface {
	Proto() (*corev1.API, error)
}

type Forwarding

type Forwarding interface {
	Forward(r *configurations.RestRoute) (*configurations.RestRoute, error)
}

type GrpcApi

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

func (*GrpcApi) Proto

func (grpc *GrpcApi) Proto() (*corev1.API, error)

type NilApiError

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

func (*NilApiError) Error

func (err *NilApiError) Error() string

type NilEndpointError

type NilEndpointError struct{}

func (NilEndpointError) Error

func (n NilEndpointError) Error() string

type RestApi

type RestApi struct {
}

func (*RestApi) Proto

func (http *RestApi) Proto() (*corev1.API, error)

type ServiceForwarding

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

func (ServiceForwarding) Forward

type Tcp

type Tcp struct{}

func NewTcp

func NewTcp() (*Tcp, error)

func (*Tcp) Proto

func (*Tcp) Proto() (*corev1.API, error)

type UnknownApiError

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

func (*UnknownApiError) Error

func (err *UnknownApiError) Error() string

Jump to

Keyboard shortcuts

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