Documentation ¶
Index ¶
- Constants
- func AccessRule() *accessRule
- func AccessRuleSpec() *accessRuleSpec
- func Authenticators() *authenticators
- func Authorizer() *authorizer
- func CorsPolicy() *corsPolicy
- func HTTPRoute() *httpRoute
- func Handler() *handler
- func Match() *match
- func MatchRequest() *matchRequest
- func Mutators() *mutators
- func ObjectMeta() *objectMeta
- func RouteDestination() *routeDestination
- func Upstream() *upstream
- func VirtualService() *virtualService
- func VirtualServiceSpec() *virtualServiceSpec
- type Authentication
- type Authentications
- type AuthorizationPolicyBuilder
- func (ap *AuthorizationPolicyBuilder) FromAP(val *securityv1beta1.AuthorizationPolicy) *AuthorizationPolicyBuilder
- func (ap *AuthorizationPolicyBuilder) Get() *securityv1beta1.AuthorizationPolicy
- func (ap *AuthorizationPolicyBuilder) WithGenerateName(val string) *AuthorizationPolicyBuilder
- func (ap *AuthorizationPolicyBuilder) WithLabel(key, val string) *AuthorizationPolicyBuilder
- func (ap *AuthorizationPolicyBuilder) WithName(val string) *AuthorizationPolicyBuilder
- func (ap *AuthorizationPolicyBuilder) WithNamespace(val string) *AuthorizationPolicyBuilder
- func (ap *AuthorizationPolicyBuilder) WithSpec(val *v1beta1.AuthorizationPolicy) *AuthorizationPolicyBuilder
- type AuthorizationPolicySpecBuilder
- func (aps *AuthorizationPolicySpecBuilder) FromAP(val *v1beta1.AuthorizationPolicy) *AuthorizationPolicySpecBuilder
- func (aps *AuthorizationPolicySpecBuilder) Get() *v1beta1.AuthorizationPolicy
- func (aps *AuthorizationPolicySpecBuilder) WithAction(val v1beta1.AuthorizationPolicy_Action) *AuthorizationPolicySpecBuilder
- func (aps *AuthorizationPolicySpecBuilder) WithProvider(val string) *AuthorizationPolicySpecBuilder
- func (aps *AuthorizationPolicySpecBuilder) WithRule(val *v1beta1.Rule) *AuthorizationPolicySpecBuilder
- func (aps *AuthorizationPolicySpecBuilder) WithSelector(val *apiv1beta1.WorkloadSelector) *AuthorizationPolicySpecBuilder
- type ConditionBuilder
- type FromBuilder
- func (rf *FromBuilder) Get() *v1beta1.Rule_From
- func (rf *FromBuilder) WithForcedJWTAuthorization(accessStrategies []*gatewayv1beta1.Authenticator) *FromBuilder
- func (rf *FromBuilder) WithForcedJWTAuthorizationV2alpha1(authentications []*gatewayv2alpha1.JwtAuthentication) *FromBuilder
- func (rf *FromBuilder) WithIngressGatewaySource() *FromBuilder
- func (rf *FromBuilder) WithOathkeeperProxySource() *FromBuilder
- type HttpRouteHeadersBuilder
- func (h HttpRouteHeadersBuilder) Get() *v1beta1.Headers
- func (h HttpRouteHeadersBuilder) RemoveUpstreamCORSPolicyHeaders() HttpRouteHeadersBuilder
- func (h HttpRouteHeadersBuilder) SetHostHeader(hostname string) HttpRouteHeadersBuilder
- func (h HttpRouteHeadersBuilder) SetRequestCookies(cookies map[string]string) HttpRouteHeadersBuilder
- func (h HttpRouteHeadersBuilder) SetRequestHeaders(headers map[string]string) HttpRouteHeadersBuilder
- type JwtHeader
- type JwtRuleBuilder
- type OperationBuilder
- func (o *OperationBuilder) Get() *v1beta1.Operation
- func (o *OperationBuilder) WithMethods(val []gatewayv1beta1.HttpMethod) *OperationBuilder
- func (o *OperationBuilder) WithMethodsV2alpha1(val []gatewayv2alpha1.HttpMethod) *OperationBuilder
- func (o *OperationBuilder) WithPath(val string) *OperationBuilder
- type RequestAuthenticationBuilder
- func (ra *RequestAuthenticationBuilder) Get() *securityv1beta1.RequestAuthentication
- func (ra *RequestAuthenticationBuilder) WithFrom(val *securityv1beta1.RequestAuthentication) *RequestAuthenticationBuilder
- func (ra *RequestAuthenticationBuilder) WithGenerateName(val string) *RequestAuthenticationBuilder
- func (ra *RequestAuthenticationBuilder) WithLabel(key, val string) *RequestAuthenticationBuilder
- func (ra *RequestAuthenticationBuilder) WithName(val string) *RequestAuthenticationBuilder
- func (ra *RequestAuthenticationBuilder) WithNamespace(val string) *RequestAuthenticationBuilder
- func (ra *RequestAuthenticationBuilder) WithSpec(val *v1beta1.RequestAuthentication) *RequestAuthenticationBuilder
- type RequestAuthenticationSpecBuilder
- func (ras *RequestAuthenticationSpecBuilder) Get() *v1beta1.RequestAuthentication
- func (ras *RequestAuthenticationSpecBuilder) WithFrom(val *v1beta1.RequestAuthentication) *RequestAuthenticationSpecBuilder
- func (ras *RequestAuthenticationSpecBuilder) WithJwtRules(val []*v1beta1.JWTRule) *RequestAuthenticationSpecBuilder
- func (ras *RequestAuthenticationSpecBuilder) WithSelector(val *apiv1beta1.WorkloadSelector) *RequestAuthenticationSpecBuilder
- type RuleBuilder
- type SelectorBuilder
- type ToBuilder
Constants ¶
const ( ExposeHeadersName = "Access-Control-Expose-Headers" AllowHeadersName = "Access-Control-Allow-Headers" AllowCredentialsName = "Access-Control-Allow-Credentials" AllowMethodsName = "Access-Control-Allow-Methods" AllowOriginName = "Access-Control-Allow-Origin" MaxAgeName = "Access-Control-Max-Age" )
Variables ¶
This section is empty.
Functions ¶
func AccessRule ¶
func AccessRule() *accessRule
AccessRule returns a builder for github.com/ory/oathkeeper-maester/api/v1alpha1/Rule instances
func AccessRuleSpec ¶
func AccessRuleSpec() *accessRuleSpec
AccessRuleSpec returns a builder for github.com/ory/oathkeeper-maester/api/v1alpha1/RuleSpec instances
func Authenticators ¶
func Authenticators() *authenticators
Authenticators returns a builder for github.com/ory/oathkeeper-maester/api/v1alpha1/Authenticators instances
func Authorizer ¶
func Authorizer() *authorizer
Authorizer returns a builder for github.com/ory/oathkeeper-maester/api/v1alpha1/Authorizer instances
func CorsPolicy ¶
func CorsPolicy() *corsPolicy
CorsPolicy returns builder for istio.io/api/networking/v1beta1/CorsPolicy type
func HTTPRoute ¶
func HTTPRoute() *httpRoute
HTTPRoute returns builder for istio.io/api/networking/v1beta1/HTTPRoute type
func Handler ¶
func Handler() *handler
Handler returns a builder for github.com/ory/oathkeeper-maester/api/v1alpha1/Handler instances
func Match ¶
func Match() *match
Match returns a builder for github.com/ory/oathkeeper-maester/api/v1alpha1/Match instances
func MatchRequest ¶
func MatchRequest() *matchRequest
MatchRequest returns builder for istio.io/api/networking/v1beta1/HTTPMatchRequest type
func Mutators ¶
func Mutators() *mutators
Mutators returns a builder for github.com/ory/oathkeeper-maester/api/v1alpha1/Mutators instances
func ObjectMeta ¶
func ObjectMeta() *objectMeta
ObjectMeta returns builder for k8s.io/apimachinery/pkg/apis/meta/v1/ObjectMeta type
func RouteDestination ¶
func RouteDestination() *routeDestination
RouteDestination returns builder for istio.io/api/networking/v1beta1/HTTPRouteDestination type
func Upstream ¶
func Upstream() *upstream
Upstream returns a builder for github.com/ory/oathkeeper-maester/api/v1alpha1/Upstream instances
func VirtualService ¶
func VirtualService() *virtualService
VirtualService returns builder for istio.io/client-go/pkg/apis/networking/v1beta1/VirtualService type
func VirtualServiceSpec ¶
func VirtualServiceSpec() *virtualServiceSpec
VirtualServiceSpec returns builder for istio.io/api/networking/v1beta1/VirtualServiceSpec type
Types ¶
type Authentication ¶
type Authentications ¶
type Authentications struct {
Authentications []*Authentication `json:"authentications"`
}
type AuthorizationPolicyBuilder ¶
type AuthorizationPolicyBuilder struct {
// contains filtered or unexported fields
}
func NewAuthorizationPolicyBuilder ¶
func NewAuthorizationPolicyBuilder() *AuthorizationPolicyBuilder
NewAuthorizationPolicyBuilder returns a builder for istio.io/client-go/pkg/apis/security/v1beta1/AuthorizationPolicy type
func (*AuthorizationPolicyBuilder) FromAP ¶
func (ap *AuthorizationPolicyBuilder) FromAP(val *securityv1beta1.AuthorizationPolicy) *AuthorizationPolicyBuilder
func (*AuthorizationPolicyBuilder) Get ¶
func (ap *AuthorizationPolicyBuilder) Get() *securityv1beta1.AuthorizationPolicy
func (*AuthorizationPolicyBuilder) WithGenerateName ¶
func (ap *AuthorizationPolicyBuilder) WithGenerateName(val string) *AuthorizationPolicyBuilder
func (*AuthorizationPolicyBuilder) WithLabel ¶
func (ap *AuthorizationPolicyBuilder) WithLabel(key, val string) *AuthorizationPolicyBuilder
func (*AuthorizationPolicyBuilder) WithName ¶
func (ap *AuthorizationPolicyBuilder) WithName(val string) *AuthorizationPolicyBuilder
func (*AuthorizationPolicyBuilder) WithNamespace ¶
func (ap *AuthorizationPolicyBuilder) WithNamespace(val string) *AuthorizationPolicyBuilder
func (*AuthorizationPolicyBuilder) WithSpec ¶
func (ap *AuthorizationPolicyBuilder) WithSpec(val *v1beta1.AuthorizationPolicy) *AuthorizationPolicyBuilder
type AuthorizationPolicySpecBuilder ¶
type AuthorizationPolicySpecBuilder struct {
// contains filtered or unexported fields
}
func NewAuthorizationPolicySpecBuilder ¶
func NewAuthorizationPolicySpecBuilder() *AuthorizationPolicySpecBuilder
NewAuthorizationPolicySpecBuilder returns builder for istio.io/api/security/v1beta1/AuthorizationPolicy type
func (*AuthorizationPolicySpecBuilder) FromAP ¶
func (aps *AuthorizationPolicySpecBuilder) FromAP(val *v1beta1.AuthorizationPolicy) *AuthorizationPolicySpecBuilder
func (*AuthorizationPolicySpecBuilder) Get ¶
func (aps *AuthorizationPolicySpecBuilder) Get() *v1beta1.AuthorizationPolicy
func (*AuthorizationPolicySpecBuilder) WithAction ¶
func (aps *AuthorizationPolicySpecBuilder) WithAction(val v1beta1.AuthorizationPolicy_Action) *AuthorizationPolicySpecBuilder
func (*AuthorizationPolicySpecBuilder) WithProvider ¶
func (aps *AuthorizationPolicySpecBuilder) WithProvider(val string) *AuthorizationPolicySpecBuilder
func (*AuthorizationPolicySpecBuilder) WithRule ¶
func (aps *AuthorizationPolicySpecBuilder) WithRule(val *v1beta1.Rule) *AuthorizationPolicySpecBuilder
func (*AuthorizationPolicySpecBuilder) WithSelector ¶
func (aps *AuthorizationPolicySpecBuilder) WithSelector(val *apiv1beta1.WorkloadSelector) *AuthorizationPolicySpecBuilder
type ConditionBuilder ¶
type ConditionBuilder struct {
// contains filtered or unexported fields
}
func NewConditionBuilder ¶
func NewConditionBuilder() *ConditionBuilder
NewConditionBuilder returns builder for istio.io/apis/security/v1beta1/Condition type
func (*ConditionBuilder) Get ¶
func (rc *ConditionBuilder) Get() *v1beta1.Condition
func (*ConditionBuilder) WithKey ¶
func (rc *ConditionBuilder) WithKey(key string) *ConditionBuilder
func (*ConditionBuilder) WithValues ¶
func (rc *ConditionBuilder) WithValues(values []string) *ConditionBuilder
type FromBuilder ¶
type FromBuilder struct {
// contains filtered or unexported fields
}
func NewFromBuilder ¶
func NewFromBuilder() *FromBuilder
NewFromBuilder returns builder for istio.io/api/security/v1beta1/Rule_From type
func (*FromBuilder) Get ¶
func (rf *FromBuilder) Get() *v1beta1.Rule_From
func (*FromBuilder) WithForcedJWTAuthorization ¶
func (rf *FromBuilder) WithForcedJWTAuthorization(accessStrategies []*gatewayv1beta1.Authenticator) *FromBuilder
WithForcedJWTAuthorization adds RequestPrincipals = "ISSUER/*" for every issuer, forcing requests to use JWT authorization
func (*FromBuilder) WithForcedJWTAuthorizationV2alpha1 ¶
func (rf *FromBuilder) WithForcedJWTAuthorizationV2alpha1(authentications []*gatewayv2alpha1.JwtAuthentication) *FromBuilder
WithForcedJWTAuthorizationV2alpha1 adds RequestPrincipals = "ISSUER/*" for every issuer, forcing requests to use JWT authorization
func (*FromBuilder) WithIngressGatewaySource ¶
func (rf *FromBuilder) WithIngressGatewaySource() *FromBuilder
func (*FromBuilder) WithOathkeeperProxySource ¶
func (rf *FromBuilder) WithOathkeeperProxySource() *FromBuilder
type HttpRouteHeadersBuilder ¶
type HttpRouteHeadersBuilder struct {
// contains filtered or unexported fields
}
func NewHttpRouteHeadersBuilder ¶
func NewHttpRouteHeadersBuilder() HttpRouteHeadersBuilder
NewHttpRouteHeadersBuilder returns builder for istio.io/api/networking/v1beta1/Headers type
func (HttpRouteHeadersBuilder) Get ¶
func (h HttpRouteHeadersBuilder) Get() *v1beta1.Headers
func (HttpRouteHeadersBuilder) RemoveUpstreamCORSPolicyHeaders ¶
func (h HttpRouteHeadersBuilder) RemoveUpstreamCORSPolicyHeaders() HttpRouteHeadersBuilder
RemoveUpstreamCORSPolicyHeaders sets VirtualService to remove all upstream CORS headers, leaving only those from VirtualService CORS Policy
func (HttpRouteHeadersBuilder) SetHostHeader ¶
func (h HttpRouteHeadersBuilder) SetHostHeader(hostname string) HttpRouteHeadersBuilder
func (HttpRouteHeadersBuilder) SetRequestCookies ¶
func (h HttpRouteHeadersBuilder) SetRequestCookies(cookies map[string]string) HttpRouteHeadersBuilder
SetRequestCookies sets the Cookie header based on a map[string]string The Cookie header is built as "key1=value1; key2=value2; ..."
func (HttpRouteHeadersBuilder) SetRequestHeaders ¶
func (h HttpRouteHeadersBuilder) SetRequestHeaders(headers map[string]string) HttpRouteHeadersBuilder
SetRequestHeaders sets the request headers and expects a map of the form "header-name1": "header-value1", "header-name2": "header-value2", ...
type JwtRuleBuilder ¶
type JwtRuleBuilder struct {
// contains filtered or unexported fields
}
func NewJwtRuleBuilder ¶
func NewJwtRuleBuilder() *JwtRuleBuilder
NewJwtRuleBuilder returns builder for istio.io/api/security/v1beta1/JWTRule type
func (*JwtRuleBuilder) From ¶
func (jr *JwtRuleBuilder) From(val []*gatewayv1beta1.Authenticator) *JwtRuleBuilder
func (*JwtRuleBuilder) FromV2Alpha1 ¶
func (jr *JwtRuleBuilder) FromV2Alpha1(jwt *gatewayv2alpha1.JwtConfig) *JwtRuleBuilder
func (*JwtRuleBuilder) Get ¶
func (jr *JwtRuleBuilder) Get() *[]*v1beta1.JWTRule
type OperationBuilder ¶
type OperationBuilder struct {
// contains filtered or unexported fields
}
func NewOperationBuilder ¶
func NewOperationBuilder() *OperationBuilder
NewOperationBuilder returns builder for istio.io/api/security/v1beta1/Operation type
func (*OperationBuilder) Get ¶
func (o *OperationBuilder) Get() *v1beta1.Operation
func (*OperationBuilder) WithMethods ¶
func (o *OperationBuilder) WithMethods(val []gatewayv1beta1.HttpMethod) *OperationBuilder
func (*OperationBuilder) WithMethodsV2alpha1 ¶
func (o *OperationBuilder) WithMethodsV2alpha1(val []gatewayv2alpha1.HttpMethod) *OperationBuilder
func (*OperationBuilder) WithPath ¶
func (o *OperationBuilder) WithPath(val string) *OperationBuilder
type RequestAuthenticationBuilder ¶
type RequestAuthenticationBuilder struct {
// contains filtered or unexported fields
}
func NewRequestAuthenticationBuilder ¶
func NewRequestAuthenticationBuilder() *RequestAuthenticationBuilder
NewRequestAuthenticationBuilder returns a builder for istio.io/client-go/pkg/apis/security/v1beta1/RequestAuthentication type
func (*RequestAuthenticationBuilder) Get ¶
func (ra *RequestAuthenticationBuilder) Get() *securityv1beta1.RequestAuthentication
func (*RequestAuthenticationBuilder) WithFrom ¶
func (ra *RequestAuthenticationBuilder) WithFrom(val *securityv1beta1.RequestAuthentication) *RequestAuthenticationBuilder
func (*RequestAuthenticationBuilder) WithGenerateName ¶
func (ra *RequestAuthenticationBuilder) WithGenerateName(val string) *RequestAuthenticationBuilder
func (*RequestAuthenticationBuilder) WithLabel ¶
func (ra *RequestAuthenticationBuilder) WithLabel(key, val string) *RequestAuthenticationBuilder
func (*RequestAuthenticationBuilder) WithName ¶
func (ra *RequestAuthenticationBuilder) WithName(val string) *RequestAuthenticationBuilder
func (*RequestAuthenticationBuilder) WithNamespace ¶
func (ra *RequestAuthenticationBuilder) WithNamespace(val string) *RequestAuthenticationBuilder
func (*RequestAuthenticationBuilder) WithSpec ¶
func (ra *RequestAuthenticationBuilder) WithSpec(val *v1beta1.RequestAuthentication) *RequestAuthenticationBuilder
type RequestAuthenticationSpecBuilder ¶
type RequestAuthenticationSpecBuilder struct {
// contains filtered or unexported fields
}
func NewRequestAuthenticationSpecBuilder ¶
func NewRequestAuthenticationSpecBuilder() *RequestAuthenticationSpecBuilder
NewRequestAuthenticationSpecBuilder returns a builder for istio.io/api/security/v1beta1/RequestAuthentication type
func (*RequestAuthenticationSpecBuilder) Get ¶
func (ras *RequestAuthenticationSpecBuilder) Get() *v1beta1.RequestAuthentication
func (*RequestAuthenticationSpecBuilder) WithFrom ¶
func (ras *RequestAuthenticationSpecBuilder) WithFrom(val *v1beta1.RequestAuthentication) *RequestAuthenticationSpecBuilder
func (*RequestAuthenticationSpecBuilder) WithJwtRules ¶
func (ras *RequestAuthenticationSpecBuilder) WithJwtRules(val []*v1beta1.JWTRule) *RequestAuthenticationSpecBuilder
func (*RequestAuthenticationSpecBuilder) WithSelector ¶
func (ras *RequestAuthenticationSpecBuilder) WithSelector(val *apiv1beta1.WorkloadSelector) *RequestAuthenticationSpecBuilder
type RuleBuilder ¶
type RuleBuilder struct {
// contains filtered or unexported fields
}
func NewRuleBuilder ¶
func NewRuleBuilder() *RuleBuilder
NewRuleBuilder returns builder for istio.io/api/security/v1beta1/Rule type
func (*RuleBuilder) Get ¶
func (r *RuleBuilder) Get() *v1beta1.Rule
func (*RuleBuilder) WithFrom ¶
func (r *RuleBuilder) WithFrom(val *v1beta1.Rule_From) *RuleBuilder
func (*RuleBuilder) WithTo ¶
func (r *RuleBuilder) WithTo(val *v1beta1.Rule_To) *RuleBuilder
func (*RuleBuilder) WithWhenCondition ¶
func (r *RuleBuilder) WithWhenCondition(val *v1beta1.Condition) *RuleBuilder
type SelectorBuilder ¶
type SelectorBuilder struct {
// contains filtered or unexported fields
}
func NewSelectorBuilder ¶
func NewSelectorBuilder() *SelectorBuilder
NewSelectorBuilder returns builder for istio.io/api/type/v1beta1/WorkloadSelector type
func (*SelectorBuilder) Get ¶
func (s *SelectorBuilder) Get() *apiv1beta1.WorkloadSelector
func (*SelectorBuilder) WithMatchLabels ¶
func (s *SelectorBuilder) WithMatchLabels(key, val string) *SelectorBuilder
type ToBuilder ¶
type ToBuilder struct {
// contains filtered or unexported fields
}
func NewToBuilder ¶
func NewToBuilder() *ToBuilder
NewToBuilder returns builder for istio.io/apis/security/v1beta1/Rule_To type