Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authzed ¶ added in v0.12.0
type Authzed struct { Endpoint string Insecure bool Subject expressions.Value SubjectKind expressions.Value Resource expressions.Value ResourceKind expressions.Value Permission expressions.Value }
type JSONPatternMatching ¶
type JSONPatternMatching struct {
Rules jsonexp.Expression
}
func (*JSONPatternMatching) Call ¶
func (j *JSONPatternMatching) Call(pipeline auth.AuthPipeline, ctx context.Context) (interface{}, error)
type KubernetesAuthz ¶
type KubernetesAuthz struct { User expressions.Value AuthorizationGroups expressions.Value ResourceAttributes *KubernetesAuthzResourceAttributes // contains filtered or unexported fields }
func NewKubernetesAuthz ¶
func NewKubernetesAuthz(user expressions.Value, authorizationGroups expressions.Value, resourceAttributes *KubernetesAuthzResourceAttributes) (*KubernetesAuthz, error)
func (*KubernetesAuthz) Call ¶
func (k *KubernetesAuthz) Call(pipeline auth.AuthPipeline, ctx gocontext.Context) (interface{}, error)
type KubernetesAuthzResourceAttributes ¶
type KubernetesAuthzResourceAttributes struct { Namespace expressions.Value Group expressions.Value Resource expressions.Value Name expressions.Value SubResource expressions.Value Verb expressions.Value }
type OPA ¶
type OPA struct { Rego string `yaml:"rego"` ExternalSource *OPAExternalSource AllValues bool // contains filtered or unexported fields }
func NewOPAAuthorization ¶
type OPAExternalSource ¶
type OPAExternalSource struct { Endpoint string auth.AuthCredentials TTL int // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.