utils

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func GetResourcesFromDB[T any](ctx context.Context) ([]T, error)

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.

Jump to

Keyboard shortcuts

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