Documentation ¶
Index ¶
- type Builder
- func (builder *Builder) Create() (*Builder, error)
- func (builder *Builder) Delete() (*Builder, error)
- func (builder *Builder) Exists() bool
- func (builder *Builder) Get() (*routev1.Route, error)
- func (builder *Builder) WithTargetPortName(portName string) *Builder
- func (builder *Builder) WithTargetPortNumber(port int32) *Builder
- func (builder *Builder) WithWildCardPolicy(wildcardPolicy string) *Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { // Route definition. Used to create a route object Definition *routev1.Route // Created route object Object *routev1.Route // contains filtered or unexported fields }
Builder provides struct for route object containing connection to the cluster and the route definitions.
func NewBuilder ¶
NewBuilder creates a new instance of Builder.
func (*Builder) Create ¶
Create makes a route according to the route definition and stores the created object in the route builder.
func (*Builder) WithTargetPortName ¶
WithTargetPortName adds a target port to the route by name.
func (*Builder) WithTargetPortNumber ¶
WithTargetPortNumber adds a target port to the route by number.
func (*Builder) WithWildCardPolicy ¶
WithWildCardPolicy adds the specified wildCardPolicy to the route.
Click to show internal directories.
Click to hide internal directories.