Documentation ¶
Index ¶
- func BaseProto(e *configurations.Endpoint) *basev1.Endpoint
- 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(_ 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 FromProtoEndpoints(es ...*basev1.Endpoint) ([]*configurations.Endpoint, error)
- func HasRest(_ 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 ¶ added in v0.0.51
func FromProtoEndpoint ¶
func FromProtoEndpoint(e *basev1.Endpoint) (*configurations.Endpoint, error)
func FromProtoEndpoints ¶ added in v0.0.51
func FromProtoEndpoints(es ...*basev1.Endpoint) ([]*configurations.Endpoint, error)
func NewGrpcAPI ¶ added in v0.0.51
func NewRestAPI ¶ added in v0.0.51
func NewRestAPI(endpoint *configurations.Endpoint) (*basev1.Endpoint, error)
func NewRestAPIFromOpenAPI ¶ added in v0.0.51
func WhichAPIFromEndpoint ¶ added in v0.0.51
Types ¶
type Forwarding ¶
type Forwarding interface {
Forward(r *configurations.RestRoute) (*configurations.RestRoute, error)
}
type NilAPIError ¶ added in v0.0.51
type NilAPIError struct {
// contains filtered or unexported fields
}
func (*NilAPIError) Error ¶ added in v0.0.51
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 ¶ added in v0.0.51
type UnknownAPIError struct {
// contains filtered or unexported fields
}
func (*UnknownAPIError) Error ¶ added in v0.0.51
func (err *UnknownAPIError) Error() string
Click to show internal directories.
Click to hide internal directories.