Documentation
¶
Index ¶
- Constants
- func ExtractDBs(page pagination.Page) ([]databases.Database, error)
- func ExtractUsers(r pagination.Page) ([]users.User, error)
- func Provider() terraform.ResourceProvider
- type ContainerClient
- type ContainerClientFixture
- func (c *ContainerClientFixture) Delete(url string, opts *gophercloud.RequestOpts) (*http.Response, error)
- func (c *ContainerClientFixture) Get(url string, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error)
- func (c *ContainerClientFixture) Head(url string, opts *gophercloud.RequestOpts) (*http.Response, error)
- func (c *ContainerClientFixture) Patch(url string, jsonBody interface{}, jsonResponse interface{}, ...) (*http.Response, error)
- func (c *ContainerClientFixture) Post(url string, jsonBody interface{}, jsonResponse interface{}, ...) (*http.Response, error)
- func (c *ContainerClientFixture) Put(url string, jsonBody interface{}, jsonResponse interface{}, ...) (*http.Response, error)
- func (c *ContainerClientFixture) ServiceURL(parts ...string) string
- type DBPage
- type DBUserPage
- type FakeBody
Constants ¶
const ( Redis = "redis" MongoDB = "mongodb" PostgresPro = "postgrespro" Galera = "galera_mysql" Postgres = "postgresql" Clickhouse = "clickhouse" MySQL = "mysql" Tarantool = "tarantool" )
Datastore names
Variables ¶
This section is empty.
Functions ¶
func ExtractDBs ¶ added in v0.6.13
func ExtractDBs(page pagination.Page) ([]databases.Database, error)
ExtractDBs will convert a generic pagination struct into a more relevant slice of DB structs.
func ExtractUsers ¶ added in v0.6.13
func ExtractUsers(r pagination.Page) ([]users.User, error)
ExtractUsers will convert a generic pagination struct into a more relevant slice of User structs.
func Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a schema.Provider for MCS.
Types ¶
type ContainerClient ¶
type ContainerClient interface { Get(url string, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error) Post(url string, jsonBody interface{}, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error) Patch(url string, jsonBody interface{}, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error) Delete(url string, opts *gophercloud.RequestOpts) (*http.Response, error) Head(url string, opts *gophercloud.RequestOpts) (*http.Response, error) Put(url string, jsonBody interface{}, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error) ServiceURL(parts ...string) string }
ContainerClient is interface to work with gophercloud requests
type ContainerClientFixture ¶
ContainerClientFixture ...
func (*ContainerClientFixture) Delete ¶
func (c *ContainerClientFixture) Delete(url string, opts *gophercloud.RequestOpts) (*http.Response, error)
Delete ...
func (*ContainerClientFixture) Get ¶
func (c *ContainerClientFixture) Get(url string, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error)
Get ...
func (*ContainerClientFixture) Head ¶
func (c *ContainerClientFixture) Head(url string, opts *gophercloud.RequestOpts) (*http.Response, error)
Head ...
func (*ContainerClientFixture) Patch ¶
func (c *ContainerClientFixture) Patch(url string, jsonBody interface{}, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error)
Patch ...
func (*ContainerClientFixture) Post ¶
func (c *ContainerClientFixture) Post(url string, jsonBody interface{}, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error)
Post ...
func (*ContainerClientFixture) Put ¶
func (c *ContainerClientFixture) Put(url string, jsonBody interface{}, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error)
Put ...
func (*ContainerClientFixture) ServiceURL ¶
func (c *ContainerClientFixture) ServiceURL(parts ...string) string
ServiceURL ...
type DBPage ¶ added in v0.6.13
type DBPage struct {
pagination.LinkedPageBase
}
Custom type implementation of gophercloud/database.DBPage
func (DBPage) NextPageURL ¶ added in v0.6.13
NextPageURL will retrieve the next page URL.
type DBUserPage ¶ added in v0.6.13
type DBUserPage struct {
pagination.LinkedPageBase
}
Custom type implementation of gophercloud/users.UserPage
func (DBUserPage) IsEmpty ¶ added in v0.6.13
func (page DBUserPage) IsEmpty() (bool, error)
IsEmpty checks to see whether the collection is empty.
func (DBUserPage) NextPageURL ¶ added in v0.6.13
func (page DBUserPage) NextPageURL() (string, error)
NextPageURL will retrieve the next page URL.
Source Files
¶
- data_source_mcs_db_database.go
- data_source_mcs_db_instance.go
- data_source_mcs_db_user.go
- data_source_mcs_kubernetes_cluster.go
- data_source_mcs_kubernetes_cluster_template.go
- data_source_mcs_kubernetes_cluster_templates.go
- data_source_mcs_kubernetes_node_group.go
- data_source_mcs_region.go
- data_source_mcs_regions.go
- db_cluster.go
- db_cluster_client.go
- db_database.go
- db_instance.go
- db_instance_client.go
- db_user.go
- kubernetes_cluster_client.go
- kubernetes_shared.go
- mcs_common.go
- provider.go
- resource_mcs_db_cluster.go
- resource_mcs_db_cluster_with_shards.go
- resource_mcs_db_database.go
- resource_mcs_db_instance.go
- resource_mcs_db_user.go
- resource_mcs_kubernetes_cluster.go
- resource_mcs_kubernetes_node_group.go
- test_suite.go
- urls.go
- util.go