Documentation ¶
Index ¶
- type KindManager
- type SClusterResourceManager
- func (m *SClusterResourceManager) AllowCreateItem(req *common.Request) bool
- func (m *SClusterResourceManager) AllowDeleteItem(req *common.Request, id string) bool
- func (m *SClusterResourceManager) AllowGetItem(ctx context.Context, req *common.Request, id string) bool
- func (m *SClusterResourceManager) AllowListItems(req *common.Request) bool
- func (m *SClusterResourceManager) AllowUpdateItem(ctx context.Context, req *common.Request, id string) bool
- func (m *SClusterResourceManager) CustomizeCreate(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (m *SClusterResourceManager) InNamespace() bool
- func (m *SClusterResourceManager) ValidateCreateData(req *common.Request) error
- type SKindManagerMap
- type SNamespaceResourceManager
- func (m *SNamespaceResourceManager) AllowCreateItem(req *common.Request) bool
- func (m *SNamespaceResourceManager) AllowDeleteItem(req *common.Request, id string) bool
- func (m *SNamespaceResourceManager) AllowGetItem(req *common.Request, id string) bool
- func (m *SNamespaceResourceManager) AllowListItems(req *common.Request) bool
- func (m *SNamespaceResourceManager) AllowUpdateItem(req *common.Request, id string) bool
- func (m *SNamespaceResourceManager) InNamespace() bool
- func (m *SNamespaceResourceManager) IsOwner(req *common.Request) bool
- func (m *SNamespaceResourceManager) ValidateCreateData(req *common.Request) error
- type SResourceBaseManager
- func (m *SResourceBaseManager) AllowCreateItem(req *common.Request) bool
- func (m *SResourceBaseManager) AllowDeleteItem(req *common.Request, id string) bool
- func (m *SResourceBaseManager) AllowGetItem(req *common.Request, id string) bool
- func (m *SResourceBaseManager) AllowListItems(req *common.Request) bool
- func (m *SResourceBaseManager) AllowUpdateItem(req *common.Request, id string) bool
- func (m *SResourceBaseManager) Create(req *common.Request) (interface{}, error)
- func (m *SResourceBaseManager) Delete(req *common.Request, id string) error
- func (m *SResourceBaseManager) Get(req *common.Request, id string) (interface{}, error)
- func (m *SResourceBaseManager) InNamespace() bool
- func (m *SResourceBaseManager) IsRawResource() bool
- func (m *SResourceBaseManager) Keyword() string
- func (m *SResourceBaseManager) KeywordPlural() string
- func (m *SResourceBaseManager) List(req *common.Request) (common.ListResource, error)
- func (m *SResourceBaseManager) Update(req *common.Request, id string) (interface{}, error)
- func (m *SResourceBaseManager) ValidateCreateData(req *common.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KindManager ¶
type SClusterResourceManager ¶
type SClusterResourceManager struct {
*SResourceBaseManager
}
func NewClusterResourceManager ¶
func NewClusterResourceManager(keyword, keywordPlural string) *SClusterResourceManager
func (*SClusterResourceManager) AllowCreateItem ¶
func (m *SClusterResourceManager) AllowCreateItem(req *common.Request) bool
func (*SClusterResourceManager) AllowDeleteItem ¶
func (m *SClusterResourceManager) AllowDeleteItem(req *common.Request, id string) bool
func (*SClusterResourceManager) AllowGetItem ¶
func (*SClusterResourceManager) AllowListItems ¶
func (m *SClusterResourceManager) AllowListItems(req *common.Request) bool
func (*SClusterResourceManager) AllowUpdateItem ¶
func (*SClusterResourceManager) CustomizeCreate ¶
func (m *SClusterResourceManager) CustomizeCreate(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject) error
func (*SClusterResourceManager) InNamespace ¶
func (m *SClusterResourceManager) InNamespace() bool
func (*SClusterResourceManager) ValidateCreateData ¶
func (m *SClusterResourceManager) ValidateCreateData(req *common.Request) error
type SKindManagerMap ¶
type SKindManagerMap map[string]KindManager
var KindManagerMap SKindManagerMap
func (SKindManagerMap) Get ¶
func (m SKindManagerMap) Get(obj runtime.Object) KindManager
func (SKindManagerMap) Register ¶
func (m SKindManagerMap) Register(kind string, man KindManager)
type SNamespaceResourceManager ¶
type SNamespaceResourceManager struct {
*SResourceBaseManager
}
func NewNamespaceResourceManager ¶
func NewNamespaceResourceManager(keyword, keywordPlural string) *SNamespaceResourceManager
func (*SNamespaceResourceManager) AllowCreateItem ¶
func (m *SNamespaceResourceManager) AllowCreateItem(req *common.Request) bool
func (*SNamespaceResourceManager) AllowDeleteItem ¶
func (m *SNamespaceResourceManager) AllowDeleteItem(req *common.Request, id string) bool
func (*SNamespaceResourceManager) AllowGetItem ¶
func (m *SNamespaceResourceManager) AllowGetItem(req *common.Request, id string) bool
func (*SNamespaceResourceManager) AllowListItems ¶
func (m *SNamespaceResourceManager) AllowListItems(req *common.Request) bool
func (*SNamespaceResourceManager) AllowUpdateItem ¶
func (m *SNamespaceResourceManager) AllowUpdateItem(req *common.Request, id string) bool
func (*SNamespaceResourceManager) InNamespace ¶
func (m *SNamespaceResourceManager) InNamespace() bool
func (*SNamespaceResourceManager) IsOwner ¶
func (m *SNamespaceResourceManager) IsOwner(req *common.Request) bool
func (*SNamespaceResourceManager) ValidateCreateData ¶
func (m *SNamespaceResourceManager) ValidateCreateData(req *common.Request) error
type SResourceBaseManager ¶
type SResourceBaseManager struct {
// contains filtered or unexported fields
}
func NewResourceBaseManager ¶
func NewResourceBaseManager(keyword, keywordPlural string) *SResourceBaseManager
func (*SResourceBaseManager) AllowCreateItem ¶
func (m *SResourceBaseManager) AllowCreateItem(req *common.Request) bool
func (*SResourceBaseManager) AllowDeleteItem ¶
func (m *SResourceBaseManager) AllowDeleteItem(req *common.Request, id string) bool
func (*SResourceBaseManager) AllowGetItem ¶
func (m *SResourceBaseManager) AllowGetItem(req *common.Request, id string) bool
func (*SResourceBaseManager) AllowListItems ¶
func (m *SResourceBaseManager) AllowListItems(req *common.Request) bool
func (*SResourceBaseManager) AllowUpdateItem ¶
func (m *SResourceBaseManager) AllowUpdateItem(req *common.Request, id string) bool
func (*SResourceBaseManager) Create ¶
func (m *SResourceBaseManager) Create(req *common.Request) (interface{}, error)
func (*SResourceBaseManager) Delete ¶
func (m *SResourceBaseManager) Delete(req *common.Request, id string) error
func (*SResourceBaseManager) Get ¶
func (m *SResourceBaseManager) Get(req *common.Request, id string) (interface{}, error)
func (*SResourceBaseManager) InNamespace ¶
func (m *SResourceBaseManager) InNamespace() bool
func (*SResourceBaseManager) IsRawResource ¶
func (m *SResourceBaseManager) IsRawResource() bool
func (*SResourceBaseManager) Keyword ¶
func (m *SResourceBaseManager) Keyword() string
func (*SResourceBaseManager) KeywordPlural ¶
func (m *SResourceBaseManager) KeywordPlural() string
func (*SResourceBaseManager) List ¶
func (m *SResourceBaseManager) List(req *common.Request) (common.ListResource, error)
func (*SResourceBaseManager) Update ¶
func (m *SResourceBaseManager) Update(req *common.Request, id string) (interface{}, error)
func (*SResourceBaseManager) ValidateCreateData ¶
func (m *SResourceBaseManager) ValidateCreateData(req *common.Request) error
Click to show internal directories.
Click to hide internal directories.