Documentation ¶
Index ¶
- Constants
- func GetEndpointFromKubeObjects(c client.Client, obj types.NamespacedName) (endpoint.Endpoint, error)
- func NewEndpoint(namespacedName types.NamespacedName, eType RouteEndpointType, ...) endpoint.Endpoint
- type RouteEndpoint
- func (r *RouteEndpoint) Create(c client.Client) error
- func (r *RouteEndpoint) ExposedPort() int32
- func (r *RouteEndpoint) Hostname() string
- func (r *RouteEndpoint) IsHealthy(c client.Client) (bool, error)
- func (r *RouteEndpoint) Labels() map[string]string
- func (r *RouteEndpoint) NamespacedName() types.NamespacedName
- func (r *RouteEndpoint) Port() int32
- type RouteEndpointType
Constants ¶
View Source
const ( EndpointTypePassthrough = "EndpointTypePassthrough" EndpointTypeInsecureEdge = "EndpointTypeInsecureEdge" )
Variables ¶
This section is empty.
Functions ¶
func GetEndpointFromKubeObjects ¶
func GetEndpointFromKubeObjects(c client.Client, obj types.NamespacedName) (endpoint.Endpoint, error)
GetEndpointFromKubeObjects check if the required Route is created and healthy. It populates the fields for the Endpoint needed for transfer and transport objects.
func NewEndpoint ¶
func NewEndpoint(namespacedName types.NamespacedName, eType RouteEndpointType, labels map[string]string, subdomain string) endpoint.Endpoint
Types ¶
type RouteEndpoint ¶
type RouteEndpoint struct {
// contains filtered or unexported fields
}
func (*RouteEndpoint) ExposedPort ¶
func (r *RouteEndpoint) ExposedPort() int32
func (*RouteEndpoint) Hostname ¶
func (r *RouteEndpoint) Hostname() string
func (*RouteEndpoint) Labels ¶
func (r *RouteEndpoint) Labels() map[string]string
func (*RouteEndpoint) NamespacedName ¶
func (r *RouteEndpoint) NamespacedName() types.NamespacedName
func (*RouteEndpoint) Port ¶
func (r *RouteEndpoint) Port() int32
type RouteEndpointType ¶
type RouteEndpointType string
Click to show internal directories.
Click to hide internal directories.