utils

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 3 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 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