Documentation ¶
Index ¶
- type ActionHook
- type Control
- type Delete
- type Get
- type Option
- func WithAfterCreate(hook ActionHook) Option
- func WithAfterDelete(hook ActionHook) Option
- func WithAfterGet(hook ActionHook) Option
- func WithAfterSearch(hook ActionHook) Option
- func WithAfterUpdate(hook ActionHook) Option
- func WithBeforeCreate(hook ActionHook) Option
- func WithBeforeDelete(hook ActionHook) Option
- func WithBeforeGet(hook ActionHook) Option
- func WithBeforeSearch(hook ActionHook) Option
- func WithBeforeUpdate(hook ActionHook) Option
- func WithControlHandlers(handlers gin.HandlersChain) Option
- func WithDeleteHandlers(handlers gin.HandlersChain) Option
- func WithGetHandlers(handlers gin.HandlersChain) Option
- func WithHandlers(handlers gin.HandlersChain) Option
- func WithKey(key string) Option
- func WithModel(m any) Option
- func WithResourceType(rt ResourceType) Option
- func WithSearchHandlers(handlers gin.HandlersChain) Option
- type Options
- type ResourceType
- type Search
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionHook ¶
type Control ¶
type Control struct {
// contains filtered or unexported fields
}
func NewControl ¶
func (*Control) Handler ¶
func (e *Control) Handler() gin.HandlersChain
type Delete ¶
type Delete struct {
// contains filtered or unexported fields
}
func (*Delete) Handler ¶
func (e *Delete) Handler() gin.HandlersChain
type Get ¶
type Get struct {
// contains filtered or unexported fields
}
func (*Get) Handler ¶
func (e *Get) Handler() gin.HandlersChain
type Option ¶
type Option func(*Options)
func WithAfterCreate ¶
func WithAfterCreate(hook ActionHook) Option
WithAfterCreate set after create hook
func WithAfterDelete ¶
func WithAfterDelete(hook ActionHook) Option
WithAfterDelete set after delete hook
func WithAfterSearch ¶
func WithAfterSearch(hook ActionHook) Option
WithAfterSearch set after search hook
func WithAfterUpdate ¶
func WithAfterUpdate(hook ActionHook) Option
WithAfterUpdate set after update hook
func WithBeforeCreate ¶
func WithBeforeCreate(hook ActionHook) Option
WithBeforeCreate set before create hook
func WithBeforeDelete ¶
func WithBeforeDelete(hook ActionHook) Option
WithBeforeDelete set before delete hook
func WithBeforeSearch ¶
func WithBeforeSearch(hook ActionHook) Option
WithBeforeSearch set before search hook
func WithBeforeUpdate ¶
func WithBeforeUpdate(hook ActionHook) Option
WithBeforeUpdate set before update hook
func WithControlHandlers ¶
func WithControlHandlers(handlers gin.HandlersChain) Option
WithControlHandlers set control handlers
func WithDeleteHandlers ¶
func WithDeleteHandlers(handlers gin.HandlersChain) Option
WithDeleteHandlers set delete handlers
func WithGetHandlers ¶
func WithGetHandlers(handlers gin.HandlersChain) Option
WithGetHandlers set get handlers
func WithResourceType ¶
func WithResourceType(rt ResourceType) Option
WithResourceType set resource type
func WithSearchHandlers ¶
func WithSearchHandlers(handlers gin.HandlersChain) Option
WithSearchHandlers set search handlers
type Options ¶
type Options struct { ResourceType ResourceType Model any Handlers gin.HandlersChain Key string BeforeCreate ActionHook AfterCreate ActionHook BeforeUpdate ActionHook AfterUpdate ActionHook BeforeGet ActionHook AfterGet ActionHook BeforeDelete ActionHook AfterDelete ActionHook BeforeSearch ActionHook AfterSearch ActionHook // contains filtered or unexported fields }
type ResourceType ¶
type ResourceType string
const ( Deployment ResourceType = "deployment" Service ResourceType = "service" Pod ResourceType = "pod" ConfigMap ResourceType = "configmap" Secret ResourceType = "secret" StatefulSet ResourceType = "statefulset" Job ResourceType = "job" CronJob ResourceType = "cronjob" DaemonSet ResourceType = "daemonset" Ingress ResourceType = "ingress" ResourceQuota ResourceType = "resourcequota" LimitRange ResourceType = "limitrange" PersistentVolume ResourceType = "persistentvolume" PersistentVolumeClaim ResourceType = "persistentvolumeclaim" Namespace ResourceType = "namespace" StorageClass ResourceType = "storageclass" IngressClass ResourceType = "ingressclass" )
Click to show internal directories.
Click to hide internal directories.