internet

package
v2.32.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNotFoundRetry = 360 // デフォルトの5秒おきリトライの場合30分

DefaultNotFoundRetry スイッチ+ルータ作成後のReadで404が返ってこなくなるまでに許容する404エラーの回数

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	Internet sacloud.InternetAPI
}

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

func NewAPIClient

func NewAPIClient(caller sacloud.APICaller) *APIClient

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

type Builder

type Builder struct {
	Name           string
	Description    string
	Tags           types.Tags
	IconID         types.ID
	NetworkMaskLen int
	BandWidthMbps  int
	EnableIPv6     bool

	NotFoundRetry int

	NoWait bool

	Client *APIClient
}

Builder スイッチ+ルータの構築を行う

func (*Builder) Build

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

Build ルータ+スイッチの作成や設定をまとめて行う

func (*Builder) Update

func (b *Builder) Update(ctx context.Context, zone string, id types.ID) (*sacloud.Internet, 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