Documentation
¶
Index ¶
- Variables
- func AllConditionsTrue(conditions []metav1.Condition) bool
- func ControllerIdentifier(ctx context.Context, r client.Client) (*string, error)
- func GetOpenStackProject(ctx context.Context, client *psos.PsOpenstackClient, ...) (*openapi.ProjectCreatedResponse, error)
- func GetOpenStackProjectName(controllerId string, project types.NamespacedName) string
- func GetOpenStackUser(ctx context.Context, client *psos.PsOpenstackClient, openStackUsername string) (*openapi.CreatedOpenStackUser, error)
- func IsEmpty(s string) bool
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 ¶
AllConditionsTrue checks if all specified conditions have the status true If the slice is empty, it returns false
func ControllerIdentifier ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.