Documentation ¶
Index ¶
- func CanI(ctx context.Context, verb, resource, namespace, name string) (bool, error)
- func GetClaimSet(ctx context.Context) *jws.ClaimSet
- func GetKubeClient(ctx context.Context) kubernetes.Interface
- func GetWfClient(ctx context.Context) versioned.Interface
- type ContextKey
- type Gatekeeper
- type Mode
- type Modes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKubeClient ¶
func GetKubeClient(ctx context.Context) kubernetes.Interface
Types ¶
type ContextKey ¶
type ContextKey string
const ( WfKey ContextKey = "versioned.Interface" KubeKey ContextKey = "kubernetes.Interface" ClaimSetKey ContextKey = "jws.ClaimSet" )
type Gatekeeper ¶
type Gatekeeper interface { Context(ctx context.Context) (context.Context, error) UnaryServerInterceptor() grpc.UnaryServerInterceptor StreamServerInterceptor() grpc.StreamServerInterceptor }
func NewGatekeeper ¶
Click to show internal directories.
Click to hide internal directories.