Documentation
¶
Index ¶
Constants ¶
View Source
const ( NameKey = "accessPolicy" RouteKey = "route" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessPolicy ¶
type AccessPolicy struct {
Name string
Oidc Oidc
Default Route
Routes Routes
VirtualHosts []string
}
func New ¶
func New(ap *api.AccessPolicy, secret *core.Secret) (*AccessPolicy, error)
type Oidc ¶
type Oidc struct {
Provider openidprovider.OpenIdProvider
ClientId string
ClientSecret string
TokenSecret []byte
Callback url.URL
}
type Store ¶
type Store interface {
Get(string) *AccessPolicy
Update(context.Context, *AccessPolicy)
Delete(context.Context, string)
Stream() <-chan AccessPolicy
}
func NewAccessPolicyStore ¶
func NewAccessPolicyStore() Store
Click to show internal directories.
Click to hide internal directories.