helpers

package
v0.4.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TempUserName = "TemporaryUser"

Variables

This section is empty.

Functions

func CreateDomainUnderParent

func CreateDomainUnderParent(csClient *cloudstack.CloudStackClient, parentID string, domainName string) (string, error)

CreateDomainUnderParent creates a domain as a sub-domain of the passed parent.

func DeleteDomain

func DeleteDomain(csClient *cloudstack.CloudStackClient, domainID string) error

DeleteDomain deletes a domain by ID.

func GetDomainByPath

func GetDomainByPath(csClient *cloudstack.CloudStackClient, path string) (string, error, bool)

GetDomainByPath fetches a domain by its path.

func GetOrCreateAccount

func GetOrCreateAccount(csClient *cloudstack.CloudStackClient, account *cloud.Account) error

GetOrCreateAccount creates a domain as specified in the passed account object.

func GetOrCreateDomain

func GetOrCreateDomain(csClient *cloudstack.CloudStackClient, domain *cloud.Domain) error

GetOrCreateDomain gets or creates a domain as specified in the passed domain object.

func GetOrCreateUserWithKey

func GetOrCreateUserWithKey(csClient *cloudstack.CloudStackClient, user *cloud.User) error

GetOrCreateUserWithKey creates a domain as specified in the passed account object. Right now only works with a default TemporaryUser name. This function was only built to get a testing user built.

func NewCSClient

func NewCSClient() (*cloudstack.CloudStackClient, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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