Documentation
¶
Index ¶
- type APIRuleBuilder
- func (r *APIRuleBuilder) Build() *gatewayv1beta1.APIRule
- func (r *APIRuleBuilder) WithCorsPolicy(policy gatewayv1beta1.CorsPolicy) *APIRuleBuilder
- func (r *APIRuleBuilder) WithGateway(gateway string) *APIRuleBuilder
- func (r *APIRuleBuilder) WithHost(host string) *APIRuleBuilder
- func (r *APIRuleBuilder) WithRule(rule gatewayv1beta1.Rule) *APIRuleBuilder
- func (r *APIRuleBuilder) WithService(name, namespace string, port uint32) *APIRuleBuilder
- func (r *APIRuleBuilder) WithTimeout(timeout gatewayv1beta1.Timeout) *APIRuleBuilder
- type RuleBuilder
- func (r *RuleBuilder) Build() *gatewayv1beta1.Rule
- func (r *RuleBuilder) WithHandler(handler gatewayv1beta1.Handler) *RuleBuilder
- func (r *RuleBuilder) WithMethods(methods ...gatewayv1beta1.HttpMethod) *RuleBuilder
- func (r *RuleBuilder) WithPath(path string) *RuleBuilder
- func (r *RuleBuilder) WithService(name, namespace string, port uint32) *RuleBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRuleBuilder ¶
type APIRuleBuilder struct {
// contains filtered or unexported fields
}
func NewAPIRuleBuilder ¶
func NewAPIRuleBuilder() *APIRuleBuilder
func NewAPIRuleBuilderWithDummyData ¶
func NewAPIRuleBuilderWithDummyData() *APIRuleBuilder
func (*APIRuleBuilder) Build ¶
func (r *APIRuleBuilder) Build() *gatewayv1beta1.APIRule
func (*APIRuleBuilder) WithCorsPolicy ¶
func (r *APIRuleBuilder) WithCorsPolicy(policy gatewayv1beta1.CorsPolicy) *APIRuleBuilder
func (*APIRuleBuilder) WithGateway ¶
func (r *APIRuleBuilder) WithGateway(gateway string) *APIRuleBuilder
func (*APIRuleBuilder) WithHost ¶
func (r *APIRuleBuilder) WithHost(host string) *APIRuleBuilder
func (*APIRuleBuilder) WithRule ¶
func (r *APIRuleBuilder) WithRule(rule gatewayv1beta1.Rule) *APIRuleBuilder
func (*APIRuleBuilder) WithService ¶
func (r *APIRuleBuilder) WithService(name, namespace string, port uint32) *APIRuleBuilder
func (*APIRuleBuilder) WithTimeout ¶
func (r *APIRuleBuilder) WithTimeout(timeout gatewayv1beta1.Timeout) *APIRuleBuilder
type RuleBuilder ¶
type RuleBuilder struct {
// contains filtered or unexported fields
}
func NewRuleBuilder ¶
func NewRuleBuilder() *RuleBuilder
func (*RuleBuilder) Build ¶
func (r *RuleBuilder) Build() *gatewayv1beta1.Rule
func (*RuleBuilder) WithHandler ¶
func (r *RuleBuilder) WithHandler(handler gatewayv1beta1.Handler) *RuleBuilder
func (*RuleBuilder) WithMethods ¶
func (r *RuleBuilder) WithMethods(methods ...gatewayv1beta1.HttpMethod) *RuleBuilder
func (*RuleBuilder) WithPath ¶
func (r *RuleBuilder) WithPath(path string) *RuleBuilder
func (*RuleBuilder) WithService ¶
func (r *RuleBuilder) WithService(name, namespace string, port uint32) *RuleBuilder
Click to show internal directories.
Click to hide internal directories.