mcs

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
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

type ContainerClientFixture struct {
	mock.Mock
}

ContainerClientFixture ...

func (*ContainerClientFixture) Delete

Delete ...

func (*ContainerClientFixture) Get

func (c *ContainerClientFixture) Get(url string, jsonResponse interface{}, opts *gophercloud.RequestOpts) (*http.Response, error)

Get ...

func (*ContainerClientFixture) Head

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) IsEmpty added in v0.6.13

func (page DBPage) IsEmpty() (bool, error)

IsEmpty checks to see whether the collection is empty.

func (DBPage) NextPageURL added in v0.6.13

func (page DBPage) NextPageURL() (string, error)

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.

type FakeBody

type FakeBody struct {
	// contains filtered or unexported fields
}

FakeBody is struct that implements ReadCloser interface; use it for http.Response.Body mock

func (*FakeBody) Close

func (f *FakeBody) Close() (err error)

Close ...

func (*FakeBody) Read

func (f *FakeBody) Read(p []byte) (n int, err error)

Read ...

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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