Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResourcesRepository ¶
func CreateResourcesRepository(newResourcesRepository ResourcesRepository)
Types ¶
type DefaultResourcesRepository ¶
type DefaultResourcesRepository struct {
ResourcesRepository
}
func (*DefaultResourcesRepository) GetResource ¶
func (r *DefaultResourcesRepository) GetResource(resourceName string) (*Resource, error)
func (*DefaultResourcesRepository) IsResourceExist ¶
func (r *DefaultResourcesRepository) IsResourceExist(resourceName string) bool
type ResourcesRepository ¶
type ResourcesRepository interface { ListResources() *[]Resource GetResource(resourceName string) (*Resource, error) IsResourceExist(resourceName string) bool }
func GetResourcesRepository ¶
func GetResourcesRepository() ResourcesRepository
Click to show internal directories.
Click to hide internal directories.