Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAllResources ¶
func DeleteAllResources(manager ResourceManager, ctx context.Context, list model.ResourceList, fs ...store.DeleteAllOptionsFunc) error
func IsMeshNotFound ¶
func MeshNotFound ¶
Types ¶
type MeshNotFoundError ¶
type MeshNotFoundError struct {
Mesh string
}
func (*MeshNotFoundError) Error ¶
func (m *MeshNotFoundError) Error() string
type ReadOnlyResourceManager ¶
type ReadOnlyResourceManager interface { Get(context.Context, model.Resource, ...store.GetOptionsFunc) error List(context.Context, model.ResourceList, ...store.ListOptionsFunc) error }
func NewCachedManager ¶
func NewCachedManager(delegate ReadOnlyResourceManager, expirationTime time.Duration) ReadOnlyResourceManager
type ResourceManager ¶
type ResourceManager interface { ReadOnlyResourceManager Create(context.Context, model.Resource, ...store.CreateOptionsFunc) error Update(context.Context, model.Resource, ...store.UpdateOptionsFunc) error Delete(context.Context, model.Resource, ...store.DeleteOptionsFunc) error DeleteAll(context.Context, model.ResourceList, ...store.DeleteAllOptionsFunc) error }
func NewCustomizableResourceManager ¶
func NewCustomizableResourceManager(defaultManager ResourceManager, customManagers map[model.ResourceType]ResourceManager) ResourceManager
func NewResourceManager ¶
func NewResourceManager(store store.ResourceStore) ResourceManager
Click to show internal directories.
Click to hide internal directories.