Documentation ¶
Index ¶
- Constants
- func OpenZipFile(sc ServerConfig, path string) (map[string]*CertificateHolder, error)
- func Provider() *schema.Provider
- type CertificateHolder
- type Database
- type DatabaseToDelete
- type DeployError
- type Index
- type IndexesToDelete
- type NodeState
- type Package
- type SSH
- type ServerConfig
- func (sc *ServerConfig) ConnectToRemoteWithRetry(publicIP string, conn *ssh.Client, authConfig *ssh.ClientConfig) (*ssh.Client, error)
- func (sc *ServerConfig) ConvertPfx() (holder CertificateHolder, err error)
- func (sc *ServerConfig) Deploy(parallel bool) (string, error)
- func (sc *ServerConfig) GetUrlByIndex(index int, scheme string) (string, string, error)
- func (sc *ServerConfig) ReadServer(publicIP string, index int) (NodeState, error)
- func (sc *ServerConfig) RemoveRavenDbInstances() diag.Diagnostics
- type Url
Constants ¶
View Source
const ( NUMBER_OF_RETRIES int = 5 DEFAULT_SECURE_RAVENDB_HTTP_PORT int = 443 DEFAULT_USECURED_RAVENDB_HTTP_PORT int = 8080 DEFAULT_SECURE_RAVENDB_TCP_PORT int = 38888 DEFAULT_UNSECURED_RAVENDB_TCP_PORT int = 38881 DEFAULT_HTTP_PORT int = 80 CREDENTIALS_FOR_SECURE_STORE_FIELD_NAME string = "store" ADMIN_CERTIFICATE string = "Admin Certificate" )
Variables ¶
This section is empty.
Functions ¶
func OpenZipFile ¶ added in v1.0.1
func OpenZipFile(sc ServerConfig, path string) (map[string]*CertificateHolder, error)
Types ¶
type CertificateHolder ¶ added in v1.0.1
type CertificateHolder struct { Pfx []byte `json:"Pfx,omitempty"` Cert []byte `json:"Cert,omitempty"` Key []byte `json:"Key,omitempty"` }
func (CertificateHolder) String ¶ added in v1.0.1
func (sc CertificateHolder) String() (string, error)
type DatabaseToDelete ¶ added in v1.0.2
type DeployError ¶
func (*DeployError) Error ¶
func (e *DeployError) Error() string
type IndexesToDelete ¶ added in v1.0.2
type NodeState ¶
type NodeState struct { Host string `json:"Host,omitempty"` Licence []byte `json:"Licence,omitempty"` Settings map[string]interface{} `json:"Settings,omitempty"` ClusterSetupZip map[string]CertificateHolder `json:"ClusterSetupZip,omitempty"` HttpUrl string `json:"HttpUrl,omitempty"` TcpUrl string `json:"TcpUrl,omitempty"` Assets map[string][]byte `json:"Assets,omitempty"` Unsecured bool `json:"Unsecured,omitempty"` Version string `json:"Version,omitempty"` Failed bool `json:"Failed,omitempty"` Databases []Database `json:"Databases,omitempty"` DatabasesToDelete []DatabaseToDelete `json:"DatabasesToDelete,omitempty"` IndexesToDelete []IndexesToDelete `json:"IndexesToDelete,omitempty"` }
type ServerConfig ¶
type ServerConfig struct { Package Package `json:"Package"` Hosts []string `json:"Hosts,omitempty"` License []byte `json:"License,omitempty"` Settings map[string]interface{} `json:"Settings,omitempty"` ClusterSetupZip map[string]*CertificateHolder `json:"ClusterSetupZip,omitempty"` Url Url `json:"Url"` Assets map[string][]byte `json:"Assets,omitempty"` Unsecured bool `json:"Unsecured,omitempty"` SSH SSH `json:"SSH"` HealthcheckDatabase string `json:"HealthcheckDatabase,omitempty"` Databases []Database `json:"Databases,omitempty"` DatabasesToDelete []DatabaseToDelete `json:"DatabasesToDelete,omitempty"` IndexesToDelete []IndexesToDelete `json:"IndexesToDelete,omitempty"` }
func (*ServerConfig) ConnectToRemoteWithRetry ¶
func (sc *ServerConfig) ConnectToRemoteWithRetry(publicIP string, conn *ssh.Client, authConfig *ssh.ClientConfig) (*ssh.Client, error)
func (*ServerConfig) ConvertPfx ¶ added in v1.0.1
func (sc *ServerConfig) ConvertPfx() (holder CertificateHolder, err error)
func (*ServerConfig) GetUrlByIndex ¶
func (*ServerConfig) ReadServer ¶
func (sc *ServerConfig) ReadServer(publicIP string, index int) (NodeState, error)
func (*ServerConfig) RemoveRavenDbInstances ¶
func (sc *ServerConfig) RemoveRavenDbInstances() diag.Diagnostics
Click to show internal directories.
Click to hide internal directories.