utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOpenStackProjectNotFound = errors.New("openstack project not found")

ErrOpenStackProjectNotFound is returned if the project is not found

View Source
var ErrOpenStackUserNotFound = errors.New("openstack user not found")

ErrOpenStackUserNotFound is returned if the user is not found

Functions

func AllConditionsTrue

func AllConditionsTrue(conditions []metav1.Condition) bool

AllConditionsTrue checks if all specified conditions have the status true If the slice is empty, it returns false

func ControllerIdentifier

func ControllerIdentifier(ctx context.Context, r client.Client) (*string, error)

ControllerIdentifier fetches the pco-reseller-operator-id secret and retrieves the unique operator id from it

func GetOpenStackProject

func GetOpenStackProject(ctx context.Context, client *psos.PsOpenstackClient, openStackProjectName string) (*openapi.ProjectCreatedResponse, error)

GetOpenStackProject returns the openstack project from the API

func GetOpenStackProjectName

func GetOpenStackProjectName(controllerId string, project types.NamespacedName) string

GetOpenStackProjectName templates the project name

func GetOpenStackUser

func GetOpenStackUser(ctx context.Context, client *psos.PsOpenstackClient, openStackUsername string) (*openapi.CreatedOpenStackUser, error)

GetOpenStackUser returns the openstack user from the API

func IsEmpty

func IsEmpty(s string) bool

IsEmpty returns if the given string is empty after trimming spaces

Types

This section is empty.

Jump to

Keyboard shortcuts

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