osclient

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserExists

func CheckUserExists(email string) (bool, error)

Checks to see if the user exists on openstack

func Create

func Create(email string) (string, string, error)

Creats the account on openstack and returns username and password for the user to get

func GetUserID

func GetUserID(email string) (string, error)

func RefreshClientsIfNeeded added in v1.1.0

func RefreshClientsIfNeeded()

RefreshClientsIfNeeded() will check if the token has expired and refresh the clients To be used before making any openstack API calls

func Reset

func Reset(email string) (string, string, error)

Resets the account's password and returns the new temporary password for the user to login and change

Types

type NetworkOpts added in v1.1.0

type NetworkOpts struct {
	FloatingIP        int
	Network           int
	Port              int
	Router            int
	Subnet            int
	SecurityGroup     int
	SecurityGroupRule int
}

networkOpts is a struct for the quotas to be applied in network service

func NewNetworkOpts added in v1.1.0

func NewNetworkOpts() NetworkOpts

type QuotaOpts added in v1.1.0

type QuotaOpts struct {
	InjectedFileContentBytes int
	InjectedFilePathBytes    int
	InjectedFiles            int
	KeyPairs                 int
	RAM                      int
	Cores                    int
	Instances                int
	ServerGroups             int
	ServerGroupMembers       int
}

QuotaOpts defines the quota options for a compute resource in OpenStack.

func NewQuotaOpts added in v1.1.0

func NewQuotaOpts() QuotaOpts

type StorageOpts

type StorageOpts struct {
	Volumes   int
	Snapshots int
	Gigabytes int
}

StorageOpts defines the quota options for block storage resources in OpenStack.

func NewStorageOpts added in v1.1.0

func NewStorageOpts() StorageOpts

Jump to

Keyboard shortcuts

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