localrouter

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 3 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 {
	LocalRouter sacloud.LocalRouterAPI
}

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

	Switch       *sacloud.LocalRouterSwitch
	Interface    *sacloud.LocalRouterInterface
	Peers        []*sacloud.LocalRouterPeer
	StaticRoutes []*sacloud.LocalRouterStaticRoute

	SettingsHash string

	Client *APIClient
}

Builder ローカルルータの構築を行う

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) (*sacloud.LocalRouter, error)

Build ローカルルータの作成や設定をまとめて行う

func (*Builder) Update

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

Update ローカルルータの更新

func (*Builder) Validate

func (b *Builder) Validate(_ context.Context) error

Validate 設定値の検証

Jump to

Keyboard shortcuts

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