resources

package
v0.0.0-...-94e4715 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KindManager

type KindManager interface {
	Keyword() string
	KeywordPlural() string
	GetDetails(cli *client.CacheFactory, cluster api.ICluster, namespace, name string) (interface{}, error)
}

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 (m *SClusterResourceManager) AllowGetItem(ctx context.Context, req *common.Request, id string) bool

func (*SClusterResourceManager) AllowListItems

func (m *SClusterResourceManager) AllowListItems(req *common.Request) bool

func (*SClusterResourceManager) AllowUpdateItem

func (m *SClusterResourceManager) AllowUpdateItem(ctx context.Context, req *common.Request, id string) bool

func (*SClusterResourceManager) CustomizeCreate

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 (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 (*SResourceBaseManager) Update

func (m *SResourceBaseManager) Update(req *common.Request, id string) (interface{}, error)

func (*SResourceBaseManager) ValidateCreateData

func (m *SResourceBaseManager) ValidateCreateData(req *common.Request) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL