tenant

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operations

type Operations struct {
	List   bool
	Update bool
	Delete bool
}

func (*Operations) Allow

func (o *Operations) Allow(operation capsulev1beta2.ProxyOperation)

func (*Operations) IsAllowed

func (o *Operations) IsAllowed(request *http.Request) (ok bool)

type ProxyTenant

type ProxyTenant struct {
	Tenant       capsulev1beta2.Tenant
	ProxySetting map[capsulev1beta2.ProxyServiceKind]*Operations
}

func NewProxyTenant

func NewProxyTenant(ownerName string, ownerKind capsulev1beta2.OwnerKind, tenant capsulev1beta2.Tenant, owners []v1beta1.OwnerSpec) *ProxyTenant

func (*ProxyTenant) RequestAllowed

func (p *ProxyTenant) RequestAllowed(request *http.Request, serviceKind capsulev1beta2.ProxyServiceKind) (ok bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL