Versions in this module Expand all Collapse all v0 v0.1.1 Nov 18, 2021 Changes in this version + func NewProvisioningServer(instanceID string, serverConfiguration interface{}) (server.ProvisioningServer, error) + type Account struct + func (a *Account) Credentials() (server.Credentials, error) + func (a *Account) Resources() ([]*server.Resource, error) + type AccountConfiguration struct + Password string + Quota float64 + func ParseAccountConfiguration(config interface{}) (ac AccountConfiguration, err error) + func (ac AccountConfiguration) PasswordEncrypted() string + func (ac AccountConfiguration) PasswordSHA224() string + func (ac AccountConfiguration) QuotaBytes() int64 + type Credentials struct + func (c *Credentials) Admin() (credentials []*server.Credential) + func (c *Credentials) Customer() (credentials []*server.Credential) + type MysqlConfig struct + CACertPath string + ClientCertPath string + ClientKeyPath string + Database string + Host string + Password string + Port uint16 + User string + type ProvisioningServer struct + func (p *ProvisioningServer) CreateAccount(productSN uint64, accountConfiguration interface{}) error + func (p *ProvisioningServer) DeleteAccount(productSN uint64) error + func (p *ProvisioningServer) GetAccount(productSN uint64) (server.Account, error) + func (p *ProvisioningServer) RefreshAccount(productSN uint64) error + func (p *ProvisioningServer) SuspendAccount(productSN uint64) error + func (p *ProvisioningServer) UnsuspendAccount(productSN uint64) error + func (p *ProvisioningServer) UpdateAccount(productSN uint64, accountConfiguration interface{}) error + type ProvisioningServerConfig struct + Info ServerInfo + Mysql MysqlConfig + func ParseProvisioningServerConfig(v interface{}) (ProvisioningServerConfig, error) + func (psc ProvisioningServerConfig) ToJson() string + type ServerInfo struct + ServerAddress string + ServerMonthlyBandwidth float64 + ServerPort uint16