Documentation ¶
Index ¶
- Variables
- func Backend(name string, port intstr.IntOrString) *extensions.IngressBackend
- func DecodeIngress(data []byte) (*extensions.Ingress, error)
- func NewBackendConfig(name types.NamespacedName, spec backendconfig.BackendConfigSpec) *backendconfig.BackendConfig
- func NewIngress(name types.NamespacedName, spec extensions.IngressSpec) *extensions.Ingress
- func NewService(name types.NamespacedName, spec api_v1.ServiceSpec) *api_v1.Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BackendPort = intstr.IntOrString{Type: intstr.Int, IntVal: 80} DefaultBeSvcPort = utils.ServicePort{ ID: utils.ServicePortID{Service: types.NamespacedName{Namespace: "system", Name: "default"}, Port: BackendPort}, NodePort: 30000, Protocol: annotations.ProtocolHTTP, } )
Functions ¶
func Backend ¶
func Backend(name string, port intstr.IntOrString) *extensions.IngressBackend
Backend returns an IngressBackend with the given service name/port.
func DecodeIngress ¶
func DecodeIngress(data []byte) (*extensions.Ingress, error)
DecodeIngress deserializes an Ingress object.
func NewBackendConfig ¶
func NewBackendConfig(name types.NamespacedName, spec backendconfig.BackendConfigSpec) *backendconfig.BackendConfig
NewBackendConfig returns a BackendConfig with the given spec.
func NewIngress ¶
func NewIngress(name types.NamespacedName, spec extensions.IngressSpec) *extensions.Ingress
NewIngress returns an Ingress with the given spec.
func NewService ¶
func NewService(name types.NamespacedName, spec api_v1.ServiceSpec) *api_v1.Service
NewService returns a Service with the given spec.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.