Documentation
¶
Index ¶
- Constants
- func ValidateFabricResource(fg *Fabric) error
- type Fabric
- type FabricAllowList
- type FabricCompression
- type FabricCorsSupport
- type FabricDataClient
- type FabricEmployeeAccess
- type FabricExternalServiceProvider
- type FabricList
- type FabricMethod
- type FabricPath
- type FabricPaths
- type FabricRatelimit
- type FabricResponse
- type FabricService
- type FabricSpec
- type FabricStatus
- type FabricTarget
- type Metadata
- type Options
Constants ¶
View Source
const ( IngressesV1ClusterURI = "/apis/networking.k8s.io/v1/ingresses" ServicesClusterURI = "/api/v1/services" EndpointsClusterURI = "/api/v1/endpoints" ZalandoResourcesClusterURI = "/apis/zalando.org/v1" FabricGatewayName = "fabricgateways" FabricGatewayURI = ZalandoResourcesClusterURI + "/fabricgateways" FabricGatewayFmt = ZalandoResourcesClusterURI + "/namespaces/%s/fabricgateways" )
Variables ¶
This section is empty.
Functions ¶
func ValidateFabricResource ¶
Types ¶
type Fabric ¶
type Fabric struct { Metadata *Metadata `json:"metadata"` Spec *FabricSpec `json:"spec"` Status *FabricStatus `json:"status"` }
type FabricAllowList ¶
type FabricCompression ¶
type FabricCorsSupport ¶
type FabricDataClient ¶
type FabricDataClient struct { ClusterClient *clusterClient // contains filtered or unexported fields }
func NewFabricDataClient ¶
func NewFabricDataClient(o Options) (*FabricDataClient, error)
func (*FabricDataClient) Close ¶
func (fdc *FabricDataClient) Close()
func (*FabricDataClient) LoadUpdate ¶
func (fdc *FabricDataClient) LoadUpdate() ([]*eskip.Route, []string, error)
type FabricEmployeeAccess ¶
type FabricList ¶
type FabricList struct {
Items []*Fabric `json:"items"`
}
type FabricMethod ¶
type FabricMethod struct { Method string EmployeeAccess *FabricEmployeeAccess `json:"x-fabric-employee-access"` Privileges []string `json:"x-fabric-privileges"` Ratelimit *FabricRatelimit `json:"x-fabric-ratelimits"` Response *FabricResponse `json:"x-fabric-static-response"` AllowList *FabricAllowList `json:"x-fabric-whitelist"` }
type FabricPath ¶
type FabricPath struct { Path string Methods []*FabricMethod }
func (FabricPath) String ¶
func (fp FabricPath) String() string
type FabricPaths ¶
type FabricPaths struct { PathData map[string]interface{} `json:"-"` Path []*FabricPath }
func (FabricPaths) String ¶
func (fps FabricPaths) String() string
func (*FabricPaths) UnmarshalJSON ¶
func (fps *FabricPaths) UnmarshalJSON(value []byte) error
type FabricRatelimit ¶
type FabricRatelimit struct { DefaultRate int `json:"default-rate"` Period time.Duration `json:"period"` Target []*FabricTarget `json:"target"` }
type FabricResponse ¶
type FabricService ¶
type FabricSpec ¶
type FabricSpec struct { Paths *FabricPaths `json:"paths"` Admins []string `json:"x-fabric-admins"` Compression *FabricCompression `json:"x-fabric-compression-support"` Cors *FabricCorsSupport `json:"x-fabric-cors-support"` EmployeeAccess *FabricEmployeeAccess `json:"x-fabric-employee-access"` Service []*FabricService `json:"x-fabric-service"` ExternalServiceProvider *FabricExternalServiceProvider `json:"x-external-service-provider"` AllowList []string `json:"x-fabric-whitelist"` }
type FabricStatus ¶
type FabricTarget ¶
type Options ¶
type Options struct { KubernetesURL string KubernetesInCluster bool // filter + args CheckEmployeeFilter string CheckServiceFilter string CheckEmployeeOrServiceFilter string CheckCommonScopeFilter string ForwardTokenServiceFilter string ForwardTokenEmployeeFilter string LogServiceFilter string LogUserFilter string FlowIDFilter string // ClusterClientRatelimitHeader is used for identifying a // client in a given request ClusterClientRatelimitHeader string // UidKey is used in x-fabric-admins and // x-fabric-employee-access to identify the user Claim to // match the value against an allow list and to identify the // user in the LogUserFilter. UidKey string // UserListPredicate is the predicate name used in // x-fabric-admins and x-fabric-employee-access to identify a // user in the "allow_list" UserListPredicate string // UserRealmPredicate is the predicate name used in // x-fabric-employee-access to identify "allow_all" or // "deny_all" and in x-fabric-admins if it's a user UserRealmPredicate string }
Click to show internal directories.
Click to hide internal directories.