Documentation
¶
Index ¶
- Variables
- func GetResourcesFromDB[T any](ctx context.Context) ([]T, error)
- func IsValidDomainScope(scope openstackclients.ClientScope) error
- func IsValidProjectScope(scope openstackclients.ClientScope) error
- func MatchScopeToProject(scope openstackclients.ClientScope, projects []models.Project) (models.Project, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoProjectMatchingScope = errors.New("no project matching scope found")
ErrNoProjectMatchingScope is an error which is returned when the task for finding models.Project project by client scope doesn't find a match.
Functions ¶
func GetResourcesFromDB ¶ added in v0.1.14
GetResourcesFromDB fetches the given model from the database.
func IsValidDomainScope ¶
func IsValidDomainScope(scope openstackclients.ClientScope) error
IsValidDomainScope can be used to check the scope fields are set for usage on the domain level.
func IsValidProjectScope ¶
func IsValidProjectScope(scope openstackclients.ClientScope) error
IsValidProjectScope can be used to check the scope fields are set for usage on the project level.
func MatchScopeToProject ¶ added in v0.1.14
func MatchScopeToProject(scope openstackclients.ClientScope, projects []models.Project) (models.Project, error)
MatchScopeToProject matches the given scope to an OpenStack project.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.