Documentation ¶
Index ¶
- func Condensed(es []*basev1.Endpoint) []string
- func CondensedOutput(group *basev1.EndpointGroup) []string
- func Destination(e *basev1.Endpoint) string
- func DetectNewRoutes(ctx context.Context, known []*configurations.RestRoute, ...) []*configurations.RestRoute
- func FindEndpointForRoute(ctx context.Context, endpoints []*basev1.Endpoint, ...) *basev1.Endpoint
- func FlattenEndpoints(ctx context.Context, group *basev1.EndpointGroup) []*basev1.Endpoint
- func FlattenRestRoutes(ctx context.Context, group *basev1.EndpointGroup) []*basev1.RestRoute
- func FromProtoApi(api *basev1.API) string
- func FromProtoEndpoint(e *basev1.Endpoint) (*configurations.Endpoint, error)
- func HasRest(ctx context.Context, api *basev1.API) *basev1.RestAPI
- func Light(e *basev1.Endpoint) *basev1.Endpoint
- func LightApi(api *basev1.API) *basev1.API
- func NewGrpcApi(endpoint *configurations.Endpoint, filename string) (*basev1.Endpoint, error)
- func NewRestApi(endpoint *configurations.Endpoint) (*basev1.Endpoint, error)
- func NewRestApiFromOpenAPI(ctx context.Context, endpoint *configurations.Endpoint, filename string) (*basev1.Endpoint, error)
- func StandardPort(api *basev1.API) (int, error)
- func WhichApi(api *basev1.API) (string, error)
- func WhichApiFromEndpoint(endpoint *basev1.Endpoint) (string, error)
- func WithApi(endpoint *configurations.Endpoint, source ApiSource) (*basev1.Endpoint, error)
- type ApiSource
- type Forwarding
- type GrpcApi
- type NilApiError
- type NilEndpointError
- type RestApi
- type ServiceForwarding
- type Tcp
- type UnknownApiError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CondensedOutput ¶ added in v0.0.31
func CondensedOutput(group *basev1.EndpointGroup) []string
func Destination ¶ added in v0.0.31
func DetectNewRoutes ¶ added in v0.0.28
func DetectNewRoutes(ctx context.Context, known []*configurations.RestRoute, group *basev1.EndpointGroup) []*configurations.RestRoute
func FindEndpointForRoute ¶ added in v0.0.32
func FlattenEndpoints ¶ added in v0.0.28
func FlattenRestRoutes ¶ added in v0.0.28
func FromProtoApi ¶
func FromProtoEndpoint ¶
func FromProtoEndpoint(e *basev1.Endpoint) (*configurations.Endpoint, error)
func NewGrpcApi ¶
func NewRestApi ¶
func NewRestApi(endpoint *configurations.Endpoint) (*basev1.Endpoint, error)
func NewRestApiFromOpenAPI ¶
Types ¶
type Forwarding ¶
type Forwarding interface {
Forward(r *configurations.RestRoute) (*configurations.RestRoute, 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 ServiceForwarding ¶
type ServiceForwarding struct {
// contains filtered or unexported fields
}
func (ServiceForwarding) Forward ¶
func (s ServiceForwarding) Forward(r *configurations.RestRoute) (*configurations.RestRoute, error)
type UnknownApiError ¶
type UnknownApiError struct {
// contains filtered or unexported fields
}
func (*UnknownApiError) Error ¶
func (err *UnknownApiError) Error() string
Click to show internal directories.
Click to hide internal directories.