Documentation ¶
Index ¶
- Constants
- func CreateDomainUnderParent(csClient *cloudstack.CloudStackClient, parentID string, domainName string) (string, error)
- func DeleteDomain(csClient *cloudstack.CloudStackClient, domainID string) error
- func GetDomainByPath(csClient *cloudstack.CloudStackClient, path string) (string, error, bool)
- func GetOrCreateAccount(csClient *cloudstack.CloudStackClient, account *cloud.Account) error
- func GetOrCreateDomain(csClient *cloudstack.CloudStackClient, domain *cloud.Domain) error
- func GetOrCreateUserWithKey(csClient *cloudstack.CloudStackClient, user *cloud.User) error
- func NewCSClient() (*cloudstack.CloudStackClient, error)
- func UnmarshalAllConfigs(in []byte, out *[]Config) error
- type CSConf
- type Config
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)
NewCSClient creates a CloudStack-Go client from the cloud-config file.
func UnmarshalAllConfigs ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.