vpcrouter

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalNICSettingHolder

type AdditionalNICSettingHolder interface {
	// contains filtered or unexported methods
}

AdditionalNICSettingHolder VPCルータのeth1-eth7の設定

type AdditionalPremiumNICSetting

type AdditionalPremiumNICSetting struct {
	SwitchID         types.ID
	IPAddress1       string
	IPAddress2       string
	VirtualIPAddress string
	NetworkMaskLen   int
	Index            int
}

AdditionalPremiumNICSetting VPCルータのeth1-eth7の設定(プレミアム/ハイスペックプラン向け)

type AdditionalStandardNICSetting

type AdditionalStandardNICSetting struct {
	SwitchID       types.ID
	IPAddress      string
	NetworkMaskLen int
	Index          int
}

AdditionalStandardNICSetting VPCルータのeth1-eth7の設定(スタンダードプラン向け)

type Builder

type Builder struct {
	Name                  string
	Description           string
	Tags                  types.Tags
	IconID                types.ID
	PlanID                types.ID
	NICSetting            NICSettingHolder
	AdditionalNICSettings []AdditionalNICSettingHolder
	RouterSetting         *RouterSetting

	SetupOptions *builder.RetryableSetupParameter
	Client       sacloud.VPCRouterAPI
}

Builder VPCルータの構築を行う

func (*Builder) Build

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

Build VPCルータの作成、スイッチの接続をまとめて行う

func (*Builder) Update

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

Update VPCルータの更新(再起動を伴う場合あり)

接続先スイッチが変更されていた場合、VPCルータの再起動が行われます。

func (*Builder) Validate

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

Validate 設定値の検証

type NICSettingHolder

type NICSettingHolder interface {
	// contains filtered or unexported methods
}

NICSettingHolder VPCルータのeth0の設定 SharedNICSettingまたはRouterNICSettingを指定する

type PremiumNICSetting

type PremiumNICSetting struct {
	SwitchID         types.ID
	IPAddress1       string
	IPAddress2       string
	VirtualIPAddress string
	IPAliases        []string
}

PremiumNICSetting VPCルータのeth0をスイッチ+ルータに接続するためのSetting(プレミアム/ハイスペックプラン)

type RouterSetting

type RouterSetting struct {
	VRID                      int
	InternetConnectionEnabled types.StringFlag
	StaticNAT                 []*sacloud.VPCRouterStaticNAT
	PortForwarding            []*sacloud.VPCRouterPortForwarding
	Firewall                  []*sacloud.VPCRouterFirewall
	DHCPServer                []*sacloud.VPCRouterDHCPServer
	DHCPStaticMapping         []*sacloud.VPCRouterDHCPStaticMapping
	PPTPServer                *sacloud.VPCRouterPPTPServer
	L2TPIPsecServer           *sacloud.VPCRouterL2TPIPsecServer
	RemoteAccessUsers         []*sacloud.VPCRouterRemoteAccessUser
	SiteToSiteIPsecVPN        []*sacloud.VPCRouterSiteToSiteIPsecVPN
	StaticRoute               []*sacloud.VPCRouterStaticRoute
	SyslogHost                string
}

RouterSetting VPCルータの設定

type StandardNICSetting

type StandardNICSetting struct{}

StandardNICSetting VPCルータのeth0を共有セグメントに接続するためのSetting(スタンダードプラン)

Jump to

Keyboard shortcuts

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