account

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package account is responsible for retrieving information related to the current account.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(client HttpClient) *API

func (*API) ListDataPersistence

func (a *API) ListDataPersistence(ctx context.Context) ([]*DataPersistence, error)

ListDataPersistence will return the list of available data persistence values.

func (*API) ListDatabaseModules

func (a *API) ListDatabaseModules(ctx context.Context) ([]*DatabaseModule, error)

ListDatabaseModules will return the list of available data modules that can be applied to a database.

func (*API) ListPaymentMethods

func (a *API) ListPaymentMethods(ctx context.Context) ([]*PaymentMethod, error)

ListPaymentMethods will return the list of available payment methods.

func (*API) ListRegions

func (a *API) ListRegions(ctx context.Context) ([]*Region, error)

ListRegions will return the list of available regions.

type DataPersistence

type DataPersistence struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

func (DataPersistence) String

func (o DataPersistence) String() string

type DatabaseModule

type DatabaseModule struct {
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
}

func (DatabaseModule) String

func (o DatabaseModule) String() string

type HttpClient

type HttpClient interface {
	Get(ctx context.Context, name, path string, responseBody interface{}) error
}

type PaymentMethod

type PaymentMethod struct {
	ID                 *int    `json:"id,omitempty"`
	Type               *string `json:"type,omitempty"`
	CreditCardEndsWith *int    `json:"creditCardEndsWith,omitempty"`
	ExpirationMonth    *int    `json:"expirationMonth"`
	ExpirationYear     *int    `json:"expirationYear"`
}

func (PaymentMethod) String

func (o PaymentMethod) String() string

type Region

type Region struct {
	Name     *string `json:"name,omitempty"`
	Provider *string `json:"provider,omitempty"`
}

func (Region) String

func (o Region) String() string

Jump to

Keyboard shortcuts

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