database

package
v2.8.8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	Database sacloud.DatabaseAPI
}

APIClient builderが利用するAPIクライアント

func NewAPIClient

func NewAPIClient(caller sacloud.APICaller) *APIClient

NewAPIClient builderが利用するAPIクライアントを返す

type Builder

type Builder struct {
	PlanID             types.ID
	SwitchID           types.ID
	IPAddresses        []string
	NetworkMaskLen     int
	DefaultRoute       string
	Conf               *sacloud.DatabaseRemarkDBConfCommon
	SourceID           types.ID
	CommonSetting      *sacloud.DatabaseSettingCommon
	BackupSetting      *sacloud.DatabaseSettingBackup
	ReplicationSetting *sacloud.DatabaseReplicationSetting
	Name               string
	Description        string
	Tags               types.Tags
	IconID             types.ID

	SettingsHash string

	SetupOptions *builder.RetryableSetupParameter
	Client       *APIClient
}

Builder データベースの構築を行う

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, zone string) (*sacloud.Database, error)

Build データベースの作成や設定をまとめて行う

func (*Builder) Update

func (b *Builder) Update(ctx context.Context, zone string, id types.ID) (*sacloud.Database, error)

Update データベースの更新

func (*Builder) Validate

func (b *Builder) Validate(ctx context.Context, zone string) error

Validate 設定値の検証

Jump to

Keyboard shortcuts

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