Documentation ¶
Index ¶
- type Auth
- func (a *Auth) CanICreate(ctx context.Context, gvk, namespace, subresource string) (bool, error)
- func (a *Auth) CanIDelete(ctx context.Context, gvk, namespace, subresource string) (bool, error)
- func (a *Auth) CanIGet(ctx context.Context, gvk, namespace, subresource string) (bool, error)
- func (a *Auth) CanIUpdate(ctx context.Context, gvk, namespace, subresource string) (bool, error)
- type Operations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth provides implementation to check if caller/self/kyverno has access to perofrm operations
func (*Auth) CanICreate ¶
CanICreate returns 'true' if self can 'create' resource
func (*Auth) CanIDelete ¶
CanIDelete returns 'true' if self can 'delete' resource
type Operations ¶
type Operations interface { // CanICreate returns 'true' if self can 'create' resource CanICreate(ctx context.Context, gvk, namespace, subresource string) (bool, error) // CanIUpdate returns 'true' if self can 'update' resource CanIUpdate(ctx context.Context, gvk, namespace, subresource string) (bool, error) // CanIDelete returns 'true' if self can 'delete' resource CanIDelete(ctx context.Context, gvk, namespace, subresource string) (bool, error) // CanIGet returns 'true' if self can 'get' resource CanIGet(ctx context.Context, gvk, namespace, subresource string) (bool, error) }
Operations provides methods to performing operations on resource
Click to show internal directories.
Click to hide internal directories.