Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operations ¶
func (*Operations) Allow ¶
func (o *Operations) Allow(operation capsulerbac.ProxyOperation)
type ProxyTenant ¶
type ProxyTenant struct {
Tenant capsulev1beta2.Tenant
ProxySetting map[capsulerbac.ProxyServiceKind]*Operations
ClusterResources []v1beta1.ClusterResource
}
func NewClusterProxy ¶ added in v0.9.0
func NewClusterProxy(ownerName string, ownerKind capsulerbac.OwnerKind, owners []v1beta1.GlobalSubjectSpec) *ProxyTenant
NewClusterProxy returns a ProxyTenant struct for GlobalProxySettings. These settings are currently not bound to a tenant and therefore an empty tenant is returned.
func NewProxyTenant ¶
func NewProxyTenant( tenant capsulev1beta2.Tenant, ownerName string, ownerKind capsulerbac.OwnerKind, owners []v1beta1.OwnerSpec, disableLegacyProxySettings bool, ) *ProxyTenant
func (*ProxyTenant) RequestAllowed ¶
func (p *ProxyTenant) RequestAllowed(request *http.Request, serviceKind capsulerbac.ProxyServiceKind) (ok bool)
Click to show internal directories.
Click to hide internal directories.