sacloud

package
v1.36.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 14 Imported by: 103

Documentation

Overview

Package sacloud is define models for SakuraCloud.

Index

Constants

View Source
const (
	// DatabaseReplicationModelMasterSlave レプリケーションモデル: Master-Slave(マスター側)
	DatabaseReplicationModelMasterSlave = "Master-Slave"
	// DatabaseReplicationModelAsyncReplica レプリケーションモデル: Async-Replica(スレーブ側)
	DatabaseReplicationModelAsyncReplica = "Async-Replica"
)
View Source
const (
	// DiskPlanHDDID HDDプランID
	DiskPlanHDDID = DiskPlanID(2)
	// DiskPlanSSDID SSDプランID
	DiskPlanSSDID = DiskPlanID(4)
	// DiskConnectionVirtio 準仮想化モード(virtio)
	DiskConnectionVirtio EDiskConnection = "virtio"
	// DiskConnectionIDE IDE
	DiskConnectionIDE EDiskConnection = "ide"
)
View Source
const (
	// PrivateHostClassDynamic 専有ホストプラン(標準)
	PrivateHostClassDynamic = "dynamic"
	// PrivateHostClassWindows 専有ホストプラン(windows)
	PrivateHostClassWindows = "ms_windows"
)
View Source
const (
	// ServerMaxInterfaceLen サーバーに接続できるNICの最大数
	ServerMaxInterfaceLen = 10
	// ServerMaxDiskLen サーバーに接続できるディスクの最大数
	ServerMaxDiskLen = 4
)
View Source
const (
	// SIMOperatorsKDDI KDDI
	SIMOperatorsKDDI = "KDDI"
	// SIMOperatorsDOCOMO Docomo
	SIMOperatorsDOCOMO = "NTT DOCOMO"
	// SIMOperatorsSoftBank SoftBank
	SIMOperatorsSoftBank = "SoftBank"
)
View Source
const (
	// EWebAccelDomainTypeOwn 独自ドメイン
	EWebAccelDomainTypeOwn = EWebAccelDomainType("own_domain")
	// EWebAccelDomainTypeSubDomain サブドメイン
	EWebAccelDomainTypeSubDomain = EWebAccelDomainType("subdomain")
)
View Source
const (
	// EWebAccelStatusEnabled 状態:有効
	EWebAccelStatusEnabled = EWebAccelStatus("enabled")
	// EWebAccelStatusDisabled 状態:無効
	EWebAccelStatusDisabled = EWebAccelStatus("disabled")
)
View Source
const EmptyID = ID(0)

EmptyID 空ID

View Source
const ProxyLBStickySessionDefaultMethod = "cookie"

ProxyLBStickySessionDefaultMethod セッション維持のデフォルトメソッド(クッキー)

View Source
const VPCRouterMaxInterfaceCount = 8

VPCRouterMaxInterfaceCount VPCルータでの最大NIC数(グローバル含む)

Variables

View Source
var (
	// EExternalPermissionBill 請求情報
	EExternalPermissionBill = EExternalPermission("bill")
	// EExternalPermissionCDN ウェブアクセラレータ
	EExternalPermissionCDN = EExternalPermission("cdn")
)
View Source
var (
	// EPermissionCreate 作成・削除権限
	EPermissionCreate = EPermission("create")

	// EPermissionArrange 設定変更権限
	EPermissionArrange = EPermission("arrange")

	// EPermissionPower 電源操作権限
	EPermissionPower = EPermission("power")

	// EPermissionView リソース閲覧権限
	EPermissionView = EPermission("view")
)
View Source
var (
	// EAAvailable 有効
	EAAvailable = EAvailability("available")
	// EAUploading アップロード中
	EAUploading = EAvailability("uploading")
	// EAFailed 失敗
	EAFailed = EAvailability("failed")
	// EAMigrating マイグレーション中
	EAMigrating = EAvailability("migrating")
)
View Source
var (
	// InterfaceDriverVirtIO virtio
	InterfaceDriverVirtIO = EInterfaceDriver("virtio")
	// InterfaceDriverE1000 e1000
	InterfaceDriverE1000 = EInterfaceDriver("e1000")
)
View Source
var (
	// ESCopeShared sharedスコープ
	ESCopeShared = EScope("shared")
	// ESCopeUser userスコープ
	ESCopeUser = EScope("user")
)
View Source
var (
	// EUpstreamNetworkUnknown 不明
	EUpstreamNetworkUnknown = EUpstreamNetworkType("unknown")
	// EUpstreamNetworkShared 共有セグメント
	EUpstreamNetworkShared = EUpstreamNetworkType("shared")
	// EUpstreamNetworkSwitch スイッチ(非スイッチ+ルータ)
	EUpstreamNetworkSwitch = EUpstreamNetworkType("switch")
	// EUpstreamNetworkRouter ルータ(スイッチ+ルータのスイッチ)
	EUpstreamNetworkRouter = EUpstreamNetworkType("router")
	// EUpstreamNetworkNone 接続なし
	EUpstreamNetworkNone = EUpstreamNetworkType("none")

	// UpstreamNetworks 文字列とEUpstreamNetworkTypeのマッピング
	UpstreamNetworks = map[string]EUpstreamNetworkType{
		"unknown": EUpstreamNetworkUnknown,
		"shared":  EUpstreamNetworkShared,
		"switch":  EUpstreamNetworkSwitch,
		"router":  EUpstreamNetworkRouter,
		"none":    EUpstreamNetworkNone,
	}
)
View Source
var (
	// ECommitmentStandard 通常
	ECommitmentStandard = ECommitment("standard")
	// ECommitmentDedicatedCPU コア専有
	ECommitmentDedicatedCPU = ECommitment("dedicatedcpu")
)
View Source
var (
	// TagGroupA サーバをグループ化し起動ホストを分離します(グループA)
	TagGroupA = "@group=a"
	// TagGroupB サーバをグループ化し起動ホストを分離します(グループB)
	TagGroupB = "@group=b"
	// TagGroupC サーバをグループ化し起動ホストを分離します(グループC)
	TagGroupC = "@group=b"
	// TagGroupD サーバをグループ化し起動ホストを分離します(グループD)
	TagGroupD = "@group=b"

	// TagAutoReboot サーバ停止時に自動起動します
	TagAutoReboot = "@auto-reboot"

	// TagKeyboardUS リモートスクリーン画面でUSキーボード入力します
	TagKeyboardUS = "@keyboard-us"

	// TagBootCDROM 優先ブートデバイスをCD-ROMに設定します
	TagBootCDROM = "@boot-cdrom"
	// TagBootNetwork 優先ブートデバイスをPXE bootに設定します
	TagBootNetwork = "@boot-network"

	// TagCPUTopology CPUソケット数を1と認識させる
	TagCPUTopology = "@cpu-topology"
)
View Source
var (
	// PlanDefault デフォルト
	PlanDefault = PlanGenerations(0)
	// PlanG1 第1世代(Generation:100)
	PlanG1 = PlanGenerations(100)
	// PlanG2 第2世代(Generation:200)
	PlanG2 = PlanGenerations(200)
)
View Source
var (
	// DatabasePlanMini ミニプラン(後方互換用)
	DatabasePlanMini = DatabasePlan(10)
	// DatabasePlan10G 10Gプラン
	DatabasePlan10G = DatabasePlan(10)
	// DatabasePlan30G 30Gプラン
	DatabasePlan30G = DatabasePlan(30)
	// DatabasePlan90G 90Gプラン
	DatabasePlan90G = DatabasePlan(90)
	// DatabasePlan240G 240Gプラン
	DatabasePlan240G = DatabasePlan(240)
	// DatabasePlan500G 500Gプラン
	DatabasePlan500G = DatabasePlan(500)
	// DatabasePlan1T 1Tプラン
	DatabasePlan1T = DatabasePlan(1000)
)
View Source
var (
	// DiskPlanHDD HDDプラン
	DiskPlanHDD = DiskPlanHDDID.ToResource()
	// DiskPlanSSD SSDプラン
	DiskPlanSSD = DiskPlanSSDID.ToResource()
)
View Source
var (
	// LoadBalancerPlanStandard スタンダードプラン
	LoadBalancerPlanStandard = LoadBalancerPlan(1)
	// LoadBalancerPlanPremium プレミアムプラン
	LoadBalancerPlanPremium = LoadBalancerPlan(2)
)
View Source
var (
	// NFSPlanHDD 標準プラン(HDD)
	NFSPlanHDD = NFSPlan(1)
	// NFSPlanSSD SSHプラン
	NFSPlanSSD = NFSPlan(2)
)
View Source
var (
	// NFSSize20G 20Gプラン
	NFSSize20G = NFSSize(20)
	// NFSSize100G 100Gプラン
	NFSSize100G = NFSSize(100)
	// NFSSize500G 500Gプラン
	NFSSize500G = NFSSize(500)
	// NFSSize1T 1T(1024GB)プラン
	NFSSize1T = NFSSize(1024 * 1)
	// NFSSize2T 2T(2048GB)プラン
	NFSSize2T = NFSSize(1024 * 2)
	// NFSSize4T 4T(4096GB)プラン
	NFSSize4T = NFSSize(1024 * 4)
	// NFSSize8T 8TBプラン
	NFSSize8T = NFSSize(1024 * 8)
	// NFSSize12T 12TBプラン
	NFSSize12T = NFSSize(1024 * 12)
)
View Source
var (
	// NoteClassShell shellクラス
	NoteClassShell = ENoteClass("shell")
	// NoteClassYAMLCloudConfig yaml_cloud_configクラス
	NoteClassYAMLCloudConfig = ENoteClass("yaml_cloud_config")
)
View Source
var (
	// ProxyLBPlan100 100cpsプラン
	ProxyLBPlan100 = ProxyLBPlan(100)
	// ProxyLBPlan500 500cpsプラン
	ProxyLBPlan500 = ProxyLBPlan(500)
	// ProxyLBPlan1000 1,000cpsプラン
	ProxyLBPlan1000 = ProxyLBPlan(1000)
	// ProxyLBPlan5000 5,000cpsプラン
	ProxyLBPlan5000 = ProxyLBPlan(5000)
	// ProxyLBPlan10000 10,000cpsプラン
	ProxyLBPlan10000 = ProxyLBPlan(10000)
	// ProxyLBPlan50000 50,000cpsプラン
	ProxyLBPlan50000 = ProxyLBPlan(50000)
	// ProxyLBPlan100000 100,000cpsプラン
	ProxyLBPlan100000 = ProxyLBPlan(100000)
	// ProxyLBPlan400000 400,000cpsプラン
	ProxyLBPlan400000 = ProxyLBPlan(400000)
)
View Source
var (
	// EHealthUp Up
	EHealthUp = ESimpleMonitorHealth("UP")
	// EHealthDown Down
	EHealthDown = ESimpleMonitorHealth("DOWN")
)
View Source
var AllowProxyLBBindModes = []string{"http", "https", "tcp"}

AllowProxyLBBindModes プロキシ方式

View Source
var AllowProxyLBHealthCheckProtocols = []string{"http", "tcp"}

AllowProxyLBHealthCheckProtocols プロキシLBで利用できるヘルスチェックプロトコル

AllowProxyLBPlans 有効なプランIDリスト

View Source
var DatetimeLayout = "2006-01-02T15:04:05-07:00"

DatetimeLayout さくらのクラウドAPIで利用される日付型のレイアウト(RFC3339)

View Source
var (
	// EAuthClassAccount アカウント認証
	EAuthClassAccount = EAuthClass("account")
)
View Source
var (
	// EAuthMethodAPIKey APIキー認証
	EAuthMethodAPIKey = EAuthMethod("apikey")
)

ENoteClasses 設定可能なスタートアップスクリプトクラス

View Source
var (
	// EOperationPenaltyNone ペナルティなし
	EOperationPenaltyNone = EOperationPenalty("none")
)
View Source
var (
	// MobileGatewayPlanStandard スタンダードプラン // TODO 正式名称不明なため暫定の名前
	MobileGatewayPlanStandard = MobileGatewayPlan(2)
)

Functions

func AllowArchiveSizes

func AllowArchiveSizes() []string

AllowArchiveSizes 作成できるアーカイブのサイズ

func AllowAutoBackupWeekdays

func AllowAutoBackupWeekdays() []string

AllowAutoBackupWeekdays 自動バックアップ実行曜日リスト

func AllowDNSTypes

func AllowDNSTypes() []string

AllowDNSTypes DNSレコード種別リスト

func AllowDatabaseBackupWeekdays

func AllowDatabaseBackupWeekdays() []string

AllowDatabaseBackupWeekdays データベースバックアップ実行曜日リスト

func AllowDatabasePlans

func AllowDatabasePlans() []int

AllowDatabasePlans 指定可能なデータベースプラン

func AllowGSLBHealthCheckProtocol

func AllowGSLBHealthCheckProtocol() []string

AllowGSLBHealthCheckProtocol GSLB監視プロトコルリスト

func AllowInternetBandWidth

func AllowInternetBandWidth() []int

AllowInternetBandWidth 設定可能な帯域幅の値リスト

func AllowInternetNetworkMaskLen

func AllowInternetNetworkMaskLen() []int

AllowInternetNetworkMaskLen 設定可能なネットワークマスク長の値リスト

func AllowLoadBalancerHealthCheckProtocol

func AllowLoadBalancerHealthCheckProtocol() []string

AllowLoadBalancerHealthCheckProtocol ロードバランサーでのヘルスチェック対応プロトコルリスト

func AllowNFSAllPlanSizes added in v1.36.2

func AllowNFSAllPlanSizes() []int

AllowNFSAllPlanSizes 指定可能なNFSサイズ(HDD/SSD両方)

ディスクプランによって選択できないサイズを含むため、利用する側で適切にバリデーションを行う必要がある

func AllowNFSNormalPlanSizes added in v1.17.0

func AllowNFSNormalPlanSizes() []int

AllowNFSNormalPlanSizes 指定可能なNFSサイズ(標準プラン)

func AllowNFSSSDPlanSizes added in v1.17.0

func AllowNFSSSDPlanSizes() []int

AllowNFSSSDPlanSizes 指定可能なNFSサイズ(SSDプラン)

func AllowPacketFilterProtocol

func AllowPacketFilterProtocol() []string

AllowPacketFilterProtocol パケットフィルタが対応するプロトコルリスト

func AllowSimpleMonitorHealthCheckProtocol

func AllowSimpleMonitorHealthCheckProtocol() []string

AllowSimpleMonitorHealthCheckProtocol シンプル監視対応プロトコルリスト

func LockByKey added in v1.18.2

func LockByKey(key string)

LockByKey 任意のキーでのMutexロック

func LockByResourceID added in v1.18.2

func LockByResourceID(resourceID int64)

LockByResourceID リソース単位でのMutexロック

func UnlockByKey added in v1.18.2

func UnlockByKey(key string)

UnlockByKey 任意のキーでのMutexアンロック

func UnlockByResourceID added in v1.18.2

func UnlockByResourceID(resourceID int64)

UnlockByResourceID リソース単位でのMutexアンロック

Types

type Account

type Account struct {
	*Resource

	Class string `json:",omitempty"` // リソースクラス
	Code  string `json:",omitempty"` // アカウントコード
	// contains filtered or unexported fields
}

Account さくらのクラウド アカウント

func (*Account) GetName

func (p *Account) GetName() string

GetName 名称 取得

func (*Account) SetName

func (p *Account) SetName(name string)

SetName 名称 設定

type Appliance

type Appliance struct {
	*Resource // ID

	Class       string `json:",omitempty"` // リソースクラス
	SettingHash string `json:",omitempty"` // 設定ハッシュ値
	// contains filtered or unexported fields
}

Appliance アプライアンス基底クラス

func (*Appliance) AppendTag

func (p *Appliance) AppendTag(target string)

AppendTag タグを追加

func (*Appliance) ClearIcon

func (p *Appliance) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*Appliance) ClearTags

func (p *Appliance) ClearTags()

ClearTags 全タグを削除

func (*Appliance) GetCreatedAt

func (p *Appliance) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Appliance) GetDescription

func (p *Appliance) GetDescription() string

GetDescription 説明 取得

func (*Appliance) GetFirstInterface

func (p *Appliance) GetFirstInterface() *Interface

GetFirstInterface インターフェース(NIC)配列の先頭要素を返す

func (*Appliance) GetIcon

func (p *Appliance) GetIcon() *Icon

GetIcon アイコンを取得

func (*Appliance) GetIconID

func (p *Appliance) GetIconID() ID

GetIconID アイコンIDを取得

func (*Appliance) GetIconStrID

func (p *Appliance) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*Appliance) GetInstance

func (p *Appliance) GetInstance() *Instance

GetInstance インスタンス 取得

func (*Appliance) GetInstanceBeforeStatus

func (p *Appliance) GetInstanceBeforeStatus() string

GetInstanceBeforeStatus 以前のステータス 取得

func (*Appliance) GetInstanceStatus

func (p *Appliance) GetInstanceStatus() string

GetInstanceStatus ステータス 取得

func (*Appliance) GetInterfaces

func (p *Appliance) GetInterfaces() []Interface

GetInterfaces インターフェース(NIC)配列 取得

func (*Appliance) GetMaintenanceInfoURL

func (p *Appliance) GetMaintenanceInfoURL() string

GetMaintenanceInfoURL メンテナンス情報 URL取得

func (*Appliance) GetName

func (p *Appliance) GetName() string

GetName 名称 取得

func (*Appliance) GetPlanID

func (p *Appliance) GetPlanID() ID

GetPlanID プランID 取得

func (*Appliance) GetServiceClass

func (p *Appliance) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*Appliance) GetStrPlanID

func (p *Appliance) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

func (*Appliance) GetSwitch

func (p *Appliance) GetSwitch() *Switch

GetSwitch スイッチ 取得

func (*Appliance) GetTags

func (p *Appliance) GetTags() []string

GetTags タグ取得

func (*Appliance) HasIcon

func (p *Appliance) HasIcon() bool

HasIcon アイコンがセットされているか

func (*Appliance) HasTag

func (p *Appliance) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Appliance) IsAvailable

func (p *Appliance) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*Appliance) IsDown

func (p *Appliance) IsDown() bool

IsDown インスタンスがダウンしているか確認

func (*Appliance) IsFailed

func (p *Appliance) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*Appliance) IsMigrating

func (p *Appliance) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*Appliance) IsUp

func (p *Appliance) IsUp() bool

IsUp インスタンスが起動しているか判定

func (*Appliance) IsUploading

func (p *Appliance) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*Appliance) MaintenanceScheduled

func (p *Appliance) MaintenanceScheduled() bool

MaintenanceScheduled メンテナンス予定の有無

func (*Appliance) RemoveTag

func (p *Appliance) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*Appliance) SetDescription

func (p *Appliance) SetDescription(desc string)

SetDescription 説明 設定

func (*Appliance) SetIcon

func (p *Appliance) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*Appliance) SetIconByID

func (p *Appliance) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*Appliance) SetName

func (p *Appliance) SetName(name string)

SetName 名称 設定

func (*Appliance) SetSwitch

func (p *Appliance) SetSwitch(sw *Switch)

SetSwitch スイッチ 設定

func (*Appliance) SetTags

func (p *Appliance) SetTags(tags []string)

SetTags タグを設定

type ApplianceRemarkBase

type ApplianceRemarkBase struct {
	Servers []interface{} // 配下のサーバー群

	Switch  *ApplianceRemarkSwitch  `json:",omitempty"` // 接続先スイッチ
	VRRP    *ApplianceRemarkVRRP    `json:",omitempty"` // VRRP
	Network *ApplianceRemarkNetwork `json:",omitempty"` // ネットワーク

}

ApplianceRemarkBase アプライアンス Remark 基底クラス

type ApplianceRemarkNetwork

type ApplianceRemarkNetwork struct {
	NetworkMaskLen int    `json:",omitempty"` // ネットワークマスク長
	DefaultRoute   string // デフォルトルート

}

ApplianceRemarkNetwork ネットワーク

type ApplianceRemarkSwitch

type ApplianceRemarkSwitch struct {
	ID ID `json:",omitempty"` // リソースID
	// contains filtered or unexported fields
}

ApplianceRemarkSwitch スイッチ

func (*ApplianceRemarkSwitch) GetScope

func (p *ApplianceRemarkSwitch) GetScope() string

GetScope スコープ 取得

func (*ApplianceRemarkSwitch) IsSharedScope

func (p *ApplianceRemarkSwitch) IsSharedScope() bool

IsSharedScope 共有スコープか判定

func (*ApplianceRemarkSwitch) IsUserScope

func (p *ApplianceRemarkSwitch) IsUserScope() bool

IsUserScope ユーザースコープか判定

func (*ApplianceRemarkSwitch) SetScope

func (p *ApplianceRemarkSwitch) SetScope(scope string)

SetScope スコープ 設定

func (*ApplianceRemarkSwitch) SetSharedScope

func (p *ApplianceRemarkSwitch) SetSharedScope()

SetSharedScope 共有スコープに設定

func (*ApplianceRemarkSwitch) SetUserScope

func (p *ApplianceRemarkSwitch) SetUserScope()

SetUserScope ユーザースコープに設定

type ApplianceRemarkVRRP

type ApplianceRemarkVRRP struct {
	VRID int // VRID
}

ApplianceRemarkVRRP VRRP

type Archive

type Archive struct {
	*Resource // ID
	// contains filtered or unexported fields
}

Archive アーカイブ

func (*Archive) AppendTag

func (p *Archive) AppendTag(target string)

AppendTag タグを追加

func (*Archive) ClearIcon

func (p *Archive) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*Archive) ClearTags

func (p *Archive) ClearTags()

ClearTags 全タグを削除

func (*Archive) GetBundleInfo

func (p *Archive) GetBundleInfo() *BundleInfo

GetBundleInfo バンドル情報 取得

func (*Archive) GetCreatedAt

func (p *Archive) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Archive) GetDescription

func (p *Archive) GetDescription() string

GetDescription 説明 取得

func (*Archive) GetIcon

func (p *Archive) GetIcon() *Icon

GetIcon アイコンを取得

func (*Archive) GetIconID

func (p *Archive) GetIconID() ID

GetIconID アイコンIDを取得

func (*Archive) GetIconStrID

func (p *Archive) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*Archive) GetJobStatus

func (p *Archive) GetJobStatus() *MigrationJobStatus

GetJobStatus マイグレーションジョブステータス 取得

func (*Archive) GetMigratedGB

func (p *Archive) GetMigratedGB() int

GetMigratedGB サイズ(GB単位) 取得

func (*Archive) GetMigratedMB

func (p *Archive) GetMigratedMB() int

GetMigratedMB サイズ(MB単位) 取得

func (*Archive) GetName

func (p *Archive) GetName() string

GetName 名称 取得

func (*Archive) GetOriginalArchiveID

func (p *Archive) GetOriginalArchiveID() ID

GetOriginalArchiveID プランID 取得

func (*Archive) GetPlanID

func (p *Archive) GetPlanID() ID

GetPlanID プランID 取得

func (*Archive) GetScope

func (p *Archive) GetScope() string

GetScope スコープ 取得

func (*Archive) GetServiceClass

func (p *Archive) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*Archive) GetSizeGB

func (p *Archive) GetSizeGB() int

GetSizeGB サイズ(GB単位) 取得

func (*Archive) GetSizeMB

func (p *Archive) GetSizeMB() int

GetSizeMB サイズ(MB単位) 取得

func (*Archive) GetSourceArchive

func (p *Archive) GetSourceArchive() *Archive

GetSourceArchive ソースアーカイブ取得

func (*Archive) GetSourceArchiveID

func (p *Archive) GetSourceArchiveID() ID

GetSourceArchiveID ソースアーカイブID取得

func (*Archive) GetSourceDisk

func (p *Archive) GetSourceDisk() *Disk

GetSourceDisk ソースディスク取得

func (*Archive) GetSourceDiskID

func (p *Archive) GetSourceDiskID() ID

GetSourceDiskID ソースディスクID取得

func (*Archive) GetStorage

func (p *Archive) GetStorage() *Storage

GetStorage ストレージ 取得

func (*Archive) GetStrOriginalArchiveID

func (p *Archive) GetStrOriginalArchiveID() string

GetStrOriginalArchiveID プランID(文字列) 取得

func (*Archive) GetStrPlanID

func (p *Archive) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

func (*Archive) GetTags

func (p *Archive) GetTags() []string

GetTags タグ取得

func (*Archive) HasIcon

func (p *Archive) HasIcon() bool

HasIcon アイコンがセットされているか

func (*Archive) HasTag

func (p *Archive) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Archive) IsAvailable

func (p *Archive) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*Archive) IsFailed

func (p *Archive) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*Archive) IsMigrating

func (p *Archive) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*Archive) IsSharedScope

func (p *Archive) IsSharedScope() bool

IsSharedScope 共有スコープか判定

func (*Archive) IsSophosUTM

func (p *Archive) IsSophosUTM() bool

func (*Archive) IsUploading

func (p *Archive) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*Archive) IsUserScope

func (p *Archive) IsUserScope() bool

IsUserScope ユーザースコープか判定

func (*Archive) RemoveTag

func (p *Archive) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*Archive) SetDescription

func (p *Archive) SetDescription(desc string)

SetDescription 説明 設定

func (*Archive) SetIcon

func (p *Archive) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*Archive) SetIconByID

func (p *Archive) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*Archive) SetMigratedGB

func (p *Archive) SetMigratedGB(size int)

SetMigratedGB サイズ(GB単位) 設定

func (*Archive) SetMigratedMB

func (p *Archive) SetMigratedMB(size int)

SetMigratedMB サイズ(MB単位) 設定

func (*Archive) SetName

func (p *Archive) SetName(name string)

SetName 名称 設定

func (*Archive) SetScope

func (p *Archive) SetScope(scope string)

SetScope スコープ 設定

func (*Archive) SetSharedScope

func (p *Archive) SetSharedScope()

SetSharedScope 共有スコープに設定

func (*Archive) SetSizeGB

func (p *Archive) SetSizeGB(size int)

SetSizeGB サイズ(GB単位) 設定

func (*Archive) SetSizeMB

func (p *Archive) SetSizeMB(size int)

SetSizeMB サイズ(MB単位) 設定

func (*Archive) SetSourceArchive

func (p *Archive) SetSourceArchive(sourceID ID)

SetSourceArchive ソースアーカイブ設定

func (*Archive) SetSourceDisk

func (p *Archive) SetSourceDisk(sourceID ID)

SetSourceDisk ソースディスク設定

func (*Archive) SetTags

func (p *Archive) SetTags(tags []string)

SetTags タグを設定

func (*Archive) SetUserScope

func (p *Archive) SetUserScope()

SetUserScope ユーザースコープに設定

type AuthStatus

type AuthStatus struct {
	Account            *Account    // アカウント
	Member             *Member     // 会員情報
	AuthClass          EAuthClass  `json:",omitempty"`      // 認証クラス
	AuthMethod         EAuthMethod `json:",omitempty"`      // 認証方法
	ExternalPermission string      `json:",omitempty"`      // 他サービスへのアクセス権
	IsAPIKey           bool        `json:",omitempty"`      // APIキーでのアクセスフラグ
	OperationPenalty   string      `json:",omitempty"`      // オペレーションペナルティ
	Permission         EPermission `json:",omitempty"`      // 権限
	IsOk               bool        `json:"is_ok,omitempty"` // 結果

}

AuthStatus 現在の認証状態

type AutoBackup

type AutoBackup struct {
	*Resource // ID

	Status   *AutoBackupStatus   `json:",omitempty"` // ステータス
	Provider *AutoBackupProvider `json:",omitempty"` // プロバイダ
	Settings *AutoBackupSettings `json:",omitempty"` // 設定
	// contains filtered or unexported fields
}

AutoBackup 自動バックアップ(CommonServiceItem)

func CreateNewAutoBackup

func CreateNewAutoBackup(backupName string, diskID ID) *AutoBackup

CreateNewAutoBackup 自動バックアップ 作成(CommonServiceItem)

func (*AutoBackup) AppendTag

func (p *AutoBackup) AppendTag(target string)

AppendTag タグを追加

func (*AutoBackup) ClearIcon

func (p *AutoBackup) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*AutoBackup) ClearTags

func (p *AutoBackup) ClearTags()

ClearTags 全タグを削除

func (*AutoBackup) GetCreatedAt

func (p *AutoBackup) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*AutoBackup) GetDescription

func (p *AutoBackup) GetDescription() string

GetDescription 説明 取得

func (*AutoBackup) GetIcon

func (p *AutoBackup) GetIcon() *Icon

GetIcon アイコンを取得

func (*AutoBackup) GetIconID

func (p *AutoBackup) GetIconID() ID

GetIconID アイコンIDを取得

func (*AutoBackup) GetIconStrID

func (p *AutoBackup) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*AutoBackup) GetModifiedAt

func (p *AutoBackup) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*AutoBackup) GetName

func (p *AutoBackup) GetName() string

GetName 名称 取得

func (*AutoBackup) GetServiceClass

func (p *AutoBackup) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*AutoBackup) GetTags

func (p *AutoBackup) GetTags() []string

GetTags タグ取得

func (*AutoBackup) HasIcon

func (p *AutoBackup) HasIcon() bool

HasIcon アイコンがセットされているか

func (*AutoBackup) HasTag

func (p *AutoBackup) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*AutoBackup) RemoveTag

func (p *AutoBackup) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*AutoBackup) SetBackupMaximumNumberOfArchives

func (a *AutoBackup) SetBackupMaximumNumberOfArchives(max int)

SetBackupMaximumNumberOfArchives 世代数設定

func (*AutoBackup) SetBackupSpanWeekdays

func (a *AutoBackup) SetBackupSpanWeekdays(weekdays []string)

SetBackupSpanWeekdays バックアップ実行曜日設定

func (*AutoBackup) SetDescription

func (p *AutoBackup) SetDescription(desc string)

SetDescription 説明 設定

func (*AutoBackup) SetIcon

func (p *AutoBackup) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*AutoBackup) SetIconByID

func (p *AutoBackup) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*AutoBackup) SetName

func (p *AutoBackup) SetName(name string)

SetName 名称 設定

func (*AutoBackup) SetTags

func (p *AutoBackup) SetTags(tags []string)

SetTags タグを設定

type AutoBackupProvider

type AutoBackupProvider struct {
	Class string `json:",omitempty"` // クラス
}

AutoBackupProvider 自動バックアッププロバイダ

type AutoBackupRecordSets

type AutoBackupRecordSets struct {
	BackupSpanType          string   // バックアップ間隔タイプ
	BackupSpanWeekdays      []string // バックアップ実施曜日
	MaximumNumberOfArchives int      // 世代数

}

AutoBackupRecordSets 自動バックアップ定義

type AutoBackupSettings

type AutoBackupSettings struct {
	AccountID  ID                    `json:"AccountId,omitempty"` // アカウントID
	DiskID     ID                    `json:"DiskId,omitempty"`    // ディスクID
	ZoneID     ID                    `json:"ZoneId,omitempty"`    // ゾーンID
	ZoneName   string                `json:",omitempty"`          // ゾーン名称
	Autobackup *AutoBackupRecordSets `json:",omitempty"`          // 自動バックアップ定義

}

AutoBackupSettings 自動バックアップ設定

type AutoBackupStatus

type AutoBackupStatus struct {
	AccountID ID     `json:"AccountId,omitempty"` // アカウントID
	DiskID    ID     `json:"DiskId,omitempty"`    // ディスクID
	ZoneID    ID     `json:"ZoneId,omitempty"`    // ゾーンID
	ZoneName  string `json:",omitempty"`          // ゾーン名称
}

AutoBackupStatus 自動バックアップステータス

type Bill

type Bill struct {
	Amount         int64      `json:",omitempty"` // 金額
	BillID         ID         `json:",omitempty"` // 請求ID
	Date           *time.Time `json:",omitempty"` // 請求日
	MemberID       string     `json:",omitempty"` // 会員ID
	Paid           bool       `json:",omitempty"` // 支払済フラグ
	PayLimit       *time.Time `json:",omitempty"` // 支払い期限
	PaymentClassID ID         `json:",omitempty"` // 支払いクラスID

}

Bill 請求情報

type BillDetail

type BillDetail struct {
	ContractID     ID         `json:",omitempty"` // 契約ID
	Amount         int64      `json:",omitempty"` // 金額
	Description    string     `json:",omitempty"` // 説明
	Index          int        `json:",omitempty"` // インデックス
	ServiceClassID ID         `json:",omitempty"` // サービスクラスID
	Usage          int64      `json:",omitempty"` // 秒数
	Zone           string     `json:",omitempty"` // ゾーン
	ContractEndAt  *time.Time `json:",omitempty"` // 契約終了日時
}

BillDetail 支払い明細情報

func (*BillDetail) IsContractEnded

func (d *BillDetail) IsContractEnded(t time.Time) bool

IsContractEnded 支払済か判定

type Bridge

type Bridge struct {
	*Resource // ID

	Info *struct {
		Switches []*struct {
			*Switch             // スイッチ
			ID      json.Number `json:",omitempty"` // (HACK) ID
		}
	}

	SwitchInZone *struct {
		*Resource // ID

		Name           string `json:",omitempty"` // 名称
		ServerCount    int    `json:",omitempty"` // 接続サーバー数
		ApplianceCount int    `json:",omitempty"` // 接続アプライアンス数
		// contains filtered or unexported fields
	}
	// contains filtered or unexported fields
}

Bridge ブリッジ

func (*Bridge) GetCreatedAt

func (p *Bridge) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Bridge) GetDescription

func (p *Bridge) GetDescription() string

GetDescription 説明 取得

func (*Bridge) GetName

func (p *Bridge) GetName() string

GetName 名称 取得

func (*Bridge) GetRegion

func (p *Bridge) GetRegion() *Region

GetRegion リージョン 取得

func (*Bridge) GetRegionDescription

func (p *Bridge) GetRegionDescription() string

GetRegionDescription リージョン説明 取得

func (*Bridge) GetRegionID

func (p *Bridge) GetRegionID() ID

GetRegionID リージョンID 取得

func (*Bridge) GetRegionName

func (p *Bridge) GetRegionName() string

GetRegionName リージョン名 取得

func (*Bridge) GetRegionNameServers

func (p *Bridge) GetRegionNameServers() []string

GetRegionNameServers リージョンのネームサーバー(のIPアドレス)取得

func (*Bridge) GetServiceClass

func (p *Bridge) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*Bridge) SetDescription

func (p *Bridge) SetDescription(desc string)

SetDescription 説明 設定

func (*Bridge) SetName

func (p *Bridge) SetName(name string)

SetName 名称 設定

type BundleInfo

type BundleInfo struct {
	HostClass    string `json:",omitempty"`
	ServiceClass string `json:",omitempty"`
}

BundleInfo バンドル情報

type CDROM

type CDROM struct {
	*Resource // ID
	// contains filtered or unexported fields
}

CDROM ISOイメージ(CDROM)

func (*CDROM) AppendTag

func (p *CDROM) AppendTag(target string)

AppendTag タグを追加

func (*CDROM) ClearIcon

func (p *CDROM) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*CDROM) ClearTags

func (p *CDROM) ClearTags()

ClearTags 全タグを削除

func (*CDROM) GetCreatedAt

func (p *CDROM) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*CDROM) GetDescription

func (p *CDROM) GetDescription() string

GetDescription 説明 取得

func (*CDROM) GetIcon

func (p *CDROM) GetIcon() *Icon

GetIcon アイコンを取得

func (*CDROM) GetIconID

func (p *CDROM) GetIconID() ID

GetIconID アイコンIDを取得

func (*CDROM) GetIconStrID

func (p *CDROM) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*CDROM) GetName

func (p *CDROM) GetName() string

GetName 名称 取得

func (*CDROM) GetScope

func (p *CDROM) GetScope() string

GetScope スコープ 取得

func (*CDROM) GetServiceClass

func (p *CDROM) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*CDROM) GetSizeGB

func (p *CDROM) GetSizeGB() int

GetSizeGB サイズ(GB単位) 取得

func (*CDROM) GetSizeMB

func (p *CDROM) GetSizeMB() int

GetSizeMB サイズ(MB単位) 取得

func (*CDROM) GetStorage

func (p *CDROM) GetStorage() *Storage

GetStorage ストレージ 取得

func (*CDROM) GetStorageClass

func (p *CDROM) GetStorageClass() string

GetStorageClass ストレージクラス 取得

func (*CDROM) GetTags

func (p *CDROM) GetTags() []string

GetTags タグ取得

func (*CDROM) HasIcon

func (p *CDROM) HasIcon() bool

HasIcon アイコンがセットされているか

func (*CDROM) HasTag

func (p *CDROM) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*CDROM) IsAvailable

func (p *CDROM) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*CDROM) IsFailed

func (p *CDROM) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*CDROM) IsMigrating

func (p *CDROM) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*CDROM) IsSharedScope

func (p *CDROM) IsSharedScope() bool

IsSharedScope 共有スコープか判定

func (*CDROM) IsUploading

func (p *CDROM) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*CDROM) IsUserScope

func (p *CDROM) IsUserScope() bool

IsUserScope ユーザースコープか判定

func (*CDROM) RemoveTag

func (p *CDROM) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*CDROM) SetDescription

func (p *CDROM) SetDescription(desc string)

SetDescription 説明 設定

func (*CDROM) SetIcon

func (p *CDROM) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*CDROM) SetIconByID

func (p *CDROM) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*CDROM) SetName

func (p *CDROM) SetName(name string)

SetName 名称 設定

func (*CDROM) SetScope

func (p *CDROM) SetScope(scope string)

SetScope スコープ 設定

func (*CDROM) SetSharedScope

func (p *CDROM) SetSharedScope()

SetSharedScope 共有スコープに設定

func (*CDROM) SetSizeGB

func (p *CDROM) SetSizeGB(size int)

SetSizeGB サイズ(GB単位) 設定

func (*CDROM) SetSizeMB

func (p *CDROM) SetSizeMB(size int)

SetSizeMB サイズ(MB単位) 設定

func (*CDROM) SetTags

func (p *CDROM) SetTags(tags []string)

SetTags タグを設定

func (*CDROM) SetUserScope

func (p *CDROM) SetUserScope()

SetUserScope ユーザースコープに設定

type Coupon added in v1.6.0

type Coupon struct {
	CouponID       ID        `json:",omitempty"` // クーポンID
	MemberID       string    `json:",omitempty"` // メンバーID
	ContractID     ID        `json:",omitempty"` // 契約ID
	ServiceClassID ID        `json:",omitempty"` // サービスクラスID
	Discount       int64     `json:",omitempty"` // クーポン残高
	AppliedAt      time.Time `json:",omitempty"` // 適用開始日
	UntilAt        time.Time `json:",omitempty"` // 有効期限
}

Coupon クーポン情報

type CreateDatabaseValue

type CreateDatabaseValue struct {
	Plan             DatabasePlan // プラン
	AdminPassword    string       // 管理者パスワード
	DefaultUser      string       // ユーザー名
	UserPassword     string       // パスワード
	SourceNetwork    []string     // 接続許可ネットワーク
	ServicePort      int          // ポート
	EnableBackup     bool         // バックアップ有効化
	BackupRotate     int          // バックアップ世代数
	BackupTime       string       // バックアップ開始時間
	BackupDayOfWeek  []string     // バックアップ取得曜日
	SwitchID         ID           // 接続先スイッチ
	IPAddress1       string       // IPアドレス1
	MaskLen          int          // ネットワークマスク長
	DefaultRoute     string       // デフォルトルート
	Name             string       // 名称
	Description      string       // 説明
	Tags             []string     // タグ
	Icon             *Resource    // アイコン
	WebUI            bool         // WebUI有効
	DatabaseName     string       // データベース名
	DatabaseRevision string       // リビジョン
	DatabaseTitle    string       // データベースタイトル
	DatabaseVersion  string       // データベースバージョン
	// ReplicaUser      string    // レプリケーションユーザー 現在はreplica固定
	ReplicaPassword string    // レプリケーションパスワード
	SourceAppliance *Resource // クローン元DB
}

CreateDatabaseValue データベース作成用パラメータ

func NewCloneDatabaseValue

func NewCloneDatabaseValue(db *Database) *CreateDatabaseValue

NewCloneDatabaseValue クローンDB作成用パラメータ

func NewCreateMariaDBDatabaseValue

func NewCreateMariaDBDatabaseValue() *CreateDatabaseValue

NewCreateMariaDBDatabaseValue MariaDB作成用パラメーター

func NewCreatePostgreSQLDatabaseValue

func NewCreatePostgreSQLDatabaseValue() *CreateDatabaseValue

NewCreatePostgreSQLDatabaseValue PostgreSQL作成用パラメーター

type CreateDoubleLoadBalancerValue

type CreateDoubleLoadBalancerValue struct {
	*CreateLoadBalancerValue
	IPAddress2 string // IPアドレス2
}

CreateDoubleLoadBalancerValue ロードバランサー(冗長化あり)作成用パラメーター

type CreateLoadBalancerValue

type CreateLoadBalancerValue struct {
	SwitchID     ID               // 接続先スイッチID
	VRID         int              // VRID
	Plan         LoadBalancerPlan // プラン
	IPAddress1   string           // IPアドレス
	MaskLen      int              // ネットワークマスク長
	DefaultRoute string           // デフォルトルート
	Name         string           // 名称
	Description  string           // 説明
	Tags         []string         // タグ
	Icon         *Resource        // アイコン
}

CreateLoadBalancerValue ロードバランサー作成用パラメーター

type CreateMobileGatewayValue

type CreateMobileGatewayValue struct {
	Name        string   // 名称
	Description string   // 説明
	Tags        []string // タグ
	IconID      ID       // アイコン
}

CreateMobileGatewayValue モバイルゲートウェイ作成用パラメーター

type CreateNFSValue

type CreateNFSValue struct {
	SwitchID        ID        // 接続先スイッチID
	IPAddress       string    // IPアドレス
	MaskLen         int       // ネットワークマスク長
	DefaultRoute    string    // デフォルトルート
	Name            string    // 名称
	Description     string    // 説明
	Tags            []string  // タグ
	Icon            *Resource // アイコン
	SourceAppliance *Resource // クローン元NFS
}

CreateNFSValue NFS作成用パラメーター

type DNS

type DNS struct {
	*Resource // ID

	Status   DNSStatus   `json:",omitempty"` // ステータス
	Provider DNSProvider `json:",omitempty"` // プロバイダ
	Settings DNSSettings `json:",omitempty"` // 設定
	// contains filtered or unexported fields
}

DNS DNS(CommonServiceItem)

func CreateNewDNS

func CreateNewDNS(zoneName string) *DNS

CreateNewDNS DNS作成

func (*DNS) AddRecord

func (d *DNS) AddRecord(record *DNSRecordSet)

AddRecord レコードの追加

func (*DNS) AppendTag

func (p *DNS) AppendTag(target string)

AppendTag タグを追加

func (*DNS) ClearIcon

func (p *DNS) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*DNS) ClearRecords

func (d *DNS) ClearRecords()

ClearRecords レコード クリア

func (*DNS) ClearTags

func (p *DNS) ClearTags()

ClearTags 全タグを削除

func (*DNS) CreateNewMXRecord

func (d *DNS) CreateNewMXRecord(name string, rdata string, ttl int, priority int) *DNSRecordSet

CreateNewMXRecord DNSレコード作成(MXレコード)

func (*DNS) CreateNewRecord

func (d *DNS) CreateNewRecord(name string, rtype string, rdata string, ttl int) *DNSRecordSet

CreateNewRecord DNSレコード作成(汎用)

func (*DNS) CreateNewSRVRecord

func (d *DNS) CreateNewSRVRecord(name string, rdata string, ttl int, priority int, weight int, port int) *DNSRecordSet

CreateNewSRVRecord DNSレコード作成(SRVレコード)

func (*DNS) GetCreatedAt

func (p *DNS) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*DNS) GetDescription

func (p *DNS) GetDescription() string

GetDescription 説明 取得

func (*DNS) GetIcon

func (p *DNS) GetIcon() *Icon

GetIcon アイコンを取得

func (*DNS) GetIconID

func (p *DNS) GetIconID() ID

GetIconID アイコンIDを取得

func (*DNS) GetIconStrID

func (p *DNS) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*DNS) GetModifiedAt

func (p *DNS) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*DNS) GetName

func (p *DNS) GetName() string

GetName 名称 取得

func (*DNS) GetServiceClass

func (p *DNS) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*DNS) GetTags

func (p *DNS) GetTags() []string

GetTags タグ取得

func (*DNS) HasDNSRecord

func (d *DNS) HasDNSRecord() bool

HasDNSRecord DNSレコード設定を保持しているか判定

func (*DNS) HasIcon

func (p *DNS) HasIcon() bool

HasIcon アイコンがセットされているか

func (*DNS) HasTag

func (p *DNS) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*DNS) RemoveTag

func (p *DNS) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*DNS) SetDescription

func (p *DNS) SetDescription(desc string)

SetDescription 説明 設定

func (*DNS) SetIcon

func (p *DNS) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*DNS) SetIconByID

func (p *DNS) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*DNS) SetName

func (p *DNS) SetName(name string)

SetName 名称 設定

func (*DNS) SetTags

func (p *DNS) SetTags(tags []string)

SetTags タグを設定

func (*DNS) SetZone

func (d *DNS) SetZone(zone string)

SetZone DNSゾーン名 設定

type DNSProvider

type DNSProvider struct {
	Class string `json:",omitempty"` // クラス
}

DNSProvider プロバイダ

type DNSRecordSet

type DNSRecordSet struct {
	Name  string `json:",omitempty"` // ホスト名
	Type  string `json:",omitempty"` // レコードタイプ
	RData string `json:",omitempty"` // レコードデータ
	TTL   int    `json:",omitempty"` // TTL
}

DNSRecordSet DNSレコード設定

type DNSRecordSets

type DNSRecordSets struct {
	// ResourceRecordSets DNSレコード設定リスト
	ResourceRecordSets []DNSRecordSet
}

DNSRecordSets DNSレコード設定リスト

func (*DNSRecordSets) AddDNSRecordSet

func (d *DNSRecordSets) AddDNSRecordSet(name string, ip string)

AddDNSRecordSet ホスト名とIPアドレスにてAレコードを登録

func (*DNSRecordSets) DeleteDNSRecordSet

func (d *DNSRecordSets) DeleteDNSRecordSet(name string, ip string)

DeleteDNSRecordSet ホスト名とIPアドレスにてAレコードを削除する

type DNSSettings

type DNSSettings struct {
	DNS DNSRecordSets `json:",omitempty"` // DNSレコード設定リスト
}

DNSSettings DNS設定リスト

type DNSStatus

type DNSStatus struct {
	Zone string   `json:",omitempty"` // 対象ゾーン
	NS   []string `json:",omitempty"` // ネームサーバーリスト
}

DNSStatus DNSステータス

type Database

type Database struct {
	*Appliance // アプライアンス共通属性

	Remark   *DatabaseRemark   `json:",omitempty"` // リマーク
	Settings *DatabaseSettings `json:",omitempty"` // データベース設定
}

Database データベース(appliance)

func CreateNewDatabase

func CreateNewDatabase(values *CreateDatabaseValue) *Database

CreateNewDatabase データベース作成

func NewSlaveDatabaseValue

func NewSlaveDatabaseValue(values *SlaveDatabaseValue) *Database

NewSlaveDatabaseValue スレーブ向けパラメータ作成

func (*Database) AddSourceNetwork

func (s *Database) AddSourceNetwork(nw string)

AddSourceNetwork 接続許可ネットワーク 追加

func (Database) AppendTag

func (p Database) AppendTag(target string)

AppendTag タグを追加

func (Database) ClearIcon

func (p Database) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (Database) ClearTags

func (p Database) ClearTags()

ClearTags 全タグを削除

func (*Database) DatabaseName added in v1.12.0

func (s *Database) DatabaseName() string

DatabaseName MariaDB or PostgreSQLの何れかを返す

func (*Database) DatabaseRevision added in v1.12.0

func (s *Database) DatabaseRevision() string

DatabaseRevision データベースのリビジョンを返す

例: MariaDBの場合 => 10.2.15 / PostgreSQLの場合 => 10.3

func (*Database) DatabaseVersion added in v1.12.0

func (s *Database) DatabaseVersion() string

DatabaseVersion データベースのバージョンを返す

例: MariaDBの場合 => 10.2 / PostgreSQLの場合 => 10

func (*Database) DefaultRoute added in v1.12.0

func (s *Database) DefaultRoute() string

DefaultRoute デフォルトゲートウェイアドレスを取得

func (*Database) DeleteSourceNetwork

func (s *Database) DeleteSourceNetwork(nw string)

DeleteSourceNetwork 接続許可ネットワーク 削除

func (Database) GetCreatedAt

func (p Database) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (Database) GetDescription

func (p Database) GetDescription() string

GetDescription 説明 取得

func (Database) GetFirstInterface

func (p Database) GetFirstInterface() *Interface

GetFirstInterface インターフェース(NIC)配列の先頭要素を返す

func (Database) GetIcon

func (p Database) GetIcon() *Icon

GetIcon アイコンを取得

func (Database) GetIconID

func (p Database) GetIconID() ID

GetIconID アイコンIDを取得

func (Database) GetIconStrID

func (p Database) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (Database) GetInstance

func (p Database) GetInstance() *Instance

GetInstance インスタンス 取得

func (Database) GetInstanceBeforeStatus

func (p Database) GetInstanceBeforeStatus() string

GetInstanceBeforeStatus 以前のステータス 取得

func (Database) GetInstanceStatus

func (p Database) GetInstanceStatus() string

GetInstanceStatus ステータス 取得

func (Database) GetInterfaces

func (p Database) GetInterfaces() []Interface

GetInterfaces インターフェース(NIC)配列 取得

func (Database) GetMaintenanceInfoURL

func (p Database) GetMaintenanceInfoURL() string

GetMaintenanceInfoURL メンテナンス情報 URL取得

func (Database) GetName

func (p Database) GetName() string

GetName 名称 取得

func (Database) GetPlanID

func (p Database) GetPlanID() ID

GetPlanID プランID 取得

func (Database) GetServiceClass

func (p Database) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (Database) GetStrPlanID

func (p Database) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

func (Database) GetSwitch

func (p Database) GetSwitch() *Switch

GetSwitch スイッチ 取得

func (Database) GetTags

func (p Database) GetTags() []string

GetTags タグ取得

func (Database) HasIcon

func (p Database) HasIcon() bool

HasIcon アイコンがセットされているか

func (Database) HasTag

func (p Database) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Database) IPAddress added in v1.12.0

func (s *Database) IPAddress() string

IPAddress IPアドレスを取得

func (Database) IsAvailable

func (p Database) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (Database) IsDown

func (p Database) IsDown() bool

IsDown インスタンスがダウンしているか確認

func (Database) IsFailed

func (p Database) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (Database) IsMigrating

func (p Database) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*Database) IsReplicationEnabled added in v1.12.0

func (s *Database) IsReplicationEnabled() bool

IsReplicationEnabled レプリケーションが有効な場合はTrueを返す

func (*Database) IsReplicationMaster

func (s *Database) IsReplicationMaster() bool

IsReplicationMaster レプリケーションが有効かつマスターとして構成されているか

func (Database) IsUp

func (p Database) IsUp() bool

IsUp インスタンスが起動しているか判定

func (Database) IsUploading

func (p Database) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (Database) MaintenanceScheduled

func (p Database) MaintenanceScheduled() bool

MaintenanceScheduled メンテナンス予定の有無

func (*Database) NetworkMaskLen added in v1.12.0

func (s *Database) NetworkMaskLen() int

NetworkMaskLen ネットワークマスク長を取得

func (Database) RemoveTag

func (p Database) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (Database) SetDescription

func (p Database) SetDescription(desc string)

SetDescription 説明 設定

func (Database) SetIcon

func (p Database) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (Database) SetIconByID

func (p Database) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (Database) SetName

func (p Database) SetName(name string)

SetName 名称 設定

func (Database) SetSwitch

func (p Database) SetSwitch(sw *Switch)

SetSwitch スイッチ 設定

func (Database) SetTags

func (p Database) SetTags(tags []string)

SetTags タグを設定

func (*Database) WebUIAddress added in v1.12.0

func (s *Database) WebUIAddress() string

WebUIAddress WebUIが有効な場合、IPアドレス or FQDNを返す、無効な場合は空文字を返す

type DatabaseBackupHistory

type DatabaseBackupHistory struct {
	CreatedAt    time.Time  `json:"createdat,omitempty"`
	Availability string     `json:"availability,omitempty"`
	RecoveredAt  *time.Time `json:"recoveredat,omitempty"`
	Size         int64      `json:"size,omitempty"`
}

DatabaseBackupHistory データベースバックアップ履歴情報

func (*DatabaseBackupHistory) FormatCreatedAt

func (h *DatabaseBackupHistory) FormatCreatedAt(layout string) string

FormatCreatedAt 指定のレイアウトで作成日時を文字列化

func (*DatabaseBackupHistory) FormatRecoveredAt

func (h *DatabaseBackupHistory) FormatRecoveredAt(layout string) string

FormatRecoveredAt 指定のレイアウトで復元日時を文字列化

復元日時がnilの場合は空の文字列を返す

func (*DatabaseBackupHistory) ID

func (h *DatabaseBackupHistory) ID() string

ID バックアップ履歴のID取得

func (*DatabaseBackupHistory) UnmarshalJSON

func (h *DatabaseBackupHistory) UnmarshalJSON(data []byte) error

UnmarshalJSON JSON復号処理

type DatabaseBackupInfo

type DatabaseBackupInfo struct {
	History []*DatabaseBackupHistory `json:"history,omitempty"`
}

DatabaseBackupInfo データベースバックアップ情報

type DatabaseBackupSetting

type DatabaseBackupSetting struct {
	Rotate    int      `json:",omitempty"` // ローテーション世代数
	Time      string   `json:",omitempty"` // 開始時刻
	DayOfWeek []string `json:",omitempty"` // 取得曜日
}

DatabaseBackupSetting バックアップ設定

type DatabaseCommonRemark

type DatabaseCommonRemark struct {
	DatabaseName     string `json:",omitempty"` // 名称
	DatabaseRevision string `json:",omitempty"` // リビジョン
	DatabaseTitle    string `json:",omitempty"` // タイトル
	DatabaseVersion  string `json:",omitempty"` // バージョン
}

DatabaseCommonRemark リマーク

type DatabaseCommonRemarks

type DatabaseCommonRemarks struct {
	Common *DatabaseCommonRemark // Common
}

DatabaseCommonRemarks リマークリスト

type DatabaseCommonSetting

type DatabaseCommonSetting struct {
	DefaultUser     string        `json:",omitempty"` // ユーザー名
	UserPassword    string        `json:",omitempty"` // ユーザーパスワード
	WebUI           interface{}   `json:",omitempty"` // WebUIのIPアドレス or FQDN
	ReplicaPassword string        `json:",omitempty"` // レプリケーションパスワード
	ReplicaUser     string        `json:",omitempty"` // レプリケーションユーザー
	ServicePort     json.Number   `json:",omitempty"` // ポート番号
	SourceNetwork   SourceNetwork // 接続許可ネットワーク
}

DatabaseCommonSetting 共通設定

type DatabaseLog

type DatabaseLog struct {
	Name string `json:"name,omitempty"`
	Data string `json:"data,omitempty"`
}

DatabaseLog データベースログ

func (*DatabaseLog) ID

func (l *DatabaseLog) ID() string

ID ログのID取得

func (*DatabaseLog) IsSystemdLog

func (l *DatabaseLog) IsSystemdLog() bool

IsSystemdLog systemcltのログか判定

func (*DatabaseLog) Logs

func (l *DatabaseLog) Logs() []string

Logs ログボディ取得

type DatabasePlan

type DatabasePlan int

DatabasePlan プラン

type DatabaseRemark

type DatabaseRemark struct {
	*ApplianceRemarkBase

	DBConf          *DatabaseCommonRemarks   // コンフィグ
	Network         *DatabaseRemarkNetwork   // ネットワーク
	SourceAppliance *DatabaseSourceAppliance `json:",omitempty"` // クローン元DB
	Zone            struct {
		ID ID `json:",omitempty"` // ゾーンID
	}
	// contains filtered or unexported fields
}

DatabaseRemark データベースリマーク

func (*DatabaseRemark) GetPlanID

func (p *DatabaseRemark) GetPlanID() ID

GetPlanID プランID 取得

func (*DatabaseRemark) GetStrPlanID

func (p *DatabaseRemark) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

type DatabaseRemarkNetwork

type DatabaseRemarkNetwork struct {
	NetworkMaskLen int    `json:",omitempty"` // ネットワークマスク長
	DefaultRoute   string `json:",omitempty"` // デフォルトルート
}

DatabaseRemarkNetwork ネットワーク

func (*DatabaseRemarkNetwork) UnmarshalJSON

func (s *DatabaseRemarkNetwork) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(配列、オブジェクトが混在するためここで対応)

type DatabaseReplicationModels

type DatabaseReplicationModels string

DatabaseReplicationModels データベースのレプリケーションモデル

type DatabaseReplicationSetting

type DatabaseReplicationSetting struct {
	// Model レプリケーションモデル
	Model DatabaseReplicationModels `json:",omitempty"`
	// Appliance マスター側アプライアンス
	Appliance *DatabaseSourceAppliance `json:",omitempty"`
	// IPAddress IPアドレス
	IPAddress string `json:",omitempty"`
	// Port ポート
	Port int `json:",omitempty"`
	// User ユーザー
	User string `json:",omitempty"`
	// Password パスワード
	Password string `json:",omitempty"`
}

DatabaseReplicationSetting レプリケーション設定

type DatabaseServer

type DatabaseServer struct {
	IPAddress  string `json:",omitempty"` // IPアドレス
	Port       string `json:",omitempty"` // ポート
	Enabled    string `json:",omitempty"` // 有効/無効
	Status     string `json:",omitempty"` // ステータス
	ActiveConn string `json:",omitempty"` // アクティブコネクション
}

DatabaseServer データベースサーバー情報

type DatabaseSetting

type DatabaseSetting struct {
	Backup      *DatabaseBackupSetting      `json:",omitempty"` // バックアップ設定
	Common      *DatabaseCommonSetting      `json:",oitempty"`  // 共通設定
	Replication *DatabaseReplicationSetting `json:",omitempty"` // レプリケーション設定
}

DatabaseSetting データベース設定

type DatabaseSettings

type DatabaseSettings struct {
	DBConf *DatabaseSetting `json:",omitempty"` // コンフィグ
}

DatabaseSettings データベース設定リスト

type DatabaseSourceAppliance added in v1.35.0

type DatabaseSourceAppliance struct {
	ID ID `json:",omitempty"`
}

DatabaseSourceAppliance ソースアプライアンス(クローン元DB)

func (*DatabaseSourceAppliance) UnmarshalJSON added in v1.36.0

func (s *DatabaseSourceAppliance) UnmarshalJSON(b []byte) error

UnmarshalJSON 配列/オブジェクトが混在することへの対応

v2からのバックポート

type DatabaseStatus

type DatabaseStatus struct {
	*EServerInstanceStatus
	DBConf *DatabaseStatusDBConf `json:",omitempty"`
}

DatabaseStatus データベース ステータス

type DatabaseStatusDBConf

type DatabaseStatusDBConf struct {
	Version *DatabaseStatusVersion `json:"version,omitempty"`
	Log     []*DatabaseLog         `json:"log,omitempty"`
	Backup  *DatabaseBackupInfo    `json:"backup,omitempty"`
}

DatabaseStatusDBConf データベース設定

type DatabaseStatusVersion

type DatabaseStatusVersion struct {
	LastModified string `json:"lastmodified,omitempty"`
	CommitHash   string `json:"commithash,omitempty"`
	Status       string `json:"status,omitempty"`
	Tag          string `json:"tag,omitempty"`
	Expire       string `json:"expire,omitempty"`
}

DatabaseStatusVersion データベース設定バージョン情報

type DeleteCacheResult

type DeleteCacheResult struct {
	URL    string `json:",omitempty"` // URL
	Status int    `json:",omitempty"` // ステータス
	Result string `json:",omitempty"` // 結果
}

DeleteCacheResult ウェブアクセラレータ キャッシュ削除APIレスポンス

type Disk

type Disk struct {
	*Resource // ID

	Generation PlanGenerations `json:",omitempty"` // プラン世代

	ReinstallCount int `json:",omitempty"` // 再インストール回数

	Storage struct {
		*Resource              // ID
		Name       string      `json:",omitempty"`  // 名称
		DiskPlan   ProductDisk `json:",ommitempty"` // ディスクプラン
		MountIndex int64       `json:",omitempty"`  // マウント順
		Class      string      `json:",omitempty"`  // クラス
	}
	// contains filtered or unexported fields
}

Disk ディスク

func CreateNewDisk

func CreateNewDisk() *Disk

CreateNewDisk ディスクの作成

func (*Disk) AddDistantFrom

func (p *Disk) AddDistantFrom(id ID)

AddDistantFrom ストレージ隔離対象ディスク 追加

func (*Disk) AppendTag

func (p *Disk) AppendTag(target string)

AppendTag タグを追加

func (*Disk) ClearDistantFrom

func (p *Disk) ClearDistantFrom()

ClearDistantFrom ストレージ隔離対象ディスク クリア

func (*Disk) ClearIcon

func (p *Disk) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*Disk) ClearTags

func (p *Disk) ClearTags()

ClearTags 全タグを削除

func (*Disk) GetBundleInfo

func (p *Disk) GetBundleInfo() *BundleInfo

GetBundleInfo バンドル情報 取得

func (*Disk) GetCreatedAt

func (p *Disk) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Disk) GetDescription

func (p *Disk) GetDescription() string

GetDescription 説明 取得

func (*Disk) GetDiskConnection

func (p *Disk) GetDiskConnection() EDiskConnection

GetDiskConnection ディスク接続方法 取得

func (*Disk) GetDiskConnectionByStr

func (p *Disk) GetDiskConnectionByStr() string

GetDiskConnectionByStr ディスク接続方法 取得

func (*Disk) GetDiskConnectionOrder

func (p *Disk) GetDiskConnectionOrder() int

GetDiskConnectionOrder コネクション順序 取得

func (*Disk) GetDistantFrom

func (p *Disk) GetDistantFrom() []ID

GetDistantFrom ストレージ隔離対象ディスク 取得

func (*Disk) GetIcon

func (p *Disk) GetIcon() *Icon

GetIcon アイコンを取得

func (*Disk) GetIconID

func (p *Disk) GetIconID() ID

GetIconID アイコンIDを取得

func (*Disk) GetIconStrID

func (p *Disk) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*Disk) GetJobStatus

func (p *Disk) GetJobStatus() *MigrationJobStatus

GetJobStatus マイグレーションジョブステータス 取得

func (*Disk) GetMigratedGB

func (p *Disk) GetMigratedGB() int

GetMigratedGB サイズ(GB単位) 取得

func (*Disk) GetMigratedMB

func (p *Disk) GetMigratedMB() int

GetMigratedMB サイズ(MB単位) 取得

func (*Disk) GetName

func (p *Disk) GetName() string

GetName 名称 取得

func (*Disk) GetPlanID

func (p *Disk) GetPlanID() ID

GetPlanID プランID 取得

func (*Disk) GetServer

func (p *Disk) GetServer() *Server

GetServer 接続先サーバー 取得

func (*Disk) GetSizeGB

func (p *Disk) GetSizeGB() int

GetSizeGB サイズ(GB単位) 取得

func (*Disk) GetSizeMB

func (p *Disk) GetSizeMB() int

GetSizeMB サイズ(MB単位) 取得

func (*Disk) GetSourceArchive

func (p *Disk) GetSourceArchive() *Archive

GetSourceArchive ソースアーカイブ取得

func (*Disk) GetSourceArchiveID

func (p *Disk) GetSourceArchiveID() ID

GetSourceArchiveID ソースアーカイブID取得

func (*Disk) GetSourceDisk

func (p *Disk) GetSourceDisk() *Disk

GetSourceDisk ソースディスク取得

func (*Disk) GetSourceDiskID

func (p *Disk) GetSourceDiskID() ID

GetSourceDiskID ソースディスクID取得

func (*Disk) GetStrPlanID

func (p *Disk) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

func (*Disk) GetTags

func (p *Disk) GetTags() []string

GetTags タグ取得

func (*Disk) HasIcon

func (p *Disk) HasIcon() bool

HasIcon アイコンがセットされているか

func (*Disk) HasTag

func (p *Disk) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Disk) IsAvailable

func (p *Disk) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*Disk) IsFailed

func (p *Disk) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*Disk) IsMigrating

func (p *Disk) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*Disk) IsSophosUTM

func (p *Disk) IsSophosUTM() bool

func (*Disk) IsUploading

func (p *Disk) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*Disk) RemoveTag

func (p *Disk) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*Disk) SetDescription

func (p *Disk) SetDescription(desc string)

SetDescription 説明 設定

func (*Disk) SetDiskConnection

func (p *Disk) SetDiskConnection(conn EDiskConnection)

SetDiskConnection ディスク接続方法 設定

func (*Disk) SetDiskConnectionByStr

func (p *Disk) SetDiskConnectionByStr(conn string)

SetDiskConnectionByStr ディスク接続方法 設定

func (*Disk) SetDiskPlan

func (d *Disk) SetDiskPlan(strPlan string)

SetDiskPlan プラン文字列(ssd or sdd)からプラン設定

func (*Disk) SetDiskPlanToHDD

func (d *Disk) SetDiskPlanToHDD()

SetDiskPlanToHDD HDDプラン 設定

func (*Disk) SetDiskPlanToSSD

func (d *Disk) SetDiskPlanToSSD()

SetDiskPlanToSSD SSDプラン 設定

func (*Disk) SetDistantFrom

func (p *Disk) SetDistantFrom(ids []ID)

SetDistantFrom ストレージ隔離対象ディスク 設定

func (*Disk) SetIcon

func (p *Disk) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*Disk) SetIconByID

func (p *Disk) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*Disk) SetMigratedGB

func (p *Disk) SetMigratedGB(size int)

SetMigratedGB サイズ(GB単位) 設定

func (*Disk) SetMigratedMB

func (p *Disk) SetMigratedMB(size int)

SetMigratedMB サイズ(MB単位) 設定

func (*Disk) SetName

func (p *Disk) SetName(name string)

SetName 名称 設定

func (*Disk) SetServer

func (p *Disk) SetServer(server *Server)

SetServer 接続先サーバー 設定

func (*Disk) SetServerID

func (p *Disk) SetServerID(id ID)

SetServerID サーバーIDの設定

func (*Disk) SetSizeGB

func (p *Disk) SetSizeGB(size int)

SetSizeGB サイズ(GB単位) 設定

func (*Disk) SetSizeMB

func (p *Disk) SetSizeMB(size int)

SetSizeMB サイズ(MB単位) 設定

func (*Disk) SetSourceArchive

func (p *Disk) SetSourceArchive(sourceID ID)

SetSourceArchive ソースアーカイブ設定

func (*Disk) SetSourceDisk

func (p *Disk) SetSourceDisk(sourceID ID)

SetSourceDisk ソースディスク設定

func (*Disk) SetTags

func (p *Disk) SetTags(tags []string)

SetTags タグを設定

type DiskEditValue

type DiskEditValue struct {
	Background    bool        `json:",omitempty"` // バックグラウンド実行
	Password      *string     `json:",omitempty"` // パスワード
	SSHKey        *SSHKey     `json:",omitempty"` // 公開鍵(単体)
	SSHKeys       []*SSHKey   `json:",omitempty"` // 公開鍵(複数)
	DisablePWAuth *bool       `json:",omitempty"` // パスワード認証無効化フラグ
	HostName      *string     `json:",omitempty"` // ホスト名
	Notes         []*Resource `json:",omitempty"` // スタートアップスクリプト
	UserIPAddress *string     `json:",omitempty"` // IPアドレス
	UserSubnet    *struct {
		DefaultRoute   string `json:",omitempty"` // デフォルトルート
		NetworkMaskLen string `json:",omitempty"` // ネットワークマスク長
	} `json:",omitempty"`
}

DiskEditValue ディスクの修正用パラメータ

設定を行う項目のみ値をセットする。値のセットにはセッターを利用すること。

func (*DiskEditValue) AddNote

func (d *DiskEditValue) AddNote(noteID string)

AddNote スタートアップスクリプト 追加

func (*DiskEditValue) AddSSHKeyByString

func (d *DiskEditValue) AddSSHKeyByString(key string)

AddSSHKeyByString 公開鍵(文字列) 追加

func (*DiskEditValue) AddSSHKeys

func (d *DiskEditValue) AddSSHKeys(keyID string)

AddSSHKeys 公開鍵 設定

func (*DiskEditValue) SetBackground added in v1.28.0

func (d *DiskEditValue) SetBackground(value bool)

SetBackground バックグラウンド実行 設定

func (*DiskEditValue) SetDefaultRoute

func (d *DiskEditValue) SetDefaultRoute(route string)

SetDefaultRoute デフォルトルート 設定

func (*DiskEditValue) SetDisablePWAuth

func (d *DiskEditValue) SetDisablePWAuth(disable bool)

SetDisablePWAuth パスワード認証無効化フラグ 設定

func (*DiskEditValue) SetHostName

func (d *DiskEditValue) SetHostName(value string)

SetHostName ホスト名 設定

func (*DiskEditValue) SetNetworkMaskLen

func (d *DiskEditValue) SetNetworkMaskLen(length string)

SetNetworkMaskLen ネットワークマスク長 設定

func (*DiskEditValue) SetNotes

func (d *DiskEditValue) SetNotes(noteIDs []string)

SetNotes スタートアップスクリプト 設定

func (*DiskEditValue) SetPassword

func (d *DiskEditValue) SetPassword(value string)

SetPassword パスワード 設定

func (*DiskEditValue) SetSSHKeyByString

func (d *DiskEditValue) SetSSHKeyByString(keys []string)

SetSSHKeyByString 公開鍵(文字列) 設定

func (*DiskEditValue) SetSSHKeys

func (d *DiskEditValue) SetSSHKeys(keyIDs []string)

SetSSHKeys 公開鍵 設定

func (*DiskEditValue) SetUserIPAddress

func (d *DiskEditValue) SetUserIPAddress(ip string)

SetUserIPAddress IPアドレス 設定

type DiskPlanID

type DiskPlanID int64

DiskPlanID ディスクプランID

func (DiskPlanID) ToResource

func (d DiskPlanID) ToResource() *Resource

ToResource ディスクプランIDからリソースへの変換

type EAuthClass

type EAuthClass string

EAuthClass 認証種別

type EAuthMethod

type EAuthMethod string

EAuthMethod 認証方法

type EAvailability

type EAvailability string

EAvailability 有効状態

func (EAvailability) IsAvailable

func (e EAvailability) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (EAvailability) IsFailed

func (e EAvailability) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (EAvailability) IsMigrating

func (e EAvailability) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (EAvailability) IsUploading

func (e EAvailability) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

type ECommitment added in v1.22.0

type ECommitment string

ECommitment サーバプランCPUコミットメント

type EDiskConnection

type EDiskConnection string

EDiskConnection ディスク接続方法

type EExternalPermission

type EExternalPermission string

EExternalPermission 他サービスへのアクセス権

type EInterfaceDriver

type EInterfaceDriver string

EInterfaceDriver インターフェースドライバ

type ENoteClass

type ENoteClass string

ENoteClass スタートアップスクリプトクラス

type EOperationPenalty

type EOperationPenalty string

EOperationPenalty ペナルティ

type EPermission

type EPermission string

EPermission アクセスレベル

type EScope

type EScope string

EScope スコープ

type EServerInstanceStatus

type EServerInstanceStatus struct {
	Status       string `json:",omitempty"` // 現在のステータス
	BeforeStatus string `json:",omitempty"` // 前のステータス
}

EServerInstanceStatus サーバーインスタンスステータス

func (*EServerInstanceStatus) GetBeforeStatus

func (e *EServerInstanceStatus) GetBeforeStatus() string

GetBeforeStatus 以前のステータス 取得

func (*EServerInstanceStatus) GetStatus

func (e *EServerInstanceStatus) GetStatus() string

GetStatus ステータス 取得

func (*EServerInstanceStatus) IsDown

func (e *EServerInstanceStatus) IsDown() bool

IsDown インスタンスがダウンしているか確認

func (*EServerInstanceStatus) IsUp

func (e *EServerInstanceStatus) IsUp() bool

IsUp インスタンスが起動しているか判定

type ESimpleMonitorHealth added in v1.5.0

type ESimpleMonitorHealth string

ESimpleMonitorHealth シンプル監視ステータス

func (ESimpleMonitorHealth) IsDown added in v1.5.0

func (e ESimpleMonitorHealth) IsDown() bool

IsDown ダウン

func (ESimpleMonitorHealth) IsUp added in v1.5.0

func (e ESimpleMonitorHealth) IsUp() bool

IsUp アップ

type EUpstreamNetworkType added in v1.7.0

type EUpstreamNetworkType string

EUpstreamNetworkType 上流ネットワーク種別

func (EUpstreamNetworkType) String added in v1.7.0

func (t EUpstreamNetworkType) String() string

String EUpstreamNetworkTypeの文字列表現

type EWebAccelDomainType

type EWebAccelDomainType string

EWebAccelDomainType ウェブアクセラレータ ドメイン種別

type EWebAccelStatus

type EWebAccelStatus string

EWebAccelStatus ウェブアクセラレータ ステータス

type FTPOpenRequest

type FTPOpenRequest struct {
	ChangePassword bool // パスワード変更フラグ
}

FTPOpenRequest FTP接続オープンリクエスト

type FTPServer

type FTPServer struct {
	HostName  string `json:",omitempty"` // FTPサーバーホスト名
	IPAddress string `json:",omitempty"` // FTPサーバー IPアドレス
	User      string `json:",omitempty"` // 接続ユーザー名
	Password  string `json:",omitempty"` // パスワード

}

FTPServer FTPサーバー接続情報

type FlatMonitorValue

type FlatMonitorValue struct {
	Time  time.Time // 対象時刻
	Value float64   // 値
}

FlatMonitorValue フラット化したメトリクス

type GSLB

type GSLB struct {
	*Resource // ID

	Status   GSLBStatus   `json:",omitempty"` // ステータス
	Provider GSLBProvider `json:",omitempty"` // プロバイダ
	Settings GSLBSettings `json:",omitempty"` // GSLB設定
	// contains filtered or unexported fields
}

GSLB GSLB(CommonServiceItem)

func CreateNewGSLB

func CreateNewGSLB(gslbName string) *GSLB

CreateNewGSLB GSLB作成

func (*GSLB) AddGSLBServer

func (g *GSLB) AddGSLBServer(server *GSLBServer)

AddGSLBServer GSLB配下にサーバーを追加

func (*GSLB) AppendTag

func (p *GSLB) AppendTag(target string)

AppendTag タグを追加

func (*GSLB) ClearGSLBServer

func (g *GSLB) ClearGSLBServer()

ClearGSLBServer GSLB配下のサーバーをクリア

func (*GSLB) ClearIcon

func (p *GSLB) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*GSLB) ClearTags

func (p *GSLB) ClearTags()

ClearTags 全タグを削除

func (*GSLB) CreateGSLBServer

func (g *GSLB) CreateGSLBServer(ip string) *GSLBServer

CreateGSLBServer GSLB配下のサーバーを作成

func (*GSLB) GetCreatedAt

func (p *GSLB) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*GSLB) GetDescription

func (p *GSLB) GetDescription() string

GetDescription 説明 取得

func (*GSLB) GetIcon

func (p *GSLB) GetIcon() *Icon

GetIcon アイコンを取得

func (*GSLB) GetIconID

func (p *GSLB) GetIconID() ID

GetIconID アイコンIDを取得

func (*GSLB) GetIconStrID

func (p *GSLB) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*GSLB) GetModifiedAt

func (p *GSLB) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*GSLB) GetName

func (p *GSLB) GetName() string

GetName 名称 取得

func (*GSLB) GetServiceClass

func (p *GSLB) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*GSLB) GetTags

func (p *GSLB) GetTags() []string

GetTags タグ取得

func (*GSLB) HasGSLBServer

func (g *GSLB) HasGSLBServer() bool

HasGSLBServer GSLB配下にサーバーを保持しているか判定

func (*GSLB) HasIcon

func (p *GSLB) HasIcon() bool

HasIcon アイコンがセットされているか

func (*GSLB) HasTag

func (p *GSLB) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*GSLB) RemoveTag

func (p *GSLB) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*GSLB) SetDelayLoop

func (g *GSLB) SetDelayLoop(delayLoop int)

SetDelayLoop 監視間隔秒数 設定

func (*GSLB) SetDescription

func (p *GSLB) SetDescription(desc string)

SetDescription 説明 設定

func (*GSLB) SetHTTPHealthCheck

func (g *GSLB) SetHTTPHealthCheck(hostHeader string, path string, responseCode int)

SetHTTPHealthCheck HTTPヘルスチェック 設定

func (*GSLB) SetHTTPSHealthCheck

func (g *GSLB) SetHTTPSHealthCheck(hostHeader string, path string, responseCode int)

SetHTTPSHealthCheck HTTPSヘルスチェック 設定

func (*GSLB) SetIcon

func (p *GSLB) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*GSLB) SetIconByID

func (p *GSLB) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*GSLB) SetName

func (p *GSLB) SetName(name string)

SetName 名称 設定

func (*GSLB) SetPingHealthCheck

func (g *GSLB) SetPingHealthCheck()

SetPingHealthCheck Pingヘルスチェック 設定

func (*GSLB) SetSorryServer

func (g *GSLB) SetSorryServer(server string)

SetSorryServer ソーリーサーバ 設定

func (*GSLB) SetTCPHealthCheck

func (g *GSLB) SetTCPHealthCheck(port int)

SetTCPHealthCheck TCPヘルスチェック 設定

func (*GSLB) SetTags

func (p *GSLB) SetTags(tags []string)

SetTags タグを設定

func (*GSLB) SetWeightedEnable

func (g *GSLB) SetWeightedEnable(enable bool)

SetWeightedEnable 重み付け応答 有効/無効 設定

type GSLBHealthCheck

type GSLBHealthCheck struct {
	Protocol string `json:",omitempty"` // プロトコル
	Host     string `json:",omitempty"` // 対象ホスト
	Path     string `json:",omitempty"` // HTTP/HTTPSの場合のリクエストパス
	Status   string `json:",omitempty"` // 期待するステータスコード
	Port     string `json:",omitempty"` // ポート番号
}

GSLBHealthCheck ヘルスチェック

type GSLBProvider

type GSLBProvider struct {
	Class string `json:",omitempty"` // クラス
}

GSLBProvider プロバイダ

type GSLBRecordSets

type GSLBRecordSets struct {
	DelayLoop   int             `json:",omitempty"` // 監視間隔
	HealthCheck GSLBHealthCheck `json:",omitempty"` // ヘルスチェック
	Weighted    string          `json:",omitempty"` // ウェイト
	SorryServer string          `json:",omitempty"` // ソーリーサーバー
	Servers     []GSLBServer    // サーバー
}

GSLBRecordSets GSLBエントリー

func (*GSLBRecordSets) AddServer

func (g *GSLBRecordSets) AddServer(ip string)

AddServer GSLB配下のサーバーを追加

func (*GSLBRecordSets) DeleteServer

func (g *GSLBRecordSets) DeleteServer(ip string)

DeleteServer GSLB配下のサーバーを削除

type GSLBServer

type GSLBServer struct {
	IPAddress string `json:",omitempty"` // IPアドレス
	Enabled   string `json:",omitempty"` // 有効/無効
	Weight    string `json:",omitempty"` // ウェイト

}

GSLBServer GSLB配下のサーバー

type GSLBSettings

type GSLBSettings struct {
	GSLB GSLBRecordSets `json:",omitempty"` // GSLB GSLBエントリー
}

GSLBSettings GSLB設定

type GSLBStatus

type GSLBStatus struct {
	FQDN string `json:",omitempty"` // GSLBのFQDN
}

GSLBStatus GSLBステータス

type Host

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

Host さくらのクラウド ホスト(物理)

func (*Host) GetName

func (p *Host) GetName() string

GetName 名称 取得

func (*Host) SetName

func (p *Host) SetName(name string)

SetName 名称 設定

type ID added in v1.36.0

type ID int64

ID さくらのクラウド上のリソースのIDを示す

libsacloud v2のtypes.IDのバックポート APIリクエスト/レスポンスに文字列/数値が混在するためここで吸収する

func Int64ID added in v1.36.0

func Int64ID(id int64) ID

Int64ID creates new ID from int64

func StringID added in v1.36.0

func StringID(id string) ID

StringID creates new ID from string

func (ID) Int64 added in v1.36.0

func (i ID) Int64() int64

Int64 returns the number as an int64.

func (ID) IsEmpty added in v1.36.0

func (i ID) IsEmpty() bool

IsEmpty return true if ID is empty or zero value

func (ID) String added in v1.36.0

func (i ID) String() string

String returns the literal text of the number.

func (*ID) UnmarshalJSON added in v1.36.0

func (i *ID) UnmarshalJSON(b []byte) error

UnmarshalJSON implements unmarshal from both of JSON number and JSON string

type IPAddress

type IPAddress struct {
	HostName  string     `json:",omitempty"` // HostName ホスト名
	IPAddress string     `json:",omitempty"` // IPAddress IPv4アドレス
	Interface *Interface `json:",omitempty"` // Interface インターフェース
	Subnet    *Subnet    `json:",omitempty"` // Subnet IPv4サブネット

}

IPAddress IPアドレス(IPv4)

type IPv6Addr

type IPv6Addr struct {
	HostName  string     `json:",omitempty"` // ホスト名
	IPv6Addr  string     `json:",omitempty"` // IPv6アドレス
	Interface *Interface `json:",omitempty"` // インターフェース
	IPv6Net   *IPv6Net   `json:",omitempty"` // IPv6サブネット

}

IPv6Addr IPアドレス(IPv6)

func CreateNewIPv6Addr

func CreateNewIPv6Addr() *IPv6Addr

CreateNewIPv6Addr IPv6アドレス作成

func (*IPv6Addr) GetIPv6NetID

func (a *IPv6Addr) GetIPv6NetID() ID

GetIPv6NetID IPv6アドレスが所属するIPv6NetのIDを取得

func (*IPv6Addr) GetInternetID

func (a *IPv6Addr) GetInternetID() ID

GetInternetID IPv6アドレスを所有するルータ+スイッチ(Internet)のIDを取得

type IPv6Net

type IPv6Net struct {
	*Resource // ID

	IPv6Prefix         string    `json:",omitempty"` // IPv6プレフィックス
	IPv6PrefixLen      int       `json:",omitempty"` // IPv6プレフィックス長
	IPv6PrefixTail     string    `json:",omitempty"` // IPv6プレフィックス末尾
	IPv6Table          *Resource `json:",omitempty"` // IPv6テーブル
	NamedIPv6AddrCount int       `json:",omitempty"` // 名前付きIPv6アドレス数
	ServiceID          ID        `json:",omitempty"` // サービスID
	Switch             *Switch   `json:",omitempty"` // 接続先スイッチ
	// contains filtered or unexported fields
}

IPv6Net IPv6ネットワーク(サブネット)

func (*IPv6Net) GetCreatedAt

func (p *IPv6Net) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*IPv6Net) GetScope

func (p *IPv6Net) GetScope() string

GetScope スコープ 取得

func (*IPv6Net) GetServiceClass

func (p *IPv6Net) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*IPv6Net) IsSharedScope

func (p *IPv6Net) IsSharedScope() bool

IsSharedScope 共有スコープか判定

func (*IPv6Net) IsUserScope

func (p *IPv6Net) IsUserScope() bool

IsUserScope ユーザースコープか判定

func (*IPv6Net) SetScope

func (p *IPv6Net) SetScope(scope string)

SetScope スコープ 設定

func (*IPv6Net) SetSharedScope

func (p *IPv6Net) SetSharedScope()

SetSharedScope 共有スコープに設定

func (*IPv6Net) SetUserScope

func (p *IPv6Net) SetUserScope()

SetUserScope ユーザースコープに設定

type Icon

type Icon struct {
	*Resource // ID

	URL   string `json:",omitempty"` // アイコンURL
	Image string `json:",omitempty"` // 画像データBase64文字列(Sizeパラメータ指定時 or 画像アップロード時に利用)
	// contains filtered or unexported fields
}

Icon アイコン

func (*Icon) AppendTag

func (p *Icon) AppendTag(target string)

AppendTag タグを追加

func (*Icon) ClearTags

func (p *Icon) ClearTags()

ClearTags 全タグを削除

func (*Icon) GetCreatedAt

func (p *Icon) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Icon) GetImage

func (icon *Icon) GetImage() string

GetImage アイコン画像データ(base64)取得

func (*Icon) GetModifiedAt

func (p *Icon) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*Icon) GetName

func (p *Icon) GetName() string

GetName 名称 取得

func (*Icon) GetScope

func (p *Icon) GetScope() string

GetScope スコープ 取得

func (*Icon) GetTags

func (p *Icon) GetTags() []string

GetTags タグ取得

func (*Icon) GetURL

func (icon *Icon) GetURL() string

GetURL アイコン画像URL取得

func (*Icon) HasTag

func (p *Icon) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Icon) IsAvailable

func (p *Icon) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*Icon) IsFailed

func (p *Icon) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*Icon) IsMigrating

func (p *Icon) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*Icon) IsSharedScope

func (p *Icon) IsSharedScope() bool

IsSharedScope 共有スコープか判定

func (*Icon) IsUploading

func (p *Icon) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*Icon) IsUserScope

func (p *Icon) IsUserScope() bool

IsUserScope ユーザースコープか判定

func (*Icon) RemoveTag

func (p *Icon) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*Icon) SetImage

func (icon *Icon) SetImage(image string)

SetImage アイコン画像データ(base64)設定

func (*Icon) SetName

func (p *Icon) SetName(name string)

SetName 名称 設定

func (*Icon) SetScope

func (p *Icon) SetScope(scope string)

SetScope スコープ 設定

func (*Icon) SetSharedScope

func (p *Icon) SetSharedScope()

SetSharedScope 共有スコープに設定

func (*Icon) SetTags

func (p *Icon) SetTags(tags []string)

SetTags タグを設定

func (*Icon) SetUserScope

func (p *Icon) SetUserScope()

SetUserScope ユーザースコープに設定

type Image

type Image string

Image 画像データBASE64文字列

type Instance

type Instance struct {
	*EServerInstanceStatus            // ステータス
	Server                 Resource   `json:",omitempty"` // サーバー
	StatusChangedAt        *time.Time `json:",omitempty"` // ステータス変更日時
	MigrationProgress      string     `json:",omitempty"` // コピージョブ進捗状態
	MigrationSchedule      string     `json:",omitempty"` // コピージョブスケジュール
	IsMigrating            bool       `json:",omitempty"` // コピージョブ実施中フラグ
	MigrationAllowed       string     `json:",omitempty"` // コピージョブ許可
	ModifiedAt             *time.Time `json:",omitempty"` // 変更日時
	CDROM                  *CDROM     `json:",omitempty"` // ISOイメージ
	CDROMStorage           *Storage   `json:",omitempty"` // ISOイメージストレージ

	Host struct {
		Name          string `json:",omitempty"` // ホスト名
		InfoURL       string `json:",omitempty"` // インフォURL
		Class         string `json:",omitempty"` // クラス
		Version       int    `json:",omitempty"` // バージョン
		SystemVersion string `json:",omitempty"` // システムバージョン
	} `json:",omitempty"`
}

Instance インスタンス

func (*Instance) HasInfoURL

func (i *Instance) HasInfoURL() bool

HasInfoURL Host.InfoURLに値があるか

func (*Instance) MaintenanceScheduled

func (i *Instance) MaintenanceScheduled() bool

MaintenanceScheduled メンテナンス予定の有無

type Interface

type Interface struct {
	*Resource // ID

	MACAddress    string        `json:",omitempty"` // MACアドレス
	IPAddress     string        `json:",omitempty"` // IPアドレス
	UserIPAddress string        `json:",omitempty"` // ユーザー指定IPアドレス
	HostName      string        `json:",omitempty"` // ホスト名
	PacketFilter  *PacketFilter `json:",omitempty"` // 適用パケットフィルタ
	// contains filtered or unexported fields
}

Interface インターフェース(NIC)

func (*Interface) GetHostName

func (i *Interface) GetHostName() string

GetHostName ホスト名 取得

func (*Interface) GetIPAddress

func (i *Interface) GetIPAddress() string

GetIPAddress IPアドレス 取得

func (*Interface) GetMACAddress

func (i *Interface) GetMACAddress() string

GetMACAddress MACアドレス 取得

func (*Interface) GetPacketFilter

func (i *Interface) GetPacketFilter() *PacketFilter

GetPacketFilter 適用パケットフィルタ 取得

func (*Interface) GetServer

func (p *Interface) GetServer() *Server

GetServer 接続先サーバー 取得

func (*Interface) GetSwitch

func (p *Interface) GetSwitch() *Switch

GetSwitch スイッチ 取得

func (*Interface) GetUserIPAddress

func (i *Interface) GetUserIPAddress() string

GetUserIPAddress ユーザー指定IPアドレス 取得

func (*Interface) SetServer

func (p *Interface) SetServer(server *Server)

SetServer 接続先サーバー 設定

func (*Interface) SetServerID

func (p *Interface) SetServerID(id ID)

SetServerID サーバーIDの設定

func (*Interface) SetSwitch

func (p *Interface) SetSwitch(sw *Switch)

SetSwitch スイッチ 設定

func (*Interface) SetSwitchID

func (p *Interface) SetSwitchID(id ID)

SetSwitchID スイッチID 設定

func (*Interface) SetUserIPAddress

func (i *Interface) SetUserIPAddress(ip string)

SetUserIPAddress ユーザー指定IPアドレス 設定

func (*Interface) UpstreamType added in v1.7.0

func (i *Interface) UpstreamType() EUpstreamNetworkType

UpstreamType 上流ネットワーク種別

type Internet

type Internet struct {
	*Resource // ID

	BandWidthMbps  int `json:",omitempty"` // 帯域
	NetworkMaskLen int `json:",omitempty"` // ネットワークマスク長
	// contains filtered or unexported fields
}

Internet ルーター

func (*Internet) AppendTag

func (p *Internet) AppendTag(target string)

AppendTag タグを追加

func (*Internet) ClearIcon

func (p *Internet) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*Internet) ClearTags

func (p *Internet) ClearTags()

ClearTags 全タグを削除

func (*Internet) GetBandWidthMbps

func (i *Internet) GetBandWidthMbps() int

GetBandWidthMbps 帯域幅 取得

func (*Internet) GetCreatedAt

func (p *Internet) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Internet) GetDescription

func (p *Internet) GetDescription() string

GetDescription 説明 取得

func (*Internet) GetIcon

func (p *Internet) GetIcon() *Icon

GetIcon アイコンを取得

func (*Internet) GetIconID

func (p *Internet) GetIconID() ID

GetIconID アイコンIDを取得

func (*Internet) GetIconStrID

func (p *Internet) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*Internet) GetName

func (p *Internet) GetName() string

GetName 名称 取得

func (*Internet) GetNetworkMaskLen

func (i *Internet) GetNetworkMaskLen() int

GetNetworkMaskLen ネットワークマスク長 取得

func (*Internet) GetScope

func (p *Internet) GetScope() string

GetScope スコープ 取得

func (*Internet) GetServiceClass

func (p *Internet) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*Internet) GetSwitch

func (p *Internet) GetSwitch() *Switch

GetSwitch スイッチ 取得

func (*Internet) GetTags

func (p *Internet) GetTags() []string

GetTags タグ取得

func (*Internet) HasIcon

func (p *Internet) HasIcon() bool

HasIcon アイコンがセットされているか

func (*Internet) HasTag

func (p *Internet) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Internet) IsSharedScope

func (p *Internet) IsSharedScope() bool

IsSharedScope 共有スコープか判定

func (*Internet) IsUserScope

func (p *Internet) IsUserScope() bool

IsUserScope ユーザースコープか判定

func (*Internet) RemoveTag

func (p *Internet) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*Internet) SetBandWidthMbps

func (i *Internet) SetBandWidthMbps(v int)

SetBandWidthMbps 帯域幅 設定

func (*Internet) SetDescription

func (p *Internet) SetDescription(desc string)

SetDescription 説明 設定

func (*Internet) SetIcon

func (p *Internet) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*Internet) SetIconByID

func (p *Internet) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*Internet) SetName

func (p *Internet) SetName(name string)

SetName 名称 設定

func (*Internet) SetNetworkMaskLen

func (i *Internet) SetNetworkMaskLen(v int)

SetNetworkMaskLen ネットワークマスク長 設定

func (*Internet) SetScope

func (p *Internet) SetScope(scope string)

SetScope スコープ 設定

func (*Internet) SetSharedScope

func (p *Internet) SetSharedScope()

SetSharedScope 共有スコープに設定

func (*Internet) SetSwitch

func (p *Internet) SetSwitch(sw *Switch)

SetSwitch スイッチ 設定

func (*Internet) SetTags

func (p *Internet) SetTags(tags []string)

SetTags タグを設定

func (*Internet) SetUserScope

func (p *Internet) SetUserScope()

SetUserScope ユーザースコープに設定

type JobConfigError added in v1.28.3

type JobConfigError struct {
	ErrorCode string `json:",omitempty"`
	ErrorMsg  string `json:",omitempty"`
	Status    string `json:",omitempty"`
}

JobConfigError マイグレーションジョブのエラー

type KeyboardRequest

type KeyboardRequest struct {
	Keys []string `json:",omitempty"` // キー(複数)
	Key  string   `json:",omitempty"` // キー(単体)
}

KeyboardRequest キーボード送信リクエスト

type License

type License struct {
	*Resource // ID

	LicenseInfo *ProductLicense `json:",omitempty"` // ライセンス情報
	// contains filtered or unexported fields
}

License ライセンス

func (*License) GetCreatedAt

func (p *License) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*License) GetDescription

func (p *License) GetDescription() string

GetDescription 説明 取得

func (*License) GetLicenseInfo

func (l *License) GetLicenseInfo() *ProductLicense

GetLicenseInfo ライセンス情報 取得

func (*License) GetModifiedAt

func (p *License) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*License) GetName

func (p *License) GetName() string

GetName 名称 取得

func (*License) SetDescription

func (p *License) SetDescription(desc string)

SetDescription 説明 設定

func (*License) SetLicenseInfo

func (l *License) SetLicenseInfo(license *ProductLicense)

SetLicenseInfo ライセンス情報 設定

func (*License) SetLicenseInfoByID

func (l *License) SetLicenseInfoByID(id ID)

SetLicenseInfoByID ライセンス情報 設定

func (*License) SetName

func (p *License) SetName(name string)

SetName 名称 設定

type LoadBalancer

type LoadBalancer struct {
	*Appliance // アプライアンス共通属性

	Remark   *LoadBalancerRemark   `json:",omitempty"` // リマーク
	Settings *LoadBalancerSettings `json:",omitempty"` // ロードバランサー設定
}

LoadBalancer ロードバランサー

func CreateNewLoadBalancerDouble

func CreateNewLoadBalancerDouble(values *CreateDoubleLoadBalancerValue, settings []*LoadBalancerSetting) (*LoadBalancer, error)

CreateNewLoadBalancerDouble ロードバランサー(冗長化あり)作成

func CreateNewLoadBalancerSingle

func CreateNewLoadBalancerSingle(values *CreateLoadBalancerValue, settings []*LoadBalancerSetting) (*LoadBalancer, error)

CreateNewLoadBalancerSingle ロードバランサー作成(冗長化なし)

func (*LoadBalancer) AddLoadBalancerSetting

func (l *LoadBalancer) AddLoadBalancerSetting(setting *LoadBalancerSetting)

AddLoadBalancerSetting ロードバランサー仮想IP設定追加

ロードバランサー設定は仮想IPアドレス単位で保持しています。 仮想IPを増やす場合にこのメソッドを利用します。

func (LoadBalancer) AppendTag

func (p LoadBalancer) AppendTag(target string)

AppendTag タグを追加

func (LoadBalancer) ClearIcon

func (p LoadBalancer) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (LoadBalancer) ClearTags

func (p LoadBalancer) ClearTags()

ClearTags 全タグを削除

func (*LoadBalancer) DeleteLoadBalancerSetting

func (l *LoadBalancer) DeleteLoadBalancerSetting(vip string, port string)

DeleteLoadBalancerSetting ロードバランサー仮想IP設定の削除

func (LoadBalancer) GetCreatedAt

func (p LoadBalancer) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (LoadBalancer) GetDescription

func (p LoadBalancer) GetDescription() string

GetDescription 説明 取得

func (LoadBalancer) GetFirstInterface

func (p LoadBalancer) GetFirstInterface() *Interface

GetFirstInterface インターフェース(NIC)配列の先頭要素を返す

func (LoadBalancer) GetIcon

func (p LoadBalancer) GetIcon() *Icon

GetIcon アイコンを取得

func (LoadBalancer) GetIconID

func (p LoadBalancer) GetIconID() ID

GetIconID アイコンIDを取得

func (LoadBalancer) GetIconStrID

func (p LoadBalancer) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (LoadBalancer) GetInstance

func (p LoadBalancer) GetInstance() *Instance

GetInstance インスタンス 取得

func (LoadBalancer) GetInstanceBeforeStatus

func (p LoadBalancer) GetInstanceBeforeStatus() string

GetInstanceBeforeStatus 以前のステータス 取得

func (LoadBalancer) GetInstanceStatus

func (p LoadBalancer) GetInstanceStatus() string

GetInstanceStatus ステータス 取得

func (LoadBalancer) GetInterfaces

func (p LoadBalancer) GetInterfaces() []Interface

GetInterfaces インターフェース(NIC)配列 取得

func (LoadBalancer) GetMaintenanceInfoURL

func (p LoadBalancer) GetMaintenanceInfoURL() string

GetMaintenanceInfoURL メンテナンス情報 URL取得

func (LoadBalancer) GetName

func (p LoadBalancer) GetName() string

GetName 名称 取得

func (LoadBalancer) GetPlanID

func (p LoadBalancer) GetPlanID() ID

GetPlanID プランID 取得

func (LoadBalancer) GetServiceClass

func (p LoadBalancer) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (LoadBalancer) GetStrPlanID

func (p LoadBalancer) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

func (LoadBalancer) GetSwitch

func (p LoadBalancer) GetSwitch() *Switch

GetSwitch スイッチ 取得

func (LoadBalancer) GetTags

func (p LoadBalancer) GetTags() []string

GetTags タグ取得

func (LoadBalancer) HasIcon

func (p LoadBalancer) HasIcon() bool

HasIcon アイコンがセットされているか

func (LoadBalancer) HasTag

func (p LoadBalancer) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*LoadBalancer) IPAddress1 added in v1.9.0

func (l *LoadBalancer) IPAddress1() string

IPAddress1 ロードバランサ本体のIPアドレス(1番目)を返す

func (*LoadBalancer) IPAddress2 added in v1.9.0

func (l *LoadBalancer) IPAddress2() string

IPAddress2 ロードバランサ本体のIPアドレス(2番目)を返す

func (LoadBalancer) IsAvailable

func (p LoadBalancer) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (LoadBalancer) IsDown

func (p LoadBalancer) IsDown() bool

IsDown インスタンスがダウンしているか確認

func (LoadBalancer) IsFailed

func (p LoadBalancer) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*LoadBalancer) IsHA added in v1.9.0

func (l *LoadBalancer) IsHA() bool

IsHA 冗長化されている場合にtrueを返す

func (LoadBalancer) IsMigrating

func (p LoadBalancer) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (LoadBalancer) IsUp

func (p LoadBalancer) IsUp() bool

IsUp インスタンスが起動しているか判定

func (LoadBalancer) IsUploading

func (p LoadBalancer) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (LoadBalancer) MaintenanceScheduled

func (p LoadBalancer) MaintenanceScheduled() bool

MaintenanceScheduled メンテナンス予定の有無

func (LoadBalancer) RemoveTag

func (p LoadBalancer) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (LoadBalancer) SetDescription

func (p LoadBalancer) SetDescription(desc string)

SetDescription 説明 設定

func (LoadBalancer) SetIcon

func (p LoadBalancer) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (LoadBalancer) SetIconByID

func (p LoadBalancer) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (LoadBalancer) SetName

func (p LoadBalancer) SetName(name string)

SetName 名称 設定

func (LoadBalancer) SetSwitch

func (p LoadBalancer) SetSwitch(sw *Switch)

SetSwitch スイッチ 設定

func (LoadBalancer) SetTags

func (p LoadBalancer) SetTags(tags []string)

SetTags タグを設定

type LoadBalancerHealthCheck

type LoadBalancerHealthCheck struct {
	Protocol string `json:",omitempty"` // プロトコル
	Path     string `json:",omitempty"` // HTTP/HTTPSの場合のリクエストパス
	Status   string `json:",omitempty"` // HTTP/HTTPSの場合の期待するレスポンスコード
}

LoadBalancerHealthCheck ヘルスチェック

type LoadBalancerPlan

type LoadBalancerPlan int

LoadBalancerPlan ロードバランサープラン

type LoadBalancerRemark

type LoadBalancerRemark struct {
	*ApplianceRemarkBase
}

LoadBalancerRemark リマーク

type LoadBalancerServer

type LoadBalancerServer struct {
	IPAddress   string                   `json:",omitempty"` // IPアドレス
	Port        string                   `json:",omitempty"` // ポート番号
	HealthCheck *LoadBalancerHealthCheck `json:",omitempty"` // ヘルスチェック
	Enabled     string                   `json:",omitempty"` // 有効/無効
	Status      string                   `json:",omitempty"` // ステータス
	ActiveConn  string                   `json:",omitempty"` // アクティブなコネクション
}

LoadBalancerServer 仮想IP設定配下のサーバー

type LoadBalancerServerStatus added in v1.9.0

type LoadBalancerServerStatus struct {
	ActiveConn string
	IPAddress  string
	Status     string
	Port       string
	CPS        string
}

LoadBalancerServerStatus ロードバランサーのVIP配下の実サーバのステータス

func (*LoadBalancerServerStatus) NumActiveConn added in v1.9.0

func (l *LoadBalancerServerStatus) NumActiveConn() int

NumActiveConn ActiveConnを数値にして返す

func (*LoadBalancerServerStatus) NumCPS added in v1.9.0

func (l *LoadBalancerServerStatus) NumCPS() int

NumCPS CPSを数値にして返す

func (*LoadBalancerServerStatus) NumPort added in v1.9.0

func (l *LoadBalancerServerStatus) NumPort() int

NumPort Portを数値にして返す

type LoadBalancerSetting

type LoadBalancerSetting struct {
	VirtualIPAddress string                `json:",omitempty"` // 仮想IPアドレス
	Port             string                `json:",omitempty"` // ポート番号
	DelayLoop        string                `json:",omitempty"` // 監視間隔
	SorryServer      string                `json:",omitempty"` // ソーリーサーバー
	Description      string                `json:",omitempty"` // 説明
	Servers          []*LoadBalancerServer `json:",omitempty"` // 仮想IP配下の実サーバー
}

LoadBalancerSetting ロードバランサー仮想IP設定

func (*LoadBalancerSetting) AddServer

func (s *LoadBalancerSetting) AddServer(server *LoadBalancerServer)

AddServer 仮想IP設定配下へ実サーバーを追加

func (*LoadBalancerSetting) DeleteServer

func (s *LoadBalancerSetting) DeleteServer(ip string, port string)

DeleteServer 仮想IP設定配下の実サーバーを削除

type LoadBalancerSettings

type LoadBalancerSettings struct {
	LoadBalancer []*LoadBalancerSetting // ロードバランサー設定リスト
}

LoadBalancerSettings ロードバランサー設定リスト

type LoadBalancerStatus added in v1.9.0

type LoadBalancerStatus struct {
	VirtualIPAddress string
	Port             string
	Servers          []*LoadBalancerServerStatus `json:",omitempty"`
	CPS              string
}

LoadBalancerStatus ロードバランサーのステータス

func (*LoadBalancerStatus) Get added in v1.9.0

Get IPアドレスに対応する実サーバのステータスを取得

func (*LoadBalancerStatus) NumCPS added in v1.9.0

func (l *LoadBalancerStatus) NumCPS() int

NumCPS CPSを数値にして返す

func (*LoadBalancerStatus) NumPort added in v1.9.0

func (l *LoadBalancerStatus) NumPort() int

NumPort Portを数値にして返す

type LoadBalancerStatusResult added in v1.9.0

type LoadBalancerStatusResult []*LoadBalancerStatus

LoadBalancerStatusResult ロードバランサーのステータスAPI戻り値

func (*LoadBalancerStatusResult) Get added in v1.9.0

Get VIPに対応するステータスを取得

type MGWInterDeviceCommunication added in v1.13.0

type MGWInterDeviceCommunication struct {
	Enabled string `json:",omitempty"`
}

MGWInterDeviceCommunication デバイス間通信

type MGWInterface

type MGWInterface struct {
	IPAddress      []string `json:",omitempty"`
	NetworkMaskLen int      `json:",omitempty"`
}

MGWInterface インターフェース

type MGWInternetConnection

type MGWInternetConnection struct {
	Enabled string `json:",omitempty"`
}

MGWInternetConnection インターネット接続

type MGWStaticRoute

type MGWStaticRoute struct {
	Prefix  string `json:",omitempty"`
	NextHop string `json:",omitempty"`
}

MGWStaticRoute スタティックルート

type Member

type Member struct {
	Class string `json:",omitempty"` // クラス
	Code  string `json:",omitempty"` // 会員コード

}

Member 会員情報

type MigrationJobStatus

type MigrationJobStatus struct {
	Status      string          `json:",omitempty"` // ステータス
	ConfigError *JobConfigError `json:",omitempty"`
	Delays      *struct {
		Start *struct {
			Max int `json:",omitempty"` // 最大
			Min int `json:",omitempty"` // 最小
		} `json:",omitempty"`

		Finish *struct {
			Max int `json:",omitempty"` // 最大
			Min int `json:",omitempty"` // 最小
		} `json:",omitempty"`
	}
}

MigrationJobStatus マイグレーションジョブステータス

type MobileGateway

type MobileGateway struct {
	*Appliance // アプライアンス共通属性

	Remark   *MobileGatewayRemark   `json:",omitempty"` // リマーク
	Settings *MobileGatewaySettings `json:",omitempty"` // モバイルゲートウェイ設定
}

MobileGateway モバイルゲートウェイ

func CreateNewMobileGateway

func CreateNewMobileGateway(values *CreateMobileGatewayValue, setting *MobileGatewaySetting) (*MobileGateway, error)

CreateNewMobileGateway モバイルゲートウェイ作成

func (MobileGateway) AppendTag

func (p MobileGateway) AppendTag(target string)

AppendTag タグを追加

func (MobileGateway) ClearIcon

func (p MobileGateway) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*MobileGateway) ClearPrivateInterface

func (m *MobileGateway) ClearPrivateInterface()

ClearPrivateInterface プライベート側NICの切断

func (MobileGateway) ClearTags

func (p MobileGateway) ClearTags()

ClearTags 全タグを削除

func (MobileGateway) GetCreatedAt

func (p MobileGateway) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (MobileGateway) GetDescription

func (p MobileGateway) GetDescription() string

GetDescription 説明 取得

func (MobileGateway) GetFirstInterface

func (p MobileGateway) GetFirstInterface() *Interface

GetFirstInterface インターフェース(NIC)配列の先頭要素を返す

func (MobileGateway) GetIcon

func (p MobileGateway) GetIcon() *Icon

GetIcon アイコンを取得

func (MobileGateway) GetIconID

func (p MobileGateway) GetIconID() ID

GetIconID アイコンIDを取得

func (MobileGateway) GetIconStrID

func (p MobileGateway) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (MobileGateway) GetInstance

func (p MobileGateway) GetInstance() *Instance

GetInstance インスタンス 取得

func (MobileGateway) GetInstanceBeforeStatus

func (p MobileGateway) GetInstanceBeforeStatus() string

GetInstanceBeforeStatus 以前のステータス 取得

func (MobileGateway) GetInstanceStatus

func (p MobileGateway) GetInstanceStatus() string

GetInstanceStatus ステータス 取得

func (MobileGateway) GetInterfaces

func (p MobileGateway) GetInterfaces() []Interface

GetInterfaces インターフェース(NIC)配列 取得

func (MobileGateway) GetMaintenanceInfoURL

func (p MobileGateway) GetMaintenanceInfoURL() string

GetMaintenanceInfoURL メンテナンス情報 URL取得

func (MobileGateway) GetName

func (p MobileGateway) GetName() string

GetName 名称 取得

func (MobileGateway) GetPlanID

func (p MobileGateway) GetPlanID() ID

GetPlanID プランID 取得

func (MobileGateway) GetServiceClass

func (p MobileGateway) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (MobileGateway) GetStrPlanID

func (p MobileGateway) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

func (MobileGateway) GetSwitch

func (p MobileGateway) GetSwitch() *Switch

GetSwitch スイッチ 取得

func (MobileGateway) GetTags

func (p MobileGateway) GetTags() []string

GetTags タグ取得

func (MobileGateway) HasIcon

func (p MobileGateway) HasIcon() bool

HasIcon アイコンがセットされているか

func (*MobileGateway) HasSetting

func (m *MobileGateway) HasSetting() bool

HasSetting モバイルゲートウェイ設定を保持しているか

func (*MobileGateway) HasStaticRoutes

func (m *MobileGateway) HasStaticRoutes() bool

HasStaticRoutes スタティックルートを保持しているか

func (MobileGateway) HasTag

func (p MobileGateway) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*MobileGateway) IPAddress added in v1.13.0

func (m *MobileGateway) IPAddress() string

IPAddress 0番目のNICのIPアドレスを取得

func (*MobileGateway) IPAddressAt added in v1.13.0

func (m *MobileGateway) IPAddressAt(index int) string

IPAddressAt IPアドレスを取得

func (*MobileGateway) InterDeviceCommunication added in v1.13.0

func (m *MobileGateway) InterDeviceCommunication() bool

InterDeviceCommunication デバイス間通信が有効な場合にTrueを返す

func (*MobileGateway) InternetConnection added in v1.13.0

func (m *MobileGateway) InternetConnection() bool

InternetConnection インターネット接続が有効な場合にTrueを返す

func (MobileGateway) IsAvailable

func (p MobileGateway) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (MobileGateway) IsDown

func (p MobileGateway) IsDown() bool

IsDown インスタンスがダウンしているか確認

func (MobileGateway) IsFailed

func (p MobileGateway) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (MobileGateway) IsMigrating

func (p MobileGateway) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (MobileGateway) IsUp

func (p MobileGateway) IsUp() bool

IsUp インスタンスが起動しているか判定

func (MobileGateway) IsUploading

func (p MobileGateway) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (MobileGateway) MaintenanceScheduled

func (p MobileGateway) MaintenanceScheduled() bool

MaintenanceScheduled メンテナンス予定の有無

func (*MobileGateway) NetworkMaskLen added in v1.13.0

func (m *MobileGateway) NetworkMaskLen() int

NetworkMaskLen 0番目のNICのネットワークマスク長を取得

func (*MobileGateway) NetworkMaskLenAt added in v1.13.0

func (m *MobileGateway) NetworkMaskLenAt(index int) int

NetworkMaskLenAt ネットワークマスク長を取得

func (MobileGateway) RemoveTag

func (p MobileGateway) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (MobileGateway) SetDescription

func (p MobileGateway) SetDescription(desc string)

SetDescription 説明 設定

func (MobileGateway) SetIcon

func (p MobileGateway) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (MobileGateway) SetIconByID

func (p MobileGateway) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (MobileGateway) SetName

func (p MobileGateway) SetName(name string)

SetName 名称 設定

func (*MobileGateway) SetPrivateInterface

func (m *MobileGateway) SetPrivateInterface(ip string, nwMaskLen int)

SetPrivateInterface プライベート側NICの接続

func (MobileGateway) SetSwitch

func (p MobileGateway) SetSwitch(sw *Switch)

SetSwitch スイッチ 設定

func (MobileGateway) SetTags

func (p MobileGateway) SetTags(tags []string)

SetTags タグを設定

type MobileGatewayPlan

type MobileGatewayPlan int

MobileGatewayPlan モバイルゲートウェイプラン

type MobileGatewayRemark

type MobileGatewayRemark struct {
	*ApplianceRemarkBase
}

MobileGatewayRemark リマーク

type MobileGatewayResolver

type MobileGatewayResolver struct {
	SimGroup *MobileGatewaySIMGroup `json:"sim_group,omitempty"`
}

MobileGatewayResolver DNS登録用パラメータ

func NewMobileGatewayResolver

func NewMobileGatewayResolver(dns1, dns2 string) *MobileGatewayResolver

NewMobileGatewayResolver DNS登録用パラメータ作成

type MobileGatewaySIMGroup

type MobileGatewaySIMGroup struct {
	DNS1 string `json:"dns_1,omitempty"`
	DNS2 string `json:"dns_2,omitempty"`
}

MobileGatewaySIMGroup DNS登録用SIMグループ値

func (*MobileGatewaySIMGroup) UnmarshalJSON

func (m *MobileGatewaySIMGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(配列、オブジェクトが混在するためここで対応)

type MobileGatewaySIMRoute

type MobileGatewaySIMRoute struct {
	ICCID      string `json:"iccid,omitempty"`
	Prefix     string `json:"prefix,omitempty"`
	ResourceID string `json:"resource_id,omitempty"`
}

MobileGatewaySIMRoute SIルート

type MobileGatewaySIMRoutes

type MobileGatewaySIMRoutes struct {
	SIMRoutes []*MobileGatewaySIMRoute `json:"sim_routes"`
}

MobileGatewaySIMRoutes SIMルート一覧

func (*MobileGatewaySIMRoutes) AddSIMRoute

func (m *MobileGatewaySIMRoutes) AddSIMRoute(simID ID, prefix string) (int, *MobileGatewaySIMRoute)

AddSIMRoute SIMルート追加

func (*MobileGatewaySIMRoutes) DeleteSIMRoute

func (m *MobileGatewaySIMRoutes) DeleteSIMRoute(simID ID, prefix string) bool

DeleteSIMRoute SIMルート削除

func (*MobileGatewaySIMRoutes) DeleteSIMRouteAt

func (m *MobileGatewaySIMRoutes) DeleteSIMRouteAt(index int) bool

DeleteSIMRouteAt SIMルート削除

func (*MobileGatewaySIMRoutes) FindSIMRoute

func (m *MobileGatewaySIMRoutes) FindSIMRoute(simID ID, prefix string) (int, *MobileGatewaySIMRoute)

FindSIMRoute SIMルート設定 検索

type MobileGatewaySetting

type MobileGatewaySetting struct {
	InternetConnection       *MGWInternetConnection       `json:",omitempty"` // インターネット接続
	InterDeviceCommunication *MGWInterDeviceCommunication `json:",omitempty"` // デバイス間通信
	Interfaces               []*MGWInterface              `json:",omitempty"` // インターフェース
	StaticRoutes             []*MGWStaticRoute            `json:",omitempty"` // スタティックルート
}

MobileGatewaySetting モバイルゲートウェイ設定

func (*MobileGatewaySetting) AddStaticRoute

func (m *MobileGatewaySetting) AddStaticRoute(prefix string, nextHop string) (int, *MGWStaticRoute)

AddStaticRoute スタティックルート設定 追加

func (*MobileGatewaySetting) FindStaticRoute

func (m *MobileGatewaySetting) FindStaticRoute(prefix string, nextHop string) (int, *MGWStaticRoute)

FindStaticRoute スタティックルート設定 検索

func (*MobileGatewaySetting) HasStaticRoutes

func (m *MobileGatewaySetting) HasStaticRoutes() bool

HasStaticRoutes スタティックルートを保持しているか

func (*MobileGatewaySetting) RemoveStaticRoute

func (m *MobileGatewaySetting) RemoveStaticRoute(prefix string, nextHop string)

RemoveStaticRoute スタティックルート設定 削除

func (*MobileGatewaySetting) RemoveStaticRouteAt

func (m *MobileGatewaySetting) RemoveStaticRouteAt(index int)

RemoveStaticRouteAt スタティックルート設定 削除

type MobileGatewaySettings

type MobileGatewaySettings struct {
	MobileGateway *MobileGatewaySetting `json:",omitempty"` // モバイルゲートウェイ設定リスト
}

MobileGatewaySettings モバイルゲートウェイ設定

type MonitorSummary

type MonitorSummary struct {
	CPU  *MonitorSummaryData // CPU時間サマリー
	Disk *struct {
		Write *MonitorSummaryData // ディスク書き込みサマリー
		Read  *MonitorSummaryData // ディスク読み取りサマリー
	}
	Interface *struct {
		Receive *MonitorSummaryData // 受信パケットサマリー
		Send    *MonitorSummaryData // 送信パケットサマリー
	}
}

MonitorSummary アクティビティーモニター サマリー

type MonitorSummaryData

type MonitorSummaryData struct {
	Max   float64 // 最大値
	Min   float64 // 最小値
	Avg   float64 // 平均値
	Count float64 // データ個数

}

MonitorSummaryData メトリクスサマリー

type MonitorValue

type MonitorValue struct {
	CPUTime           *float64 `json:"CPU-TIME,omitempty"`          // CPU時間
	Write             *float64 `json:",omitempty"`                  // ディスク書き込み
	Read              *float64 `json:",omitempty"`                  // ディスク読み取り
	Receive           *float64 `json:",omitempty"`                  // パケット受信
	Send              *float64 `json:",omitempty"`                  // パケット送信
	In                *float64 `json:",omitempty"`                  // パケット受信
	Out               *float64 `json:",omitempty"`                  // パケット送信
	TotalMemorySize   *float64 `json:"Total-Memory-Size,omitempty"` // 総メモリサイズ
	UsedMemorySize    *float64 `json:"Used-Memory-Size,omitempty"`  // 使用済みメモリサイズ
	TotalDisk1Size    *float64 `json:"Total-Disk1-Size,omitempty"`  // 総ディスクサイズ
	UsedDisk1Size     *float64 `json:"Used-Disk1-Size,omitempty"`   // 使用済みディスクサイズ
	TotalDisk2Size    *float64 `json:"Total-Disk2-Size,omitempty"`  // 総ディスクサイズ
	UsedDisk2Size     *float64 `json:"Used-Disk2-Size,omitempty"`   // 使用済みディスクサイズ
	BinlogUsedSizeKiB *float64 `json:"binlogUsedSizeKiB,omitempty"` // バイナリログのサイズ(レプリケーション有効時のみ、master/slave両方で利用可能)
	DelayTimeSec      *float64 `json:"delayTimeSec,omitempty"`      // レプリケーション遅延時間(レプリケーション有効時のみ、slave側のみ)
	FreeDiskSize      *float64 `json:"Free-Disk-Size,omitempty"`    // 空きディスクサイズ(NFS)
	ResponseTimeSec   *float64 `json:"responsetimesec,omitempty"`   // レスポンスタイム(シンプル監視)
	UplinkBPS         *float64 `json:"UplinkBps,omitempty"`         // 上り方向トラフィック
	DownlinkBPS       *float64 `json:"DownlinkBps,omitempty"`       // 下り方向トラフィック
	ActiveConnections *float64 `json:"activeConnections,omitempty"` // アクティブコネクション(プロキシLB)
	ConnectionsPerSec *float64 `json:"connectionsPerSec,omitempty"` // 秒間コネクション数
}

MonitorValue アクティビティモニター

func (*MonitorValue) HasValue

func (m *MonitorValue) HasValue() bool

HasValue 取得したアクティビティーモニターに有効値が含まれるか判定

func (*MonitorValue) UnmarshalJSON

func (m *MonitorValue) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(配列、オブジェクトが混在するためここで対応)

type MonitorValues

type MonitorValues map[string]*MonitorValue

MonitorValues メトリクス リスト

func (*MonitorValues) Calc

func (m *MonitorValues) Calc() *MonitorSummary

Calc サマリー計算

func (*MonitorValues) FlattenActiveConnections added in v1.15.0

func (m *MonitorValues) FlattenActiveConnections() ([]FlatMonitorValue, error)

FlattenActiveConnections フラット化 アクティブコネクション

func (*MonitorValues) FlattenBinlogUsedSizeKiBValue added in v1.12.0

func (m *MonitorValues) FlattenBinlogUsedSizeKiBValue() ([]FlatMonitorValue, error)

FlattenBinlogUsedSizeKiBValue フラット化 バイナリログサイズ

func (*MonitorValues) FlattenCPUTimeValue

func (m *MonitorValues) FlattenCPUTimeValue() ([]FlatMonitorValue, error)

FlattenCPUTimeValue フラット化 CPU時間

func (*MonitorValues) FlattenConnectionsPerSec added in v1.15.0

func (m *MonitorValues) FlattenConnectionsPerSec() ([]FlatMonitorValue, error)

FlattenConnectionsPerSec フラット化 秒間接続数

func (*MonitorValues) FlattenDelayTimeSecValue added in v1.12.0

func (m *MonitorValues) FlattenDelayTimeSecValue() ([]FlatMonitorValue, error)

FlattenDelayTimeSecValue フラット化 レプリケーション遅延時間

func (*MonitorValues) FlattenDiskReadValue

func (m *MonitorValues) FlattenDiskReadValue() ([]FlatMonitorValue, error)

FlattenDiskReadValue フラット化 ディスク読み取り

func (*MonitorValues) FlattenDiskWriteValue

func (m *MonitorValues) FlattenDiskWriteValue() ([]FlatMonitorValue, error)

FlattenDiskWriteValue フラット化 ディスク書き込み

func (*MonitorValues) FlattenDownlinkBPSValue

func (m *MonitorValues) FlattenDownlinkBPSValue() ([]FlatMonitorValue, error)

FlattenDownlinkBPSValue フラット化 下り方向トライフィック(セキュアモバイルSIM)

func (*MonitorValues) FlattenFreeDiskSizeValue

func (m *MonitorValues) FlattenFreeDiskSizeValue() ([]FlatMonitorValue, error)

FlattenFreeDiskSizeValue フラット化 空きディスクサイズ(NFS)

func (*MonitorValues) FlattenInternetInValue

func (m *MonitorValues) FlattenInternetInValue() ([]FlatMonitorValue, error)

FlattenInternetInValue フラット化 パケット受信

func (*MonitorValues) FlattenInternetOutValue

func (m *MonitorValues) FlattenInternetOutValue() ([]FlatMonitorValue, error)

FlattenInternetOutValue フラット化 パケット送信

func (*MonitorValues) FlattenPacketReceiveValue

func (m *MonitorValues) FlattenPacketReceiveValue() ([]FlatMonitorValue, error)

FlattenPacketReceiveValue フラット化 パケット受信

func (*MonitorValues) FlattenPacketSendValue

func (m *MonitorValues) FlattenPacketSendValue() ([]FlatMonitorValue, error)

FlattenPacketSendValue フラット化 パケット送信

func (*MonitorValues) FlattenResponseTimeSecValue

func (m *MonitorValues) FlattenResponseTimeSecValue() ([]FlatMonitorValue, error)

FlattenResponseTimeSecValue フラット化 レスポンスタイム(シンプル監視)

func (*MonitorValues) FlattenTotalDisk1SizeValue

func (m *MonitorValues) FlattenTotalDisk1SizeValue() ([]FlatMonitorValue, error)

FlattenTotalDisk1SizeValue フラット化 総ディスクサイズ

func (*MonitorValues) FlattenTotalDisk2SizeValue

func (m *MonitorValues) FlattenTotalDisk2SizeValue() ([]FlatMonitorValue, error)

FlattenTotalDisk2SizeValue フラット化 総ディスクサイズ

func (*MonitorValues) FlattenTotalMemorySizeValue

func (m *MonitorValues) FlattenTotalMemorySizeValue() ([]FlatMonitorValue, error)

FlattenTotalMemorySizeValue フラット化 総メモリサイズ

func (*MonitorValues) FlattenUplinkBPSValue

func (m *MonitorValues) FlattenUplinkBPSValue() ([]FlatMonitorValue, error)

FlattenUplinkBPSValue フラット化 上り方向トラフィック(セキュアモバイルSIM)

func (*MonitorValues) FlattenUsedDisk1SizeValue

func (m *MonitorValues) FlattenUsedDisk1SizeValue() ([]FlatMonitorValue, error)

FlattenUsedDisk1SizeValue フラット化 使用済みディスクサイズ

func (*MonitorValues) FlattenUsedDisk2SizeValue

func (m *MonitorValues) FlattenUsedDisk2SizeValue() ([]FlatMonitorValue, error)

FlattenUsedDisk2SizeValue フラット化 使用済みディスクサイズ

func (*MonitorValues) FlattenUsedMemorySizeValue

func (m *MonitorValues) FlattenUsedMemorySizeValue() ([]FlatMonitorValue, error)

FlattenUsedMemorySizeValue フラット化 使用済みメモリサイズ

func (*MonitorValues) UnmarshalJSON added in v1.10.0

func (m *MonitorValues) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(配列、オブジェクトが混在するためここで対応)

type MouseRequest

type MouseRequest struct {
	X       *int                 `json:",omitempty"` // X
	Y       *int                 `json:",omitempty"` // Y
	Z       *int                 `json:",omitempty"` // Z
	Buttons *MouseRequestButtons `json:",omitempty"` // マウスボタン

}

MouseRequest マウス送信リクエスト

type MouseRequestButtons

type MouseRequestButtons struct {
	L bool `json:",omitempty"` // 左ボタン
	R bool `json:",omitempty"` // 右ボタン
	M bool `json:",omitempty"` // 中ボタン
}

MouseRequestButtons マウスボタン

type NFS

type NFS struct {
	*Appliance // アプライアンス共通属性

	Remark   *NFSRemark   `json:",omitempty"` // リマーク
	Settings *NFSSettings `json:",omitempty"` // NFS設定
}

NFS NFS

func NewNFS

func NewNFS(values *CreateNFSValue) *NFS

NewNFS NFS作成(冗長化なし)

func (NFS) AppendTag

func (p NFS) AppendTag(target string)

AppendTag タグを追加

func (NFS) ClearIcon

func (p NFS) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (NFS) ClearTags

func (p NFS) ClearTags()

ClearTags 全タグを削除

func (*NFS) DefaultRoute added in v1.11.0

func (n *NFS) DefaultRoute() string

DefaultRoute デフォルトゲートウェイを取得

func (NFS) GetCreatedAt

func (p NFS) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (NFS) GetDescription

func (p NFS) GetDescription() string

GetDescription 説明 取得

func (NFS) GetFirstInterface

func (p NFS) GetFirstInterface() *Interface

GetFirstInterface インターフェース(NIC)配列の先頭要素を返す

func (NFS) GetIcon

func (p NFS) GetIcon() *Icon

GetIcon アイコンを取得

func (NFS) GetIconID

func (p NFS) GetIconID() ID

GetIconID アイコンIDを取得

func (NFS) GetIconStrID

func (p NFS) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (NFS) GetInstance

func (p NFS) GetInstance() *Instance

GetInstance インスタンス 取得

func (NFS) GetInstanceBeforeStatus

func (p NFS) GetInstanceBeforeStatus() string

GetInstanceBeforeStatus 以前のステータス 取得

func (NFS) GetInstanceStatus

func (p NFS) GetInstanceStatus() string

GetInstanceStatus ステータス 取得

func (NFS) GetInterfaces

func (p NFS) GetInterfaces() []Interface

GetInterfaces インターフェース(NIC)配列 取得

func (NFS) GetMaintenanceInfoURL

func (p NFS) GetMaintenanceInfoURL() string

GetMaintenanceInfoURL メンテナンス情報 URL取得

func (NFS) GetName

func (p NFS) GetName() string

GetName 名称 取得

func (NFS) GetPlanID

func (p NFS) GetPlanID() ID

GetPlanID プランID 取得

func (NFS) GetServiceClass

func (p NFS) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (NFS) GetStrPlanID

func (p NFS) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

func (NFS) GetSwitch

func (p NFS) GetSwitch() *Switch

GetSwitch スイッチ 取得

func (NFS) GetTags

func (p NFS) GetTags() []string

GetTags タグ取得

func (NFS) HasIcon

func (p NFS) HasIcon() bool

HasIcon アイコンがセットされているか

func (NFS) HasTag

func (p NFS) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*NFS) IPAddress added in v1.11.0

func (n *NFS) IPAddress() string

IPAddress IPアドレスを取得

func (NFS) IsAvailable

func (p NFS) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (NFS) IsDown

func (p NFS) IsDown() bool

IsDown インスタンスがダウンしているか確認

func (NFS) IsFailed

func (p NFS) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (NFS) IsMigrating

func (p NFS) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (NFS) IsUp

func (p NFS) IsUp() bool

IsUp インスタンスが起動しているか判定

func (NFS) IsUploading

func (p NFS) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (NFS) MaintenanceScheduled

func (p NFS) MaintenanceScheduled() bool

MaintenanceScheduled メンテナンス予定の有無

func (*NFS) NetworkMaskLen added in v1.11.0

func (n *NFS) NetworkMaskLen() int

NetworkMaskLen ネットワークマスク長を取得

func (NFS) RemoveTag

func (p NFS) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (NFS) SetDescription

func (p NFS) SetDescription(desc string)

SetDescription 説明 設定

func (NFS) SetIcon

func (p NFS) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (NFS) SetIconByID

func (p NFS) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (NFS) SetName

func (p NFS) SetName(name string)

SetName 名称 設定

func (NFS) SetSwitch

func (p NFS) SetSwitch(sw *Switch)

SetSwitch スイッチ 設定

func (NFS) SetTags

func (p NFS) SetTags(tags []string)

SetTags タグを設定

type NFSPlan

type NFSPlan int

NFSPlan プラン(HDD/SSD)

func (NFSPlan) String added in v1.17.2

func (p NFSPlan) String() string

String NFSプランの文字列表現

type NFSPlanValue added in v1.17.0

type NFSPlanValue struct {
	Size         int    `json:"size"`
	Availability string `json:"availability"`
	PlanID       ID     `json:"planId"`
}

NFSPlanValue NFSプラン

type NFSPlans added in v1.17.0

type NFSPlans struct {
	HDD []NFSPlanValue
	SSD []NFSPlanValue
}

NFSPlans NFSプラン

func (NFSPlans) FindByPlanID added in v1.17.1

func (p NFSPlans) FindByPlanID(planID ID) (NFSPlan, *NFSPlanValue)

FindByPlanID プランIDから該当プランを取得

func (NFSPlans) FindPlanID added in v1.17.0

func (p NFSPlans) FindPlanID(plan NFSPlan, size NFSSize) ID

FindPlanID プランとサイズからプランIDを取得

type NFSRemark

type NFSRemark struct {
	*ApplianceRemarkBase
	Plan *struct {
		ID json.Number `json:",omitempty"`
	} `json:",omitempty"` // プラン

}

NFSRemark リマーク

func (NFSRemark) SetRemarkPlanID added in v1.17.3

func (n NFSRemark) SetRemarkPlanID(planID ID)

SetRemarkPlanID プランID設定

type NFSSettings

type NFSSettings struct {
}

NFSSettings NFS設定リスト

type NFSSize added in v1.17.0

type NFSSize int

NFSSize NFSサイズ

type NewsFeed

type NewsFeed struct {
	StrDate       string `json:"date,omitempty"`
	Description   string `json:"desc,omitempty"`
	StrEventStart string `json:"event_start,omitempty"`
	StrEventEnd   string `json:"event_end,omitempty"`
	Title         string `json:"title,omitempty"`
	URL           string `json:"url,omitempty"`
}

NewsFeed メンテナンス/障害情報お知らせ

func (*NewsFeed) Date

func (f *NewsFeed) Date() time.Time

Date 対象日時

func (*NewsFeed) EventEnd

func (f *NewsFeed) EventEnd() time.Time

EventEnd 掲載終了日時

func (*NewsFeed) EventStart

func (f *NewsFeed) EventStart() time.Time

EventStart 掲載開始日時

type Note

type Note struct {
	*Resource // ID

	Content string // スクリプト本体
	// contains filtered or unexported fields
}

Note スタートアップスクリプト

func (*Note) AppendTag

func (p *Note) AppendTag(target string)

AppendTag タグを追加

func (*Note) ClearIcon

func (p *Note) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*Note) ClearTags

func (p *Note) ClearTags()

ClearTags 全タグを削除

func (*Note) GetClass

func (p *Note) GetClass() ENoteClass

GetClass クラス 取得

func (*Note) GetClassStr

func (p *Note) GetClassStr() string

GetClassStr クラス 取得(文字列)

func (*Note) GetCreatedAt

func (p *Note) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Note) GetDescription

func (p *Note) GetDescription() string

GetDescription 説明 取得

func (*Note) GetIcon

func (p *Note) GetIcon() *Icon

GetIcon アイコンを取得

func (*Note) GetIconID

func (p *Note) GetIconID() ID

GetIconID アイコンIDを取得

func (*Note) GetIconStrID

func (p *Note) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*Note) GetModifiedAt

func (p *Note) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*Note) GetName

func (p *Note) GetName() string

GetName 名称 取得

func (*Note) GetScope

func (p *Note) GetScope() string

GetScope スコープ 取得

func (*Note) GetTags

func (p *Note) GetTags() []string

GetTags タグ取得

func (*Note) HasIcon

func (p *Note) HasIcon() bool

HasIcon アイコンがセットされているか

func (*Note) HasTag

func (p *Note) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Note) IsAvailable

func (p *Note) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*Note) IsFailed

func (p *Note) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*Note) IsMigrating

func (p *Note) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*Note) IsSharedScope

func (p *Note) IsSharedScope() bool

IsSharedScope 共有スコープか判定

func (*Note) IsUploading

func (p *Note) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*Note) IsUserScope

func (p *Note) IsUserScope() bool

IsUserScope ユーザースコープか判定

func (*Note) RemoveTag

func (p *Note) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*Note) SetClass

func (p *Note) SetClass(c ENoteClass)

SetClass クラス 設定

func (*Note) SetClassByStr

func (p *Note) SetClassByStr(c string)

SetClassByStr クラス 設定(文字列)

func (*Note) SetDescription

func (p *Note) SetDescription(desc string)

SetDescription 説明 設定

func (*Note) SetIcon

func (p *Note) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*Note) SetIconByID

func (p *Note) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*Note) SetName

func (p *Note) SetName(name string)

SetName 名称 設定

func (*Note) SetScope

func (p *Note) SetScope(scope string)

SetScope スコープ 設定

func (*Note) SetSharedScope

func (p *Note) SetSharedScope()

SetSharedScope 共有スコープに設定

func (*Note) SetTags

func (p *Note) SetTags(tags []string)

SetTags タグを設定

func (*Note) SetUserScope

func (p *Note) SetUserScope()

SetUserScope ユーザースコープに設定

type PacketFilter

type PacketFilter struct {
	*Resource // ID

	Expression []*PacketFilterExpression // ルール
	Notice     string                    `json:",omitempty"` // Notice
	// contains filtered or unexported fields
}

PacketFilter パケットフィルタ

func CreateNewPacketFilter

func CreateNewPacketFilter() *PacketFilter

CreateNewPacketFilter パケットフィルタ作成

func (*PacketFilter) AddFragmentRule

func (p *PacketFilter) AddFragmentRule(sourceNetwork string, description string, isAllow bool) (*PacketFilterExpression, error)

AddFragmentRule フラグメントルール追加

func (*PacketFilter) AddFragmentRuleAt

func (p *PacketFilter) AddFragmentRuleAt(sourceNetwork string, description string, isAllow bool, index int) (*PacketFilterExpression, error)

AddFragmentRuleAt フラグメントルール追加

func (*PacketFilter) AddICMPRule

func (p *PacketFilter) AddICMPRule(sourceNetwork string, description string, isAllow bool) (*PacketFilterExpression, error)

AddICMPRule ICMPルール追加

func (*PacketFilter) AddICMPRuleAt

func (p *PacketFilter) AddICMPRuleAt(sourceNetwork string, description string, isAllow bool, index int) (*PacketFilterExpression, error)

AddICMPRuleAt ICMPルール追加

func (*PacketFilter) AddIPRule

func (p *PacketFilter) AddIPRule(sourceNetwork string, description string, isAllow bool) (*PacketFilterExpression, error)

AddIPRule IPルール追加

func (*PacketFilter) AddIPRuleAt

func (p *PacketFilter) AddIPRuleAt(sourceNetwork string, description string, isAllow bool, index int) (*PacketFilterExpression, error)

AddIPRuleAt IPルール追加

func (*PacketFilter) AddTCPRule

func (p *PacketFilter) AddTCPRule(sourceNetwork string, sourcePort string, destPort string, description string, isAllow bool) (*PacketFilterExpression, error)

AddTCPRule TCPルール追加

func (*PacketFilter) AddTCPRuleAt

func (p *PacketFilter) AddTCPRuleAt(sourceNetwork string, sourcePort string, destPort string, description string, isAllow bool, index int) (*PacketFilterExpression, error)

AddTCPRuleAt TCPルール追加

func (*PacketFilter) AddUDPRule

func (p *PacketFilter) AddUDPRule(sourceNetwork string, sourcePort string, destPort string, description string, isAllow bool) (*PacketFilterExpression, error)

AddUDPRule UDPルール追加

func (*PacketFilter) AddUDPRuleAt

func (p *PacketFilter) AddUDPRuleAt(sourceNetwork string, sourcePort string, destPort string, description string, isAllow bool, index int) (*PacketFilterExpression, error)

AddUDPRuleAt UDPルール追加

func (*PacketFilter) ClearRules

func (p *PacketFilter) ClearRules()

ClearRules ルールのクリア

func (*PacketFilter) FindByHash

func (p *PacketFilter) FindByHash(hash string) *PacketFilterExpression

FindByHash 指定のハッシュ値を持つPacketFilterExpressionを検索する

func (*PacketFilter) GetDescription

func (p *PacketFilter) GetDescription() string

GetDescription 説明 取得

func (*PacketFilter) GetName

func (p *PacketFilter) GetName() string

GetName 名称 取得

func (*PacketFilter) RemoveRuleAt

func (p *PacketFilter) RemoveRuleAt(index int)

RemoveRuleAt 指定インデックス(0開始)位置のルールを除去

func (*PacketFilter) RemoveRuleByHash

func (p *PacketFilter) RemoveRuleByHash(hash string)

RemoveRuleByHash 指定のハッシュ値を持つルールを削除する

func (*PacketFilter) SetDescription

func (p *PacketFilter) SetDescription(desc string)

SetDescription 説明 設定

func (*PacketFilter) SetName

func (p *PacketFilter) SetName(name string)

SetName 名称 設定

type PacketFilterExpression

type PacketFilterExpression struct {
	Protocol string `json:",omitempty"` // Protocol プロトコル
	Action   string `json:",omitempty"` // Action 許可/拒否

	SourceNetwork   string // SourceNetwork 送信元ネットワーク
	SourcePort      string // SourcePort 送信元ポート
	DestinationPort string // DestinationPort 宛先ポート
	// contains filtered or unexported fields
}

PacketFilterExpression フィルタリングルール

func (*PacketFilterExpression) GetDescription

func (p *PacketFilterExpression) GetDescription() string

GetDescription 説明 取得

func (*PacketFilterExpression) Hash

func (e *PacketFilterExpression) Hash() string

Hash 値からハッシュ値を生成

func (*PacketFilterExpression) SetDescription

func (p *PacketFilterExpression) SetDescription(desc string)

SetDescription 説明 設定

type PlanGenerations

type PlanGenerations int

PlanGenerations サーバプラン世代

type PrivateHost

type PrivateHost struct {
	*Resource // ID
	// contains filtered or unexported fields
}

PrivateHost 専有ホスト

func (*PrivateHost) AppendTag

func (p *PrivateHost) AppendTag(target string)

AppendTag タグを追加

func (*PrivateHost) ClearIcon

func (p *PrivateHost) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*PrivateHost) ClearTags

func (p *PrivateHost) ClearTags()

ClearTags 全タグを削除

func (*PrivateHost) GetAssignedCPU

func (p *PrivateHost) GetAssignedCPU() int

GetAssignedCPU CPUコア数 取得

func (*PrivateHost) GetAssignedMemoryGB

func (p *PrivateHost) GetAssignedMemoryGB() int

GetAssignedMemoryGB サイズ(GB単位) 取得

func (*PrivateHost) GetAssignedMemoryMB

func (p *PrivateHost) GetAssignedMemoryMB() int

GetAssignedMemoryMB サイズ(MB単位) 取得

func (*PrivateHost) GetCPU

func (p *PrivateHost) GetCPU() int

GetCPU CPUコア数 取得

func (*PrivateHost) GetCreatedAt

func (p *PrivateHost) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*PrivateHost) GetDescription

func (p *PrivateHost) GetDescription() string

GetDescription 説明 取得

func (*PrivateHost) GetHost

func (p *PrivateHost) GetHost() *Host

GetHost ホスト(物理) 取得

func (*PrivateHost) GetHostName

func (p *PrivateHost) GetHostName() string

GetHostName ホスト(物理)名称取得

func (*PrivateHost) GetIcon

func (p *PrivateHost) GetIcon() *Icon

GetIcon アイコンを取得

func (*PrivateHost) GetIconID

func (p *PrivateHost) GetIconID() ID

GetIconID アイコンIDを取得

func (*PrivateHost) GetIconStrID

func (p *PrivateHost) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*PrivateHost) GetMemoryGB

func (p *PrivateHost) GetMemoryGB() int

GetMemoryGB メモリ(GB) 取得

func (*PrivateHost) GetMemoryMB

func (p *PrivateHost) GetMemoryMB() int

GetMemoryMB メモリ(MB) 取得

func (*PrivateHost) GetName

func (p *PrivateHost) GetName() string

GetName 名称 取得

func (*PrivateHost) GetPrivateHostPlan

func (p *PrivateHost) GetPrivateHostPlan() *ProductPrivateHost

GetPrivateHostPlan 専有ホストプラン取得

func (*PrivateHost) GetTags

func (p *PrivateHost) GetTags() []string

GetTags タグ取得

func (*PrivateHost) HasIcon

func (p *PrivateHost) HasIcon() bool

HasIcon アイコンがセットされているか

func (*PrivateHost) HasTag

func (p *PrivateHost) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*PrivateHost) RemoveTag

func (p *PrivateHost) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*PrivateHost) SetDescription

func (p *PrivateHost) SetDescription(desc string)

SetDescription 説明 設定

func (*PrivateHost) SetIcon

func (p *PrivateHost) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*PrivateHost) SetIconByID

func (p *PrivateHost) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*PrivateHost) SetName

func (p *PrivateHost) SetName(name string)

SetName 名称 設定

func (*PrivateHost) SetPrivateHostPlan

func (p *PrivateHost) SetPrivateHostPlan(plan *ProductPrivateHost)

SetPrivateHostPlan 専有ホストプラン設定

func (*PrivateHost) SetPrivateHostPlanByID

func (p *PrivateHost) SetPrivateHostPlanByID(planID ID)

SetPrivateHostPlanByID 専有ホストプラン設定

func (*PrivateHost) SetTags

func (p *PrivateHost) SetTags(tags []string)

SetTags タグを設定

type ProductDisk

type ProductDisk struct {
	*Resource // ID

	Size []struct {
		DisplaySize   int    `json:",omitempty"` // 表示サイズ
		DisplaySuffix string `json:",omitempty"` // 表示サフィックス
		// contains filtered or unexported fields
	} `json:",omitempty"`
	// contains filtered or unexported fields
}

ProductDisk ディスクプラン

func (*ProductDisk) GetDescription

func (p *ProductDisk) GetDescription() string

GetDescription 説明 取得

func (*ProductDisk) GetName

func (p *ProductDisk) GetName() string

GetName 名称 取得

func (*ProductDisk) GetStorageClass

func (p *ProductDisk) GetStorageClass() string

GetStorageClass ストレージクラス 取得

func (*ProductDisk) IsAvailable

func (p *ProductDisk) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*ProductDisk) IsFailed

func (p *ProductDisk) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*ProductDisk) IsMigrating

func (p *ProductDisk) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*ProductDisk) IsUploading

func (p *ProductDisk) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*ProductDisk) SetDescription

func (p *ProductDisk) SetDescription(desc string)

SetDescription 説明 設定

func (*ProductDisk) SetName

func (p *ProductDisk) SetName(name string)

SetName 名称 設定

type ProductInternet

type ProductInternet struct {
	*Resource // ID

	BandWidthMbps int `json:",omitempty"` // 帯域幅
	// contains filtered or unexported fields
}

ProductInternet ルータープラン

func (*ProductInternet) GetName

func (p *ProductInternet) GetName() string

GetName 名称 取得

func (*ProductInternet) GetServiceClass

func (p *ProductInternet) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*ProductInternet) IsAvailable

func (p *ProductInternet) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*ProductInternet) IsFailed

func (p *ProductInternet) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*ProductInternet) IsMigrating

func (p *ProductInternet) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*ProductInternet) IsUploading

func (p *ProductInternet) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*ProductInternet) SetName

func (p *ProductInternet) SetName(name string)

SetName 名称 設定

type ProductLicense

type ProductLicense struct {
	*Resource // ID

	TermsOfUse string `json:",omitempty"` // 利用規約
	// contains filtered or unexported fields
}

ProductLicense ライセンスプラン

func (*ProductLicense) GetCreatedAt

func (p *ProductLicense) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*ProductLicense) GetModifiedAt

func (p *ProductLicense) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*ProductLicense) GetName

func (p *ProductLicense) GetName() string

GetName 名称 取得

func (*ProductLicense) GetServiceClass

func (p *ProductLicense) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*ProductLicense) SetName

func (p *ProductLicense) SetName(name string)

SetName 名称 設定

type ProductPrivateHost

type ProductPrivateHost struct {
	*Resource // ID
	// contains filtered or unexported fields
}

ProductPrivateHost 専有ホストプラン

func (*ProductPrivateHost) GetCPU

func (p *ProductPrivateHost) GetCPU() int

GetCPU CPUコア数 取得

func (*ProductPrivateHost) GetClass

func (p *ProductPrivateHost) GetClass() string

GetClass クラス 取得

func (*ProductPrivateHost) GetDescription

func (p *ProductPrivateHost) GetDescription() string

GetDescription 説明 取得

func (*ProductPrivateHost) GetMemoryGB

func (p *ProductPrivateHost) GetMemoryGB() int

GetMemoryGB サイズ(GB単位) 取得

func (*ProductPrivateHost) GetMemoryMB

func (p *ProductPrivateHost) GetMemoryMB() int

GetMemoryMB サイズ(MB単位) 取得

func (*ProductPrivateHost) GetName

func (p *ProductPrivateHost) GetName() string

GetName 名称 取得

func (*ProductPrivateHost) GetServiceClass

func (p *ProductPrivateHost) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*ProductPrivateHost) IsAvailable

func (p *ProductPrivateHost) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*ProductPrivateHost) IsFailed

func (p *ProductPrivateHost) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*ProductPrivateHost) IsMigrating

func (p *ProductPrivateHost) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*ProductPrivateHost) IsUploading

func (p *ProductPrivateHost) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*ProductPrivateHost) SetDescription

func (p *ProductPrivateHost) SetDescription(desc string)

SetDescription 説明 設定

func (*ProductPrivateHost) SetMemoryGB

func (p *ProductPrivateHost) SetMemoryGB(memoryGB int)

SetMemoryGB サイズ(GB単位) 設定

func (*ProductPrivateHost) SetName

func (p *ProductPrivateHost) SetName(name string)

SetName 名称 設定

type ProductServer

type ProductServer struct {
	*Resource // ID

	Generation PlanGenerations `json:",omitempty"` // 世代
	Commitment ECommitment     `json:",omitempty"`
	// contains filtered or unexported fields
}

ProductServer サーバープラン

func (*ProductServer) GetCPU

func (p *ProductServer) GetCPU() int

GetCPU CPUコア数 取得

func (*ProductServer) GetDescription

func (p *ProductServer) GetDescription() string

GetDescription 説明 取得

func (*ProductServer) GetMemoryGB

func (p *ProductServer) GetMemoryGB() int

GetMemoryGB サイズ(GB単位) 取得

func (*ProductServer) GetMemoryMB

func (p *ProductServer) GetMemoryMB() int

GetMemoryMB サイズ(MB単位) 取得

func (*ProductServer) GetName

func (p *ProductServer) GetName() string

GetName 名称 取得

func (*ProductServer) GetServiceClass

func (p *ProductServer) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*ProductServer) IsAvailable

func (p *ProductServer) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*ProductServer) IsFailed

func (p *ProductServer) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*ProductServer) IsMigrating

func (p *ProductServer) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*ProductServer) IsUploading

func (p *ProductServer) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*ProductServer) SetDescription

func (p *ProductServer) SetDescription(desc string)

SetDescription 説明 設定

func (*ProductServer) SetMemoryGB

func (p *ProductServer) SetMemoryGB(memoryGB int)

SetMemoryGB サイズ(GB単位) 設定

func (*ProductServer) SetName

func (p *ProductServer) SetName(name string)

SetName 名称 設定

type ProxyLB added in v1.15.0

type ProxyLB struct {
	*Resource // ID

	Status   *ProxyLBStatus  `json:",omitempty"` // ステータス
	Provider ProxyLBProvider `json:",omitempty"` // プロバイダ
	Settings ProxyLBSettings `json:",omitempty"` // ProxyLB設定
	// contains filtered or unexported fields
}

ProxyLB ProxyLB(CommonServiceItem)

func CreateNewProxyLB added in v1.15.0

func CreateNewProxyLB(name string) *ProxyLB

CreateNewProxyLB ProxyLB作成

func (*ProxyLB) AddBindPort added in v1.15.0

func (p *ProxyLB) AddBindPort(mode string, port int, redirectToHTTPS, supportHTTP2 bool, addResponseHeader []*ProxyLBResponseHeader)

AddBindPort バインドポート追加

func (*ProxyLB) AddServer added in v1.15.0

func (p *ProxyLB) AddServer(ip string, port int, enabled bool, serverGroup string)

AddServer ProxyLB配下のサーバーを追加

func (*ProxyLB) AppendTag added in v1.15.0

func (p *ProxyLB) AppendTag(target string)

AppendTag タグを追加

func (*ProxyLB) ClearBindPorts added in v1.15.3

func (p *ProxyLB) ClearBindPorts()

ClearBindPorts バインドポート クリア

func (*ProxyLB) ClearIcon added in v1.15.0

func (p *ProxyLB) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*ProxyLB) ClearProxyLBServer added in v1.15.0

func (p *ProxyLB) ClearProxyLBServer()

ClearProxyLBServer ProxyLB配下のサーバーをクリア

func (*ProxyLB) ClearSorryServer added in v1.15.3

func (p *ProxyLB) ClearSorryServer()

ClearSorryServer ソーリーサーバ クリア

func (*ProxyLB) ClearTags added in v1.15.0

func (p *ProxyLB) ClearTags()

ClearTags 全タグを削除

func (*ProxyLB) DeleteBindPort added in v1.15.0

func (p *ProxyLB) DeleteBindPort(mode string, port int)

DeleteBindPort バインドポート削除

func (*ProxyLB) DeleteServer added in v1.15.0

func (p *ProxyLB) DeleteServer(ip string, port int)

DeleteServer ProxyLB配下のサーバーを削除

func (*ProxyLB) GetCreatedAt added in v1.15.0

func (p *ProxyLB) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*ProxyLB) GetDescription added in v1.15.0

func (p *ProxyLB) GetDescription() string

GetDescription 説明 取得

func (*ProxyLB) GetIcon added in v1.15.0

func (p *ProxyLB) GetIcon() *Icon

GetIcon アイコンを取得

func (*ProxyLB) GetIconID added in v1.15.0

func (p *ProxyLB) GetIconID() ID

GetIconID アイコンIDを取得

func (*ProxyLB) GetIconStrID added in v1.15.0

func (p *ProxyLB) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*ProxyLB) GetModifiedAt added in v1.15.0

func (p *ProxyLB) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*ProxyLB) GetName added in v1.15.0

func (p *ProxyLB) GetName() string

GetName 名称 取得

func (*ProxyLB) GetPlan added in v1.15.4

func (p *ProxyLB) GetPlan() ProxyLBPlan

GetPlan プラン取得(デフォルト: 1000cps)

func (*ProxyLB) GetServiceClass added in v1.15.0

func (p *ProxyLB) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*ProxyLB) GetTags added in v1.15.0

func (p *ProxyLB) GetTags() []string

GetTags タグ取得

func (*ProxyLB) HasIcon added in v1.15.0

func (p *ProxyLB) HasIcon() bool

HasIcon アイコンがセットされているか

func (*ProxyLB) HasProxyLBServer added in v1.15.0

func (p *ProxyLB) HasProxyLBServer() bool

HasProxyLBServer ProxyLB配下にサーバーを保持しているか判定

func (*ProxyLB) HasTag added in v1.15.0

func (p *ProxyLB) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*ProxyLB) IsAvailable added in v1.15.6

func (p *ProxyLB) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*ProxyLB) IsFailed added in v1.15.6

func (p *ProxyLB) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*ProxyLB) IsMigrating added in v1.15.6

func (p *ProxyLB) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*ProxyLB) IsUploading added in v1.15.6

func (p *ProxyLB) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*ProxyLB) RemoveTag added in v1.15.0

func (p *ProxyLB) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*ProxyLB) SetDescription added in v1.15.0

func (p *ProxyLB) SetDescription(desc string)

SetDescription 説明 設定

func (*ProxyLB) SetHTTPHealthCheck added in v1.15.0

func (p *ProxyLB) SetHTTPHealthCheck(hostHeader, path string, delayLoop int)

SetHTTPHealthCheck HTTPヘルスチェック 設定

func (*ProxyLB) SetIcon added in v1.15.0

func (p *ProxyLB) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*ProxyLB) SetIconByID added in v1.15.0

func (p *ProxyLB) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*ProxyLB) SetName added in v1.15.0

func (p *ProxyLB) SetName(name string)

SetName 名称 設定

func (*ProxyLB) SetPlan added in v1.15.4

func (p *ProxyLB) SetPlan(plan ProxyLBPlan)

SetPlan プラン指定

func (*ProxyLB) SetSorryServer added in v1.15.0

func (p *ProxyLB) SetSorryServer(ipaddress string, port int)

SetSorryServer ソーリーサーバ 設定

func (*ProxyLB) SetTCPHealthCheck added in v1.15.0

func (p *ProxyLB) SetTCPHealthCheck(delayLoop int)

SetTCPHealthCheck TCPヘルスチェック 設定

func (*ProxyLB) SetTags added in v1.15.0

func (p *ProxyLB) SetTags(tags []string)

SetTags タグを設定

type ProxyLBACMESetting added in v1.24.0

type ProxyLBACMESetting struct {
	Enabled    bool
	CommonName string `json:",omitempty"`
}

ProxyLBACMESetting Let's Encryptでの証明書取得設定

type ProxyLBAdditionalCerts added in v1.18.0

type ProxyLBAdditionalCerts []*ProxyLBCertificate

ProxyLBAdditionalCerts additional certificates

func (*ProxyLBAdditionalCerts) UnmarshalJSON added in v1.18.0

func (p *ProxyLBAdditionalCerts) UnmarshalJSON(data []byte) error

UnmarshalJSON UnmarshalJSON(AdditionalCertsが空の場合に空文字を返す問題への対応)

type ProxyLBBindPorts added in v1.15.0

type ProxyLBBindPorts struct {
	ProxyMode         string                   `json:",omitempty"`      // モード(プロトコル)
	Port              int                      `json:",omitempty"`      // ポート
	RedirectToHTTPS   bool                     `json:"RedirectToHttps"` // HTTPSへのリダイレクト(モードがhttpの場合のみ)
	SupportHTTP2      bool                     `json:"SupportHttp2"`    // HTTP/2のサポート(モードがhttpsの場合のみ)
	AddResponseHeader []*ProxyLBResponseHeader `json:",omitempty"`      // レスポンスヘッダ
}

ProxyLBBindPorts プロキシ方式

type ProxyLBCertificate added in v1.18.0

type ProxyLBCertificate struct {
	ServerCertificate       string    // サーバ証明書
	IntermediateCertificate string    // 中間証明書
	PrivateKey              string    // 秘密鍵
	CertificateEndDate      time.Time `json:",omitempty"` // 有効期限
	CertificateCommonName   string    `json:",omitempty"` // CommonName
}

ProxyLBCertificate ProxyLBのSSL証明書詳細

func (*ProxyLBCertificate) ParseIntermediateCertificate added in v1.18.0

func (p *ProxyLBCertificate) ParseIntermediateCertificate() (*x509.Certificate, error)

ParseIntermediateCertificate 中間証明書のパース

func (*ProxyLBCertificate) ParseServerCertificate added in v1.18.0

func (p *ProxyLBCertificate) ParseServerCertificate() (*x509.Certificate, error)

ParseServerCertificate サーバ証明書のパース

func (*ProxyLBCertificate) UnmarshalJSON added in v1.18.0

func (p *ProxyLBCertificate) UnmarshalJSON(data []byte) error

UnmarshalJSON UnmarshalJSON(CertificateEndDateのtime.TimeへのUnmarshal対応)

type ProxyLBCertificates added in v1.15.0

type ProxyLBCertificates struct {
	PrimaryCert     *ProxyLBCertificate
	AdditionalCerts ProxyLBAdditionalCerts
}

ProxyLBCertificates ProxyLBのSSL証明書

func (*ProxyLBCertificates) AddAdditionalCert added in v1.18.0

func (p *ProxyLBCertificates) AddAdditionalCert(serverCert, intermediateCert, privateKey string)

AddAdditionalCert AdditionalCertを追加

func (*ProxyLBCertificates) ParseIntermediateCertificate added in v1.16.0

func (p *ProxyLBCertificates) ParseIntermediateCertificate() (*x509.Certificate, error)

ParseIntermediateCertificate 中間証明書のパース

func (*ProxyLBCertificates) ParseServerCertificate added in v1.16.0

func (p *ProxyLBCertificates) ParseServerCertificate() (*x509.Certificate, error)

ParseServerCertificate サーバ証明書のパース

func (*ProxyLBCertificates) RemoveAdditionalCert added in v1.18.0

func (p *ProxyLBCertificates) RemoveAdditionalCert(serverCert, intermediateCert, privateKey string)

RemoveAdditionalCert 指定の内容を持つAdditionalCertを削除

func (*ProxyLBCertificates) RemoveAdditionalCertAt added in v1.18.0

func (p *ProxyLBCertificates) RemoveAdditionalCertAt(index int)

RemoveAdditionalCertAt 指定のインデックスを持つAdditionalCertを削除

func (*ProxyLBCertificates) RemoveAdditionalCerts added in v1.18.0

func (p *ProxyLBCertificates) RemoveAdditionalCerts()

RemoveAdditionalCerts AdditionalCertsを全て削除

func (*ProxyLBCertificates) SetPrimaryCert added in v1.18.0

func (p *ProxyLBCertificates) SetPrimaryCert(cert *ProxyLBCertificate)

SetPrimaryCert PrimaryCertを設定

func (*ProxyLBCertificates) SetPrimaryCertValue added in v1.18.0

func (p *ProxyLBCertificates) SetPrimaryCertValue(serverCert, intermediateCert, privateKey string)

SetPrimaryCertValue PrimaryCertを設定

type ProxyLBHealth added in v1.15.0

type ProxyLBHealth struct {
	ActiveConn int                    // アクティブなコネクション数
	CPS        int                    // 秒あたりコネクション数
	Servers    []*ProxyLBHealthServer // 実サーバのステータス
	CurrentVIP string                 // 現在のVIP
}

ProxyLBHealth ProxyLBのヘルスチェック戻り値

type ProxyLBHealthCheck added in v1.15.0

type ProxyLBHealthCheck struct {
	Protocol  string `json:",omitempty"` // プロトコル
	Host      string `json:",omitempty"` // 対象ホスト
	Path      string `json:",omitempty"` // HTTPの場合のリクエストパス
	DelayLoop int    `json:",omitempty"` // 監視間隔

}

ProxyLBHealthCheck ヘルスチェック

type ProxyLBHealthServer added in v1.15.0

type ProxyLBHealthServer struct {
	ActiveConn int    // アクティブなコネクション数
	Status     string // ステータス(UP or DOWN)
	IPAddress  string // IPアドレス
	Port       string // ポート
	CPS        int    // 秒あたりコネクション数
}

ProxyLBHealthServer ProxyLBの実サーバのステータス

type ProxyLBPlan added in v1.15.4

type ProxyLBPlan int

ProxyLBPlan ProxyLBプラン

type ProxyLBProvider added in v1.15.0

type ProxyLBProvider struct {
	Class string `json:",omitempty"` // クラス
}

ProxyLBProvider プロバイダ

type ProxyLBResponseHeader added in v1.26.0

type ProxyLBResponseHeader struct {
	Header string // ヘッダ名称(英字, 数字, ハイフン)
	Value  string // 値(英字, 数字, 半角スペース, 一部記号(!#$%&'()*+,-./:;<=>?@[]^_`{|}~))
}

ProxyLBResponseHeader ポートごとの追加レスポンスヘッダ

type ProxyLBRule added in v1.34.0

type ProxyLBRule struct {
	Host        string `json:",omitempty"` // ホストヘッダのパターン(ワイルドカードとして?と*が利用可能)
	Path        string `json:",omitempty"` // パス
	ServerGroup string
}

ProxyLBRule ProxyLBの振り分けルール

type ProxyLBServer added in v1.15.0

type ProxyLBServer struct {
	IPAddress   string `json:",omitempty"` // IPアドレス
	Port        int    `json:",omitempty"` // ポート
	ServerGroup string // サーバグループ
	Enabled     bool   // 有効/無効
}

ProxyLBServer ProxyLB配下のサーバー

func NewProxyLBServer added in v1.15.0

func NewProxyLBServer(ipaddress string, port int) *ProxyLBServer

NewProxyLBServer ProxyLB配下のサーバ作成

type ProxyLBSessionSetting added in v1.25.0

type ProxyLBSessionSetting struct {
	Enabled bool
	Method  string `json:",omitempty"`
}

ProxyLBSessionSetting セッション維持機能設定

type ProxyLBSetting added in v1.15.0

type ProxyLBSetting struct {
	HealthCheck   ProxyLBHealthCheck  // ヘルスチェック
	SorryServer   ProxyLBSorryServer  // ソーリーサーバー
	BindPorts     []*ProxyLBBindPorts // プロキシ方式(プロトコル&ポート)
	Servers       []ProxyLBServer     // サーバー
	Rules         []ProxyLBRule       // 振り分けルール
	LetsEncrypt   *ProxyLBACMESetting `json:",omitempty"` // Let's encryptでの証明書取得設定
	StickySession ProxyLBSessionSetting
	Timeout       *ProxyLBTimeout `json:",omitempty"` // タイムアウト
}

ProxyLBSetting ProxyLBセッティング

func (*ProxyLBSetting) AddBindPort added in v1.15.0

func (s *ProxyLBSetting) AddBindPort(mode string, port int, redirectToHTTPS, supportHTTP2 bool, addResponseHeader []*ProxyLBResponseHeader)

AddBindPort バインドポート追加

func (*ProxyLBSetting) AddServer added in v1.15.0

func (s *ProxyLBSetting) AddServer(ip string, port int, enabled bool, serverGroup string)

AddServer ProxyLB配下のサーバーを追加

func (*ProxyLBSetting) DeleteBindPort added in v1.15.0

func (s *ProxyLBSetting) DeleteBindPort(mode string, port int)

DeleteBindPort バインドポート削除

func (*ProxyLBSetting) DeleteServer added in v1.15.0

func (s *ProxyLBSetting) DeleteServer(ip string, port int)

DeleteServer ProxyLB配下のサーバーを削除

type ProxyLBSettings added in v1.15.0

type ProxyLBSettings struct {
	ProxyLB ProxyLBSetting `json:",omitempty"` // ProxyLB ProxyLBエントリー
}

ProxyLBSettings ProxyLB設定

type ProxyLBSorryServer added in v1.15.0

type ProxyLBSorryServer struct {
	IPAddress string // IPアドレス
	Port      *int   // ポート
}

ProxyLBSorryServer ソーリーサーバ

type ProxyLBStatus added in v1.15.0

type ProxyLBStatus struct {
	FQDN             string   `json:",omitempty"` // 割り当てられたFQDN(site-*******.proxylb?.sakura.ne.jp) UseVIPFailoverがtrueの場合のみ有効
	VirtualIPAddress string   `json:",omitempty"` // 割り当てられたVIP UseVIPFailoverがfalseの場合のみ有効
	ProxyNetworks    []string `json:",omitempty"` // プロキシ元ネットワークアドレス(CIDR)
	UseVIPFailover   bool     // VIPフェイルオーバ
}

ProxyLBStatus ProxyLBステータス

type ProxyLBTimeout added in v1.27.0

type ProxyLBTimeout struct {
	InactiveSec int `json:",omitempty"` // 10から600まで1秒刻みで設定可
}

ProxyLBTimeout 実サーバの通信タイムアウト

type PublicPrice

type PublicPrice struct {
	DisplayName      string `json:",omitempty"` // 表示名
	IsPublic         bool   `json:",omitempty"` // 公開フラグ
	ServiceClassID   int    `json:",omitempty"` // サービスクラスID
	ServiceClassName string `json:",omitempty"` // サービスクラス名
	ServiceClassPath string `json:",omitempty"` // サービスクラスパス

	Price struct {
		Base    int    `json:",omitempty"` // 基本料金
		Daily   int    `json:",omitempty"` // 日単位料金
		Hourly  int    `json:",omitempty"` // 時間単位料金
		Monthly int    `json:",omitempty"` // 分単位料金
		Zone    string `json:",omitempty"` // ゾーン
	}
}

PublicPrice 料金

type Region

type Region struct {
	*Resource // ID

	NameServers []string `json:",omitempty"` // NameServers ネームサーバー
	// contains filtered or unexported fields
}

Region リージョン

func (*Region) GetDescription

func (p *Region) GetDescription() string

GetDescription 説明 取得

func (*Region) GetName

func (p *Region) GetName() string

GetName 名称 取得

func (*Region) GetNameServers

func (r *Region) GetNameServers() []string

GetNameServers リージョン内のネームサーバー取得

func (*Region) SetDescription

func (p *Region) SetDescription(desc string)

SetDescription 説明 設定

func (*Region) SetName

func (p *Region) SetName(name string)

SetName 名称 設定

type Request

type Request struct {
	SakuraCloudResources                        // さくらのクラウドリソース
	From                 int                    // ページング FROM
	Count                int                    // 取得件数
	Sort                 []string               `json:",omitempty"` // ソート
	Filter               map[string]interface{} `json:",omitempty"` // フィルタ
	Exclude              []string               `json:",omitempty"` // 除外する項目
	Include              []string               `json:",omitempty"` // 取得する項目
	DistantFrom          []ID                   `json:",omitempty"` // ストレージ隔離対象ディスク
}

Request APIリクエスト型

FromとCountに0を指定するとページングが無効となる

func (*Request) AddExclude

func (r *Request) AddExclude(keyName string) *Request

AddExclude 除外対象の追加

func (*Request) AddFilter

func (r *Request) AddFilter(key string, value interface{}) *Request

AddFilter フィルタの追加

func (*Request) AddInclude

func (r *Request) AddInclude(keyName string) *Request

AddInclude 選択対象の追加

func (*Request) AddSort

func (r *Request) AddSort(keyName string) *Request

AddSort ソートの追加

type Resource

type Resource struct {
	ID ID // ID
}

Resource IDを持つ、さくらのクラウド上のリソース

func NewResource

func NewResource(id ID) *Resource

NewResource 新規リソース作成

func NewResourceByStringID

func NewResourceByStringID(id string) *Resource

NewResourceByStringID ID文字列からリソース作成

func (*Resource) GetID

func (n *Resource) GetID() ID

GetID ID 取得

func (*Resource) GetStrID

func (n *Resource) GetStrID() string

GetStrID 文字列でID取得

func (*Resource) SetID

func (n *Resource) SetID(id ID)

SetID ID 設定

type ResourceIDHolder

type ResourceIDHolder interface {
	SetID(id ID)
	GetID() ID
}

ResourceIDHolder ID保持インターフェース

type ResourceMonitorRequest

type ResourceMonitorRequest struct {
	Start *time.Time `json:",omitempty"` // 取得開始時間
	End   *time.Time `json:",omitempty"` // 取得終了時間
}

ResourceMonitorRequest アクティビティモニター取得リクエスト

func NewResourceMonitorRequest

func NewResourceMonitorRequest(start *time.Time, end *time.Time) *ResourceMonitorRequest

NewResourceMonitorRequest アクティビティモニター取得リクエスト作成

type ResourceMonitorResponse

type ResourceMonitorResponse struct {
	Data *MonitorValues `json:",omitempty"` // メトリクス
}

ResourceMonitorResponse アクティビティモニターレスポンス

type Response

type Response struct {
	*ResultFlagValue      // フラグ値
	*SakuraCloudResources // さくらのクラウドリソース(単数形)
}

Response レスポンス型

type ResultErrorValue

type ResultErrorValue struct {
	IsFatal      bool   `json:"is_fatal,omitempty"`   // IsFatal
	Serial       string `json:"serial,omitempty"`     // Serial
	Status       string `json:"status,omitempty"`     // Status
	ErrorCode    string `json:"error_code,omitempty"` // ErrorCode
	ErrorMessage string `json:"error_msg,omitempty"`  // ErrorMessage

}

ResultErrorValue レスポンスエラー型

type ResultFlagValue

type ResultFlagValue struct {
	IsOk    bool `json:"is_ok,omitempty"` // is_ok項目
	Success bool `json:",omitempty"`      // success項目
}

ResultFlagValue レスポンス値でのフラグ項目

type SIM

type SIM struct {
	*Resource // ID

	Status   SIMStatus   `json:",omitempty"` // ステータス
	Provider SIMProvider `json:",omitempty"` // プロバイダ
	Remark   *SIMRemark  `json:",omitempty"` // Remark
	// contains filtered or unexported fields
}

SIM SIM(CommonServiceItem)

func CreateNewSIM

func CreateNewSIM(name string, iccID string, passcode string) *SIM

CreateNewSIM SIM作成

func (*SIM) AppendTag

func (p *SIM) AppendTag(target string)

AppendTag タグを追加

func (*SIM) ClearIcon

func (p *SIM) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*SIM) ClearTags

func (p *SIM) ClearTags()

ClearTags 全タグを削除

func (*SIM) GetCreatedAt

func (p *SIM) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*SIM) GetDescription

func (p *SIM) GetDescription() string

GetDescription 説明 取得

func (*SIM) GetIcon

func (p *SIM) GetIcon() *Icon

GetIcon アイコンを取得

func (*SIM) GetIconID

func (p *SIM) GetIconID() ID

GetIconID アイコンIDを取得

func (*SIM) GetIconStrID

func (p *SIM) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*SIM) GetModifiedAt

func (p *SIM) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*SIM) GetName

func (p *SIM) GetName() string

GetName 名称 取得

func (*SIM) GetServiceClass

func (p *SIM) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*SIM) GetTags

func (p *SIM) GetTags() []string

GetTags タグ取得

func (*SIM) HasIcon

func (p *SIM) HasIcon() bool

HasIcon アイコンがセットされているか

func (*SIM) HasTag

func (p *SIM) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*SIM) IsAvailable

func (p *SIM) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*SIM) IsFailed

func (p *SIM) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*SIM) IsMigrating

func (p *SIM) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*SIM) IsUploading

func (p *SIM) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*SIM) RemoveTag

func (p *SIM) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*SIM) SetDescription

func (p *SIM) SetDescription(desc string)

SetDescription 説明 設定

func (*SIM) SetIcon

func (p *SIM) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*SIM) SetIconByID

func (p *SIM) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*SIM) SetName

func (p *SIM) SetName(name string)

SetName 名称 設定

func (*SIM) SetTags

func (p *SIM) SetTags(tags []string)

SetTags タグを設定

type SIMInfo

type SIMInfo struct {
	ICCID                      string           `json:"iccid,omitempty"`
	IMSI                       []string         `json:"imsi,omitempty"`
	IP                         string           `json:"ip,omitempty"`
	SessionStatus              string           `json:"session_status,omitempty"`
	IMEILock                   bool             `json:"imei_lock,omitempty"`
	Registered                 bool             `json:"registered,omitempty"`
	Activated                  bool             `json:"activated,omitempty"`
	ResourceID                 string           `json:"resource_id,omitempty"`
	RegisteredDate             *time.Time       `json:"registered_date,omitempty"`
	ActivatedDate              *time.Time       `json:"activated_date,omitempty"`
	DeactivatedDate            *time.Time       `json:"deactivated_date,omitempty"`
	SIMGroupID                 string           `json:"simgroup_id,omitempty"`
	TrafficBytesOfCurrentMonth *SIMTrafficBytes `json:"traffic_bytes_of_current_month,omitempty"`
	ConnectedIMEI              string           `json:"connected_imei,omitempty"`
}

SIMInfo SIM詳細情報

type SIMLog

type SIMLog struct {
	Date          *time.Time `json:"date,omitempty"`
	SessionStatus string     `json:"session_status,omitempty"`
	ResourceID    string     `json:"resource_id,omitempty"`
	IMEI          string     `json:"imei,omitempty"`
	IMSI          string     `json:"imsi,omitempty"`
}

SIMLog SIMログ

type SIMNetworkOperatorConfig added in v1.3.0

type SIMNetworkOperatorConfig struct {
	Allow       bool   `json:"allow,omitempty"`
	CountryCode string `json:"country_code,omitempty"`
	Name        string `json:"name,omitempty"`
}

SIMNetworkOperatorConfig SIM通信キャリア設定

type SIMNetworkOperatorConfigs added in v1.3.0

type SIMNetworkOperatorConfigs struct {
	NetworkOperatorConfigs []*SIMNetworkOperatorConfig `json:"network_operator_config,omitempty"`
}

SIMNetworkOperatorConfigs SIM通信キャリア設定 リクエストパラメータ

type SIMProvider

type SIMProvider struct {
	Class        string `json:",omitempty"` // クラス
	Name         string `json:",omitempty"`
	ServiceClass string `json:",omitempty"`
}

SIMProvider プロバイダ

type SIMRemark

type SIMRemark struct {
	PassCode string `json:",omitempty"`
}

SIMRemark remark

type SIMStatus

type SIMStatus struct {
	ICCID   string   `json:",omitempty"`    // ICCID
	SIMInfo *SIMInfo `json:"sim,omitempty"` // SIM詳細情報
}

SIMStatus SIMステータス

type SIMTrafficBytes

type SIMTrafficBytes struct {
	UplinkBytes   uint64 `json:"uplink_bytes,omitempty"`
	DownlinkBytes uint64 `json:"downlink_bytes,omitempty"`
}

SIMTrafficBytes 当月通信量

func (*SIMTrafficBytes) UnmarshalJSON

func (s *SIMTrafficBytes) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(配列、オブジェクトが混在するためここで対応)

type SSHKey

type SSHKey struct {
	*Resource // ID

	PublicKey   string `json:",omitempty"` // 公開鍵
	Fingerprint string `json:",omitempty"` // フィンガープリント
	// contains filtered or unexported fields
}

SSHKey 公開鍵

func (*SSHKey) GetCreatedAt

func (p *SSHKey) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*SSHKey) GetDescription

func (p *SSHKey) GetDescription() string

GetDescription 説明 取得

func (*SSHKey) GetFingerprint

func (k *SSHKey) GetFingerprint() string

GetFingerprint フィンガープリント取得

func (*SSHKey) GetName

func (p *SSHKey) GetName() string

GetName 名称 取得

func (*SSHKey) GetPublicKey

func (k *SSHKey) GetPublicKey() string

GetPublicKey 公開鍵取得

func (*SSHKey) SetDescription

func (p *SSHKey) SetDescription(desc string)

SetDescription 説明 設定

func (*SSHKey) SetName

func (p *SSHKey) SetName(name string)

SetName 名称 設定

func (*SSHKey) SetPublicKey

func (k *SSHKey) SetPublicKey(pKey string)

SetPublicKey 公開鍵設定

type SSHKeyGenerated

type SSHKeyGenerated struct {
	SSHKey
	PrivateKey string `json:",omitempty"` // 秘密鍵
}

SSHKeyGenerated 公開鍵生成戻り値(秘密鍵のダウンロード用)

func (*SSHKeyGenerated) GetCreatedAt

func (p *SSHKeyGenerated) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*SSHKeyGenerated) GetDescription

func (p *SSHKeyGenerated) GetDescription() string

GetDescription 説明 取得

func (*SSHKeyGenerated) GetName

func (p *SSHKeyGenerated) GetName() string

GetName 名称 取得

func (*SSHKeyGenerated) GetPrivateKey

func (k *SSHKeyGenerated) GetPrivateKey() string

GetPrivateKey 秘密鍵取得

func (*SSHKeyGenerated) SetDescription

func (p *SSHKeyGenerated) SetDescription(desc string)

SetDescription 説明 設定

func (*SSHKeyGenerated) SetName

func (p *SSHKeyGenerated) SetName(name string)

SetName 名称 設定

type SakuraCloudResourceList

type SakuraCloudResourceList struct {
	Servers          []Server             `json:",omitempty"`      // サーバー
	Disks            []Disk               `json:",omitempty"`      // ディスク
	Notes            []Note               `json:",omitempty"`      // スタートアップスクリプト
	Archives         []Archive            `json:",omitempty"`      // アーカイブ
	PacketFilters    []PacketFilter       `json:",omitempty"`      // パケットフィルタ
	PrivateHosts     []PrivateHost        `json:",omitempty"`      // 専有ホスト
	Bridges          []Bridge             `json:",omitempty"`      // ブリッジ
	Icons            []Icon               `json:",omitempty"`      // アイコン
	Interfaces       []Interface          `json:",omitempty"`      // インターフェース
	Internet         []Internet           `json:",omitempty"`      // ルーター
	IPAddress        []IPAddress          `json:",omitempty"`      // IPv4アドレス
	IPv6Addrs        []IPv6Addr           `json:",omitempty"`      // IPv6アドレス
	IPv6Nets         []IPv6Net            `json:",omitempty"`      // IPv6ネットワーク
	Licenses         []License            `json:",omitempty"`      // ライセンス
	Switches         []Switch             `json:",omitempty"`      // スイッチ
	CDROMs           []CDROM              `json:",omitempty"`      // ISOイメージ
	SSHKeys          []SSHKey             `json:",omitempty"`      // 公開鍵
	Subnets          []Subnet             `json:",omitempty"`      // IPv4ネットワーク
	DiskPlans        []ProductDisk        `json:",omitempty"`      // ディスクプラン
	InternetPlans    []ProductInternet    `json:",omitempty"`      // ルータープラン
	LicenseInfo      []ProductLicense     `json:",omitempty"`      // ライセンス情報
	ServerPlans      []ProductServer      `json:",omitempty"`      // サーバープラン
	PrivateHostPlans []ProductPrivateHost `json:",omitempty"`      // 専有ホストプラン
	Regions          []Region             `json:",omitempty"`      // リージョン
	Zones            []Zone               `json:",omitempty"`      // ゾーン
	ServiceClasses   []PublicPrice        `json:",omitempty"`      // サービスクラス(価格情報)
	WebAccelSites    []WebAccelSite       `json:"Sites,omitempty"` // ウェブアクセラレータ サイト

}

SakuraCloudResourceList さくらのクラウド上のリソース種別一覧(複数形)

type SakuraCloudResources

type SakuraCloudResources struct {
	Server          *Server             `json:",omitempty"`     // サーバー
	Disk            *Disk               `json:",omitempty"`     // ディスク
	Note            *Note               `json:",omitempty"`     // スタートアップスクリプト
	Archive         *Archive            `json:",omitempty"`     // アーカイブ
	PacketFilter    *PacketFilter       `json:",omitempty"`     // パケットフィルタ
	PrivateHost     *PrivateHost        `json:",omitempty"`     // 専有ホスト
	Bridge          *Bridge             `json:",omitempty"`     // ブリッジ
	Icon            *Icon               `json:",omitempty"`     // アイコン
	Image           *Image              `json:",omitempty"`     // 画像
	Interface       *Interface          `json:",omitempty"`     // インターフェース
	Internet        *Internet           `json:",omitempty"`     // ルーター
	IPAddress       *IPAddress          `json:",omitempty"`     // IPv4アドレス
	IPv6Addr        *IPv6Addr           `json:",omitempty"`     // IPv6アドレス
	IPv6Net         *IPv6Net            `json:",omitempty"`     // IPv6ネットワーク
	License         *License            `json:",omitempty"`     // ライセンス
	Switch          *Switch             `json:",omitempty"`     // スイッチ
	CDROM           *CDROM              `json:",omitempty"`     // ISOイメージ
	SSHKey          *SSHKey             `json:",omitempty"`     // 公開鍵
	Subnet          *Subnet             `json:",omitempty"`     // IPv4ネットワーク
	DiskPlan        *ProductDisk        `json:",omitempty"`     // ディスクプラン
	InternetPlan    *ProductInternet    `json:",omitempty"`     // ルータープラン
	LicenseInfo     *ProductLicense     `json:",omitempty"`     // ライセンス情報
	ServerPlan      *ProductServer      `json:",omitempty"`     // サーバープラン
	PrivateHostPlan *ProductPrivateHost `json:",omitempty"`     // 専有ホストプラン
	Region          *Region             `json:",omitempty"`     // リージョン
	Zone            *Zone               `json:",omitempty"`     // ゾーン
	FTPServer       *FTPServer          `json:",omitempty"`     // FTPサーバー情報
	WebAccelSite    *WebAccelSite       `json:"Site,omitempty"` // ウェブアクセラレータ サイト

}

SakuraCloudResources さくらのクラウド上のリソース種別一覧

type SearchResponse

type SearchResponse struct {
	Total                    int        `json:",omitempty"` // トータル件数
	From                     int        `json:",omitempty"` // ページング開始ページ
	Count                    int        `json:",omitempty"` // 件数
	ResponsedAt              *time.Time `json:",omitempty"` // 応答日時
	*SakuraCloudResourceList            // さくらのクラウドリソース(複数形)
}

SearchResponse 検索レスポンス

type Server

type Server struct {
	*Resource // ID
	// contains filtered or unexported fields
}

Server サーバー

func (*Server) AddEmptyConnectedParam

func (p *Server) AddEmptyConnectedParam()

AddEmptyConnectedParam 未接続なNIC追加

func (*Server) AddExistsSwitchConnectedParam

func (p *Server) AddExistsSwitchConnectedParam(switchID string)

AddExistsSwitchConnectedParam スイッチへ接続したNIC追加

func (*Server) AddPublicNWConnectedParam

func (p *Server) AddPublicNWConnectedParam()

AddPublicNWConnectedParam 共有セグメントへ接続したNIC追加

func (*Server) AppendTag

func (p *Server) AppendTag(target string)

AppendTag タグを追加

func (*Server) Bandwidth added in v1.7.0

func (s *Server) Bandwidth() int

Bandwidth 上流ネットワークの帯域幅(単位:Mbps)

-1: 1番目(0番目)のNICが存在しない場合 or 切断されている場合 0 : 制限なしの場合 以外: 帯域幅(Mbps)

func (*Server) BandwidthAt added in v1.7.0

func (s *Server) BandwidthAt(index int) int

BandwidthAt 上流ネットワークの帯域幅(単位:Mbps)

-1: 存在しないインデックスを取得した場合 or 切断されている場合 0 : 制限なしの場合 以外: 帯域幅(Mbps)

func (*Server) CIDRIPAddress

func (s *Server) CIDRIPAddress() string

CIDRIPAddress サーバの1番目のNIC(eth0)のIPアドレス+ネットワークマスク長

func (*Server) ClearConnectedSwitches

func (p *Server) ClearConnectedSwitches()

ClearConnectedSwitches 接続先スイッチ指定パラメータークリア

func (*Server) ClearIcon

func (p *Server) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*Server) ClearPrivateHost

func (p *Server) ClearPrivateHost()

ClearPrivateHost 専有ホストをクリア(空IDを持つ専有ホストオブジェクトをセット)

func (*Server) ClearTags

func (p *Server) ClearTags()

ClearTags 全タグを削除

func (*Server) DNSServers

func (s *Server) DNSServers() []string

DNSServers サーバの所属するリージョンの推奨ネームサーバリスト

func (*Server) DefaultRoute

func (s *Server) DefaultRoute() string

DefaultRoute デフォルトゲートウェイアドレス(Gatewayのエイリアス)

func (*Server) Gateway

func (s *Server) Gateway() string

Gateway デフォルトゲートウェイアドレス

func (*Server) GetCPU

func (p *Server) GetCPU() int

GetCPU CPUコア数 取得

func (*Server) GetConnectedSwitches

func (p *Server) GetConnectedSwitches() []interface{}

GetConnectedSwitches 接続先スイッチ 取得

func (*Server) GetCreatedAt

func (p *Server) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Server) GetDescription

func (p *Server) GetDescription() string

GetDescription 説明 取得

func (*Server) GetDiskIDs

func (p *Server) GetDiskIDs() []ID

GetDiskIDs ディスクID配列を返す

func (*Server) GetDisks

func (p *Server) GetDisks() []Disk

GetDisks ディスク配列 取得

func (*Server) GetFTPHostName

func (p *Server) GetFTPHostName() string

GetFTPHostName FTPサーバーホスト名 取得

func (*Server) GetFTPServerIPAddress

func (p *Server) GetFTPServerIPAddress() string

GetFTPServerIPAddress FTPサーバーIPアドレス 取得

func (*Server) GetFirstInterface

func (p *Server) GetFirstInterface() *Interface

GetFirstInterface インターフェース(NIC)配列の先頭要素を返す

func (*Server) GetHostName

func (p *Server) GetHostName() string

GetHostName (初期)ホスト名 取得

func (*Server) GetIcon

func (p *Server) GetIcon() *Icon

GetIcon アイコンを取得

func (*Server) GetIconID

func (p *Server) GetIconID() ID

GetIconID アイコンIDを取得

func (*Server) GetIconStrID

func (p *Server) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*Server) GetInstance

func (p *Server) GetInstance() *Instance

GetInstance インスタンス 取得

func (*Server) GetInstanceBeforeStatus

func (p *Server) GetInstanceBeforeStatus() string

GetInstanceBeforeStatus 以前のステータス 取得

func (*Server) GetInstanceStatus

func (p *Server) GetInstanceStatus() string

GetInstanceStatus ステータス 取得

func (*Server) GetInterfaceDriver

func (p *Server) GetInterfaceDriver() EInterfaceDriver

GetInterfaceDriver インターフェースドライバ 取得

func (*Server) GetInterfaceDriverString

func (p *Server) GetInterfaceDriverString() string

GetInterfaceDriverString インターフェースドライバ 取得(文字列)

func (*Server) GetInterfaces

func (p *Server) GetInterfaces() []Interface

GetInterfaces インターフェース(NIC)配列 取得

func (*Server) GetMaintenanceInfoURL

func (p *Server) GetMaintenanceInfoURL() string

GetMaintenanceInfoURL メンテナンス情報 URL取得

func (*Server) GetMemoryGB

func (p *Server) GetMemoryGB() int

GetMemoryGB メモリ(GB) 取得

func (*Server) GetMemoryMB

func (p *Server) GetMemoryMB() int

GetMemoryMB メモリ(MB) 取得

func (*Server) GetName

func (p *Server) GetName() string

GetName 名称 取得

func (*Server) GetRegion

func (p *Server) GetRegion() *Region

GetRegion リージョン 取得

func (*Server) GetRegionDescription

func (p *Server) GetRegionDescription() string

GetRegionDescription リージョン説明 取得

func (*Server) GetRegionID

func (p *Server) GetRegionID() ID

GetRegionID リージョンID 取得

func (*Server) GetRegionName

func (p *Server) GetRegionName() string

GetRegionName リージョン名 取得

func (*Server) GetRegionNameServers

func (p *Server) GetRegionNameServers() []string

GetRegionNameServers リージョンのネームサーバー(のIPアドレス)取得

func (*Server) GetServerPlan

func (p *Server) GetServerPlan() *ProductServer

GetServerPlan サーバープラン取得

func (*Server) GetServiceClass

func (p *Server) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*Server) GetTags

func (p *Server) GetTags() []string

GetTags タグ取得

func (*Server) GetVNCProxyHostName

func (p *Server) GetVNCProxyHostName() string

GetVNCProxyHostName VNCプロキシホスト名 取得

func (*Server) GetVPCProxyIPAddress

func (p *Server) GetVPCProxyIPAddress() string

GetVPCProxyIPAddress VNCプロキシIPアドレス 取得

func (*Server) GetWaitDiskMigration

func (p *Server) GetWaitDiskMigration() bool

GetWaitDiskMigration ディスク作成待ちフラグ 取得

func (*Server) GetZone

func (p *Server) GetZone() *Zone

GetZone ゾーン 取得

func (*Server) GetZoneDescription

func (p *Server) GetZoneDescription() string

GetZoneDescription ゾーン説明 取得

func (*Server) GetZoneID

func (p *Server) GetZoneID() ID

GetZoneID ゾーンID 取得

func (*Server) GetZoneName

func (p *Server) GetZoneName() string

GetZoneName ゾーン名 取得

func (*Server) HasIcon

func (p *Server) HasIcon() bool

HasIcon アイコンがセットされているか

func (*Server) HasTag

func (p *Server) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Server) IPAddress

func (s *Server) IPAddress() string

IPAddress サーバの1番目のNIC(eth0)のIPアドレス

func (*Server) IsAvailable

func (p *Server) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (*Server) IsDown

func (p *Server) IsDown() bool

IsDown インスタンスがダウンしているか確認

func (*Server) IsFailed

func (p *Server) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*Server) IsMigrating

func (p *Server) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*Server) IsUp

func (p *Server) IsUp() bool

IsUp インスタンスが起動しているか判定

func (*Server) IsUploading

func (p *Server) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (*Server) MaintenanceScheduled

func (p *Server) MaintenanceScheduled() bool

MaintenanceScheduled メンテナンス予定の有無

func (*Server) NetworkAddress

func (s *Server) NetworkAddress() string

NetworkAddress サーバの1番目のNIC(eth0)のネットワークアドレス

func (*Server) NetworkMaskLen

func (s *Server) NetworkMaskLen() int

NetworkMaskLen サーバの1番目のNIC(eth0)のネットワークマスク長

func (*Server) RemoveTag

func (p *Server) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*Server) SetConnectedSwitches

func (p *Server) SetConnectedSwitches(switches []interface{})

SetConnectedSwitches 接続先スイッチ 設定

func (*Server) SetDescription

func (p *Server) SetDescription(desc string)

SetDescription 説明 設定

func (*Server) SetIcon

func (p *Server) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*Server) SetIconByID

func (p *Server) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*Server) SetInterfaceDriver

func (p *Server) SetInterfaceDriver(v EInterfaceDriver)

SetInterfaceDriver インターフェースドライバ 設定

func (*Server) SetInterfaceDriverByString

func (p *Server) SetInterfaceDriverByString(v string)

SetInterfaceDriverByString インターフェースドライバ 設定(文字列)

func (*Server) SetMemoryGB

func (p *Server) SetMemoryGB(memoryGB int)

func (*Server) SetName

func (p *Server) SetName(name string)

SetName 名称 設定

func (*Server) SetPrivateHost

func (p *Server) SetPrivateHost(icon *PrivateHost)

SetPrivateHost 指定の専有ホストオブジェクトを設定

func (*Server) SetPrivateHostByID

func (p *Server) SetPrivateHostByID(id ID)

SetPrivateHostByID 指定の専有ホストIDを設定

func (*Server) SetServerPlan

func (p *Server) SetServerPlan(plan *ProductServer)

SetServerPlan サーバープラン設定

func (*Server) SetServerPlanByID

func (p *Server) SetServerPlanByID(planID string)

SetServerPlanByID サーバープラン設定

func (*Server) SetServerPlanByValue

func (p *Server) SetServerPlanByValue(cpu int, memoryGB int, gen PlanGenerations)

SetServerPlanByValue サーバープラン設定(値指定)

func (*Server) SetTags

func (p *Server) SetTags(tags []string)

SetTags タグを設定

func (*Server) SetWaitDiskMigration

func (p *Server) SetWaitDiskMigration(f bool)

SetWaitDiskMigration ディスク作成待ちフラグ 設定

func (*Server) SwitchID added in v1.7.0

func (s *Server) SwitchID() ID

SwitchID 上流のスイッチのID

NICがない、上流スイッチが見つからない、上流が共有セグメントの場合は-1を返す

func (*Server) SwitchIDAt added in v1.7.0

func (s *Server) SwitchIDAt(index int) ID

SwitchIDAt 上流ネットワークのスイッチのID

NICがない、上流スイッチが見つからない、上流が共有セグメントの場合は-1を返す

func (*Server) SwitchName added in v1.7.0

func (s *Server) SwitchName() string

SwitchName 上流のスイッチのID

NICがない、上流スイッチが見つからない、上流が共有セグメントの場合は空文字を返す

func (*Server) SwitchNameAt added in v1.7.0

func (s *Server) SwitchNameAt(index int) string

SwitchNameAt 上流ネットワークのスイッチのID

NICがない、上流スイッチが見つからない、上流が共有セグメントの場合は空文字を返す

func (*Server) UpstreamType added in v1.7.0

func (s *Server) UpstreamType() EUpstreamNetworkType

UpstreamType 1番目(0番目)のNICの上流ネットワーク種別

func (*Server) UpstreamTypeAt added in v1.7.0

func (s *Server) UpstreamTypeAt(index int) EUpstreamNetworkType

UpstreamTypeAt 指定インデックスのNICの上流ネットワーク種別

func (*Server) ZoneIsDummy

func (p *Server) ZoneIsDummy() bool

ZoneIsDummy ダミーフラグ 取得

type SimpleMonitor

type SimpleMonitor struct {
	*Resource // ID

	Settings *SimpleMonitorSettings `json:",omitempty"` // 設定
	Status   *SimpleMonitorStatus   `json:",omitempty"` // ステータス
	Provider *SimpleMonitorProvider `json:",omitempty"` // プロバイダ
	// contains filtered or unexported fields
}

SimpleMonitor シンプル監視

func CreateNewSimpleMonitor

func CreateNewSimpleMonitor(target string) *SimpleMonitor

CreateNewSimpleMonitor シンプル監視作成

func (*SimpleMonitor) AppendTag

func (p *SimpleMonitor) AppendTag(target string)

AppendTag タグを追加

func (*SimpleMonitor) ClearIcon

func (p *SimpleMonitor) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*SimpleMonitor) ClearTags

func (p *SimpleMonitor) ClearTags()

ClearTags 全タグを削除

func (*SimpleMonitor) DisableNotifyEmail

func (s *SimpleMonitor) DisableNotifyEmail()

DisableNotifyEmail Email通知の無効化

func (*SimpleMonitor) DisableNotifySlack

func (s *SimpleMonitor) DisableNotifySlack()

DisableNotifySlack Slack通知の無効化

func (*SimpleMonitor) EnableNofitySlack

func (s *SimpleMonitor) EnableNofitySlack(incomingWebhooksURL string)

EnableNofitySlack Slack通知の有効化

func (*SimpleMonitor) EnableNotifyEmail

func (s *SimpleMonitor) EnableNotifyEmail(withHTML bool)

EnableNotifyEmail Email通知の有効か

func (*SimpleMonitor) GetCreatedAt

func (p *SimpleMonitor) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*SimpleMonitor) GetDescription

func (p *SimpleMonitor) GetDescription() string

GetDescription 説明 取得

func (*SimpleMonitor) GetIcon

func (p *SimpleMonitor) GetIcon() *Icon

GetIcon アイコンを取得

func (*SimpleMonitor) GetIconID

func (p *SimpleMonitor) GetIconID() ID

GetIconID アイコンIDを取得

func (*SimpleMonitor) GetIconStrID

func (p *SimpleMonitor) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*SimpleMonitor) GetModifiedAt

func (p *SimpleMonitor) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*SimpleMonitor) GetName

func (p *SimpleMonitor) GetName() string

GetName 名称 取得

func (*SimpleMonitor) GetServiceClass

func (p *SimpleMonitor) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*SimpleMonitor) GetTags

func (p *SimpleMonitor) GetTags() []string

GetTags タグ取得

func (*SimpleMonitor) HasIcon

func (p *SimpleMonitor) HasIcon() bool

HasIcon アイコンがセットされているか

func (*SimpleMonitor) HasTag

func (p *SimpleMonitor) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*SimpleMonitor) RemoveTag

func (p *SimpleMonitor) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*SimpleMonitor) SetDelayLoop

func (s *SimpleMonitor) SetDelayLoop(loop int)

SetDelayLoop 監視間隔の設定

func (*SimpleMonitor) SetDescription

func (p *SimpleMonitor) SetDescription(desc string)

SetDescription 説明 設定

func (*SimpleMonitor) SetHealthCheckDNS

func (s *SimpleMonitor) SetHealthCheckDNS(qname string, expectedData string)

SetHealthCheckDNS DNSクエリでのヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckHTTP

func (s *SimpleMonitor) SetHealthCheckHTTP(port string, path string, status string, host string, user, pass string)

SetHealthCheckHTTP HTTPでのヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckHTTPS

func (s *SimpleMonitor) SetHealthCheckHTTPS(port string, path string, status string, host string, sni bool, user, pass string)

SetHealthCheckHTTPS HTTPSでのヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckPOP3

func (s *SimpleMonitor) SetHealthCheckPOP3(port string)

SetHealthCheckPOP3 POP3ヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckPing

func (s *SimpleMonitor) SetHealthCheckPing()

SetHealthCheckPing pingでのヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckSMTP

func (s *SimpleMonitor) SetHealthCheckSMTP(port string)

SetHealthCheckSMTP SMTPヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckSNMP

func (s *SimpleMonitor) SetHealthCheckSNMP(community string, version string, oid string, expectedData string)

SetHealthCheckSNMP SNMPヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckSSH

func (s *SimpleMonitor) SetHealthCheckSSH(port string)

SetHealthCheckSSH SSHヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckSSLCertificate

func (s *SimpleMonitor) SetHealthCheckSSLCertificate(remainingDays int)

SetHealthCheckSSLCertificate SSLサーバ証明書有効期限ヘルスチェック設定

func (*SimpleMonitor) SetHealthCheckTCP

func (s *SimpleMonitor) SetHealthCheckTCP(port string)

SetHealthCheckTCP TCPでのヘルスチェック設定

func (*SimpleMonitor) SetIcon

func (p *SimpleMonitor) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*SimpleMonitor) SetIconByID

func (p *SimpleMonitor) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*SimpleMonitor) SetName

func (p *SimpleMonitor) SetName(name string)

SetName 名称 設定

func (*SimpleMonitor) SetNotifyInterval added in v1.28.0

func (s *SimpleMonitor) SetNotifyInterval(loop int)

SetNotifyInterval 再通知間隔の設定

func (*SimpleMonitor) SetTags

func (p *SimpleMonitor) SetTags(tags []string)

SetTags タグを設定

func (*SimpleMonitor) SetTarget

func (s *SimpleMonitor) SetTarget(target string)

SetTarget 対象ホスト(IP or FQDN)の設定

type SimpleMonitorHealthCheck

type SimpleMonitorHealthCheck struct {
	Protocol          string `json:",omitempty"` // プロトコル
	Port              string `json:",omitempty"` // ポート
	Path              string `json:",omitempty"` // HTTP/HTTPS監視の場合のリクエストパス
	Status            string `json:",omitempty"` // HTTP/HTTPS監視の場合の期待ステータスコード
	SNI               string `json:",omitempty"` // HTTPS監視時のSNI有効/無効
	Host              string `json:",omitempty"` // 対象ホスト(IP or FQDN)
	BasicAuthUsername string `json:",omitempty"` // HTTP/HTTPS監視の場合のBASIC認証 ユーザー名
	BasicAuthPassword string `json:",omitempty"` // HTTP/HTTPS監視の場合のBASIC認証 パスワード
	QName             string `json:",omitempty"` // DNS監視の場合の問い合わせFQDN
	ExpectedData      string `json:",omitempty"` // 期待値
	Community         string `json:",omitempty"` // SNMP監視の場合のコミュニティ名
	SNMPVersion       string `json:",omitempty"` // SNMP監視 SNMPバージョン
	OID               string `json:",omitempty"` // SNMP監視 OID
	RemainingDays     int    `json:",omitempty"` // SSL証明書 有効残日数
}

SimpleMonitorHealthCheck ヘルスチェック

type SimpleMonitorHealthCheckStatus added in v1.5.0

type SimpleMonitorHealthCheckStatus struct {
	LastCheckedAt       time.Time
	LastHealthChangedAt time.Time
	Health              ESimpleMonitorHealth
}

SimpleMonitorHealthCheckStatus シンプル監視ステータス

type SimpleMonitorNotify

type SimpleMonitorNotify struct {
	Enabled             string `json:",omitempty"` // 有効/無効
	HTML                string `json:",omitempty"` // メール通知の場合のHTMLメール有効フラグ
	IncomingWebhooksURL string `json:",omitempty"` // Slack通知の場合のWebhook URL
}

SimpleMonitorNotify シンプル監視通知

type SimpleMonitorProvider

type SimpleMonitorProvider struct {
	*Resource // ID

	Class string `json:",omitempty"` // クラス
	// contains filtered or unexported fields
}

SimpleMonitorProvider プロバイダ

func (*SimpleMonitorProvider) GetName

func (p *SimpleMonitorProvider) GetName() string

GetName 名称 取得

func (*SimpleMonitorProvider) GetServiceClass

func (p *SimpleMonitorProvider) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*SimpleMonitorProvider) SetName

func (p *SimpleMonitorProvider) SetName(name string)

SetName 名称 設定

type SimpleMonitorSetting

type SimpleMonitorSetting struct {
	DelayLoop      int                       `json:",omitempty"` // 監視間隔
	NotifyInterval int                       `json:",omitempty"` // 再通知間隔(秒数)
	HealthCheck    *SimpleMonitorHealthCheck `json:",omitempty"` // ヘルスチェック
	Enabled        string                    `json:",omitempty"` // 有効/無効
	NotifyEmail    *SimpleMonitorNotify      `json:",omitempty"` // Email通知
	NotifySlack    *SimpleMonitorNotify      `json:",omitempty"` // Slack通知
}

SimpleMonitorSetting シンプル監視設定

type SimpleMonitorSettings

type SimpleMonitorSettings struct {
	SimpleMonitor *SimpleMonitorSetting `json:",omitempty"` // シンプル監視設定値
}

SimpleMonitorSettings シンプル監視設定 リスト

type SimpleMonitorStatus

type SimpleMonitorStatus struct {
	Target string `json:",omitempty"` // 対象(IP or FQDN)
}

SimpleMonitorStatus シンプル監視ステータス

type SiteToSiteConnectionDetail

type SiteToSiteConnectionDetail struct {
	ESP struct {
		AuthenticationProtocol string
		DHGroup                string
		EncryptionProtocol     string
		Lifetime               string
		Mode                   string
		PerfectForwardSecrecy  string
	}
	IKE struct {
		AuthenticationProtocol string
		EncryptionProtocol     string
		Lifetime               string
		Mode                   string
		PerfectForwardSecrecy  string
		PreSharedSecret        string
	}
	Peer struct {
		ID               string
		InsideNetworks   []string
		OutsideIPAddress string
	}
	VPCRouter struct {
		ID               string
		InsideNetworks   []string
		OutsideIPAddress string
	}
}

SiteToSiteConnectionDetail サイト間VPN接続詳細情報

type SiteToSiteConnectionInfo

type SiteToSiteConnectionInfo struct {
	Details struct {
		Config []SiteToSiteConnectionDetail
	}
}

SiteToSiteConnectionInfo サイト間VPN接続情報

type SlaveDatabaseValue

type SlaveDatabaseValue struct {
	Plan            DatabasePlan // プラン
	DefaultUser     string       // ユーザー名
	UserPassword    string       // パスワード
	SwitchID        ID           // 接続先スイッチ
	IPAddress1      string       // IPアドレス1
	MaskLen         int          // ネットワークマスク長
	DefaultRoute    string       // デフォルトルート
	Name            string       // 名称
	Description     string       // 説明
	Tags            []string     // タグ
	Icon            *Resource    // アイコン
	DatabaseName    string       // データベース名
	DatabaseVersion string       // データベースバージョン
	// ReplicaUser      string    // レプリケーションユーザー 現在はreplica固定
	ReplicaPassword   string // レプリケーションパスワード
	MasterApplianceID ID     // クローン元DB
	MasterIPAddress   string // マスターIPアドレス
	MasterPort        int    // マスターポート
}

SlaveDatabaseValue スレーブデータベース作成用パラメータ

type SourceNetwork

type SourceNetwork []string

SourceNetwork 接続許可ネットワーク

func (*SourceNetwork) MarshalJSON

func (s *SourceNetwork) MarshalJSON() ([]byte, error)

MarshalJSON JSONマーシャル(配列と文字列が混在するためここで対応)

func (*SourceNetwork) UnmarshalJSON

func (s *SourceNetwork) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(配列と文字列が混在するためここで対応)

type Storage

type Storage struct {
	*Resource // ID

	Class    string `json:",omitempty"` // クラス
	DiskPlan struct {
		*Resource // ID
		// contains filtered or unexported fields
	} `json:",omitempty"`
	// contains filtered or unexported fields
}

Storage ストレージ

func (*Storage) GetDescription

func (p *Storage) GetDescription() string

GetDescription 説明 取得

func (*Storage) GetFTPHostName

func (p *Storage) GetFTPHostName() string

GetFTPHostName FTPサーバーホスト名 取得

func (*Storage) GetFTPServerIPAddress

func (p *Storage) GetFTPServerIPAddress() string

GetFTPServerIPAddress FTPサーバーIPアドレス 取得

func (*Storage) GetName

func (p *Storage) GetName() string

GetName 名称 取得

func (*Storage) GetRegion

func (p *Storage) GetRegion() *Region

GetRegion リージョン 取得

func (*Storage) GetRegionDescription

func (p *Storage) GetRegionDescription() string

GetRegionDescription リージョン説明 取得

func (*Storage) GetRegionID

func (p *Storage) GetRegionID() ID

GetRegionID リージョンID 取得

func (*Storage) GetRegionName

func (p *Storage) GetRegionName() string

GetRegionName リージョン名 取得

func (*Storage) GetRegionNameServers

func (p *Storage) GetRegionNameServers() []string

GetRegionNameServers リージョンのネームサーバー(のIPアドレス)取得

func (*Storage) GetVNCProxyHostName

func (p *Storage) GetVNCProxyHostName() string

GetVNCProxyHostName VNCプロキシホスト名 取得

func (*Storage) GetVPCProxyIPAddress

func (p *Storage) GetVPCProxyIPAddress() string

GetVPCProxyIPAddress VNCプロキシIPアドレス 取得

func (*Storage) GetZone

func (p *Storage) GetZone() *Zone

GetZone ゾーン 取得

func (*Storage) GetZoneDescription

func (p *Storage) GetZoneDescription() string

GetZoneDescription ゾーン説明 取得

func (*Storage) GetZoneID

func (p *Storage) GetZoneID() ID

GetZoneID ゾーンID 取得

func (*Storage) GetZoneName

func (p *Storage) GetZoneName() string

GetZoneName ゾーン名 取得

func (*Storage) SetDescription

func (p *Storage) SetDescription(desc string)

SetDescription 説明 設定

func (*Storage) SetName

func (p *Storage) SetName(name string)

SetName 名称 設定

func (*Storage) ZoneIsDummy

func (p *Storage) ZoneIsDummy() bool

ZoneIsDummy ダミーフラグ 取得

type Subnet

type Subnet struct {
	*Resource // ID

	DefaultRoute   string       `json:",omitempty"` // デフォルトルート
	IPAddresses    []*IPAddress `json:",omitempty"` // IPv4アドレス範囲
	NetworkAddress string       `json:",omitempty"` // ネットワークアドレス
	NetworkMaskLen int          `json:",omitempty"` // ネットワークマスク長
	ServiceID      ID           `json:",omitempty"` // サービスID
	StaticRoute    string       `json:",omitempty"` // スタティックルート
	NextHop        string       `json:",omitempty"` // ネクストホップ
	Switch         *Switch      `json:",omitempty"` // スイッチ
	Internet       *Internet    `json:",omitempty"` // ルーター
	// contains filtered or unexported fields
}

Subnet IPv4サブネット

func (*Subnet) GetCreatedAt

func (p *Subnet) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Subnet) GetServiceClass

func (p *Subnet) GetServiceClass() string

GetServiceClass サービスクラス 取得

type Switch

type Switch struct {
	*Resource // ID

	ServerCount    int            `json:",omitempty"` // 接続サーバー数
	ApplianceCount int            `json:",omitempty"` // 接続アプライアンス数
	Scope          EScope         `json:",omitempty"` // スコープ
	Subnet         *Subnet        `json:",omitempty"` // サブネット
	UserSubnet     *Subnet        `json:",omitempty"` // ユーザー定義サブネット
	Subnets        []SwitchSubnet `json:",omitempty"` // サブネット
	IPv6Nets       []IPv6Net      `json:",omitempty"` // IPv6サブネットリスト
	Internet       *Internet      `json:",omitempty"` // ルーター

	Bridge *struct {
		*Bridge // ブリッジ
		Info    *struct {
			Switches []*Switch
		}
	} `json:",omitempty"`
	// contains filtered or unexported fields
}

Switch スイッチ

func (*Switch) AppendTag

func (p *Switch) AppendTag(target string)

AppendTag タグを追加

func (*Switch) ClearIcon

func (p *Switch) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (*Switch) ClearTags

func (p *Switch) ClearTags()

ClearTags 全タグを削除

func (*Switch) GetCreatedAt

func (p *Switch) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*Switch) GetDefaultIPAddressesForVPCRouter

func (s *Switch) GetDefaultIPAddressesForVPCRouter() (string, string, string, error)

GetDefaultIPAddressesForVPCRouter VPCルーター接続用にサブネットからIPアドレスを3つ取得

func (*Switch) GetDescription

func (p *Switch) GetDescription() string

GetDescription 説明 取得

func (*Switch) GetFTPHostName added in v1.8.0

func (p *Switch) GetFTPHostName() string

GetFTPHostName FTPサーバーホスト名 取得

func (*Switch) GetFTPServerIPAddress added in v1.8.0

func (p *Switch) GetFTPServerIPAddress() string

GetFTPServerIPAddress FTPサーバーIPアドレス 取得

func (*Switch) GetIPAddressList

func (s *Switch) GetIPAddressList() ([]string, error)

GetIPAddressList IPアドレス範囲内の全てのIPアドレスを取得

func (*Switch) GetIcon

func (p *Switch) GetIcon() *Icon

GetIcon アイコンを取得

func (*Switch) GetIconID

func (p *Switch) GetIconID() ID

GetIconID アイコンIDを取得

func (*Switch) GetIconStrID

func (p *Switch) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (*Switch) GetName

func (p *Switch) GetName() string

GetName 名称 取得

func (*Switch) GetRegion added in v1.8.0

func (p *Switch) GetRegion() *Region

GetRegion リージョン 取得

func (*Switch) GetRegionDescription added in v1.8.0

func (p *Switch) GetRegionDescription() string

GetRegionDescription リージョン説明 取得

func (*Switch) GetRegionID added in v1.8.0

func (p *Switch) GetRegionID() ID

GetRegionID リージョンID 取得

func (*Switch) GetRegionName added in v1.8.0

func (p *Switch) GetRegionName() string

GetRegionName リージョン名 取得

func (*Switch) GetRegionNameServers added in v1.8.0

func (p *Switch) GetRegionNameServers() []string

GetRegionNameServers リージョンのネームサーバー(のIPアドレス)取得

func (*Switch) GetServiceClass

func (p *Switch) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (*Switch) GetTags

func (p *Switch) GetTags() []string

GetTags タグ取得

func (*Switch) GetVNCProxyHostName added in v1.8.0

func (p *Switch) GetVNCProxyHostName() string

GetVNCProxyHostName VNCプロキシホスト名 取得

func (*Switch) GetVPCProxyIPAddress added in v1.8.0

func (p *Switch) GetVPCProxyIPAddress() string

GetVPCProxyIPAddress VNCプロキシIPアドレス 取得

func (*Switch) GetZone added in v1.8.0

func (p *Switch) GetZone() *Zone

GetZone ゾーン 取得

func (*Switch) GetZoneDescription added in v1.8.0

func (p *Switch) GetZoneDescription() string

GetZoneDescription ゾーン説明 取得

func (*Switch) GetZoneID added in v1.8.0

func (p *Switch) GetZoneID() ID

GetZoneID ゾーンID 取得

func (*Switch) GetZoneName added in v1.8.0

func (p *Switch) GetZoneName() string

GetZoneName ゾーン名 取得

func (*Switch) HasIcon

func (p *Switch) HasIcon() bool

HasIcon アイコンがセットされているか

func (*Switch) HasTag

func (p *Switch) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*Switch) RemoveTag

func (p *Switch) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (*Switch) SetDescription

func (p *Switch) SetDescription(desc string)

SetDescription 説明 設定

func (*Switch) SetIcon

func (p *Switch) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (*Switch) SetIconByID

func (p *Switch) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (*Switch) SetName

func (p *Switch) SetName(name string)

SetName 名称 設定

func (*Switch) SetTags

func (p *Switch) SetTags(tags []string)

SetTags タグを設定

func (*Switch) ZoneIsDummy added in v1.8.0

func (p *Switch) ZoneIsDummy() bool

ZoneIsDummy ダミーフラグ 取得

type SwitchSubnet

type SwitchSubnet struct {
	*Subnet
	IPAddresses struct {
		Min string `json:",omitempty"` // IPアドレス開始
		Max string `json:",omitempty"` // IPアドレス終了
	}
}

SwitchSubnet スイッチサブネット

func (SwitchSubnet) GetCreatedAt

func (p SwitchSubnet) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (SwitchSubnet) GetServiceClass

func (p SwitchSubnet) GetServiceClass() string

GetServiceClass サービスクラス 取得

type TrafficMonitoringConfig

type TrafficMonitoringConfig struct {
	TrafficQuotaInMB     int                           `json:"traffic_quota_in_mb"`
	BandWidthLimitInKbps int                           `json:"bandwidth_limit_in_kbps"`
	EMailConfig          *TrafficMonitoringNotifyEmail `json:"email_config"`
	SlackConfig          *TrafficMonitoringNotifySlack `json:"slack_config"`
	AutoTrafficShaping   bool                          `json:"auto_traffic_shaping"`
}

TrafficMonitoringConfig トラフィックコントロール 設定

type TrafficMonitoringNotifyEmail

type TrafficMonitoringNotifyEmail struct {
	Enabled bool `json:"enabled"` // 有効/無効
}

TrafficMonitoringNotifyEmail トラフィックコントロール通知設定

type TrafficMonitoringNotifySlack

type TrafficMonitoringNotifySlack struct {
	Enabled             bool   `json:"enabled"`             // 有効/無効
	IncomingWebhooksURL string `json:"slack_url,omitempty"` // Slack通知の場合のWebhook URL
}

TrafficMonitoringNotifySlack トラフィックコントロール通知設定

type TrafficStatus

type TrafficStatus struct {
	UplinkBytes    uint64 `json:"uplink_bytes,omitempty"`
	DownlinkBytes  uint64 `json:"downlink_bytes,omitempty"`
	TrafficShaping bool   `json:"traffic_shaping"` // 帯域制限
}

TrafficStatus トラフィックコントロール 当月通信量

func (*TrafficStatus) UnmarshalJSON

func (s *TrafficStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(uint64文字列対応)

type VNCProxyResponse

type VNCProxyResponse struct {
	*ResultFlagValue
	Status       string `json:",omitempty"` // ステータス
	Host         string `json:",omitempty"` // プロキシホスト
	IOServerHost string `json:",omitempty"` // 新プロキシホスト(Hostがlocalhostの場合にこちらを利用する)
	Port         string `json:",omitempty"` // ポート番号
	Password     string `json:",omitempty"` // VNCパスワード
	VNCFile      string `json:",omitempty"` // VNC接続情報ファイル(VNCビューア用)
}

VNCProxyResponse VNCプロキシ取得レスポンス

func (*VNCProxyResponse) ActualHost

func (r *VNCProxyResponse) ActualHost() string

ActualHost プロキシホスト名(Host or IOServerHost)を返す

type VNCSizeResponse

type VNCSizeResponse struct {
	Width  int `json:",string,omitempty"` // 幅
	Height int `json:",string,omitempty"` // 高さ
}

VNCSizeResponse VNC画面サイズレスポンス

type VNCSnapshotRequest

type VNCSnapshotRequest struct {
	ScreenSaverExitTimeMS int `json:",omitempty"` // スクリーンセーバーからの復帰待ち時間
}

VNCSnapshotRequest VNCスナップショット取得リクエスト

type VNCSnapshotResponse

type VNCSnapshotResponse struct {
	Image string `json:",omitempty"` // スナップショット画像データ
}

VNCSnapshotResponse VPCスナップショットレスポンス

type VPCRouter

type VPCRouter struct {
	*Appliance // アプライアンス共通属性

	Remark   *VPCRouterRemark   `json:",omitempty"` // リマーク
	Settings *VPCRouterSettings `json:",omitempty"` // VPCルーター設定リスト
}

VPCRouter VPCルーター

func CreateNewVPCRouter

func CreateNewVPCRouter() *VPCRouter

CreateNewVPCRouter VPCルーター作成

func (VPCRouter) AppendTag

func (p VPCRouter) AppendTag(target string)

AppendTag タグを追加

func (VPCRouter) ClearIcon

func (p VPCRouter) ClearIcon()

ClearIcon アイコンをクリア(空IDを持つアイコンオブジェクトをセット)

func (VPCRouter) ClearTags

func (p VPCRouter) ClearTags()

ClearTags 全タグを削除

func (*VPCRouter) FindBelongsInterface

func (v *VPCRouter) FindBelongsInterface(ip net.IP) (int, *VPCRouterInterface)

FindBelongsInterface 指定のIPアドレスが所属するIPレンジを持つインターフェースを取得

func (VPCRouter) GetCreatedAt

func (p VPCRouter) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (VPCRouter) GetDescription

func (p VPCRouter) GetDescription() string

GetDescription 説明 取得

func (VPCRouter) GetFirstInterface

func (p VPCRouter) GetFirstInterface() *Interface

GetFirstInterface インターフェース(NIC)配列の先頭要素を返す

func (VPCRouter) GetIcon

func (p VPCRouter) GetIcon() *Icon

GetIcon アイコンを取得

func (VPCRouter) GetIconID

func (p VPCRouter) GetIconID() ID

GetIconID アイコンIDを取得

func (VPCRouter) GetIconStrID

func (p VPCRouter) GetIconStrID() string

GetIconStrID アイコンID(文字列)を取得

func (VPCRouter) GetInstance

func (p VPCRouter) GetInstance() *Instance

GetInstance インスタンス 取得

func (VPCRouter) GetInstanceBeforeStatus

func (p VPCRouter) GetInstanceBeforeStatus() string

GetInstanceBeforeStatus 以前のステータス 取得

func (VPCRouter) GetInstanceStatus

func (p VPCRouter) GetInstanceStatus() string

GetInstanceStatus ステータス 取得

func (VPCRouter) GetInterfaces

func (p VPCRouter) GetInterfaces() []Interface

GetInterfaces インターフェース(NIC)配列 取得

func (VPCRouter) GetMaintenanceInfoURL

func (p VPCRouter) GetMaintenanceInfoURL() string

GetMaintenanceInfoURL メンテナンス情報 URL取得

func (VPCRouter) GetName

func (p VPCRouter) GetName() string

GetName 名称 取得

func (VPCRouter) GetPlanID

func (p VPCRouter) GetPlanID() ID

GetPlanID プランID 取得

func (VPCRouter) GetServiceClass

func (p VPCRouter) GetServiceClass() string

GetServiceClass サービスクラス 取得

func (VPCRouter) GetStrPlanID

func (p VPCRouter) GetStrPlanID() string

GetStrPlanID プランID(文字列) 取得

func (VPCRouter) GetSwitch

func (p VPCRouter) GetSwitch() *Switch

GetSwitch スイッチ 取得

func (VPCRouter) GetTags

func (p VPCRouter) GetTags() []string

GetTags タグ取得

func (*VPCRouter) HasDHCPServer

func (v *VPCRouter) HasDHCPServer() bool

HasDHCPServer DHCPサーバー設定を保持しているか

func (*VPCRouter) HasDHCPStaticMapping

func (v *VPCRouter) HasDHCPStaticMapping() bool

HasDHCPStaticMapping DHCPスタティックマッピング設定を保持しているか

func (*VPCRouter) HasFirewall

func (v *VPCRouter) HasFirewall() bool

HasFirewall ファイアウォール設定を保持しているか

func (VPCRouter) HasIcon

func (p VPCRouter) HasIcon() bool

HasIcon アイコンがセットされているか

func (*VPCRouter) HasInterfaces

func (v *VPCRouter) HasInterfaces() bool

HasInterfaces NIC設定を保持しているか

func (*VPCRouter) HasL2TPIPsecServer

func (v *VPCRouter) HasL2TPIPsecServer() bool

HasL2TPIPsecServer L2TP/IPSecサーバを保持しているか

func (*VPCRouter) HasPPTPServer

func (v *VPCRouter) HasPPTPServer() bool

HasPPTPServer PPTPサーバを保持しているか

func (*VPCRouter) HasPortForwarding

func (v *VPCRouter) HasPortForwarding() bool

HasPortForwarding ポートフォワーディング設定を保持しているか

func (*VPCRouter) HasRemoteAccessUsers

func (v *VPCRouter) HasRemoteAccessUsers() bool

HasRemoteAccessUsers リモートアクセスユーザー設定を保持しているか

func (*VPCRouter) HasSetting

func (v *VPCRouter) HasSetting() bool

HasSetting VPCルータ設定を保持しているか

func (*VPCRouter) HasSiteToSiteIPsecVPN

func (v *VPCRouter) HasSiteToSiteIPsecVPN() bool

HasSiteToSiteIPsecVPN サイト間VPN設定を保持しているか

func (*VPCRouter) HasStaticNAT

func (v *VPCRouter) HasStaticNAT() bool

HasStaticNAT スタティックNAT設定を保持しているか

func (*VPCRouter) HasStaticRoutes

func (v *VPCRouter) HasStaticRoutes() bool

HasStaticRoutes スタティックルートを保持しているか

func (VPCRouter) HasTag

func (p VPCRouter) HasTag(target string) bool

HasTag 指定のタグを持っているか判定

func (*VPCRouter) IPAddress1 added in v1.10.0

func (v *VPCRouter) IPAddress1() string

IPAddress1 1番目(0番目)のNICのIPアドレス1

func (*VPCRouter) IPAddress1At added in v1.10.0

func (v *VPCRouter) IPAddress1At(index int) string

IPAddress1At 指定インデックスのNICのIPアドレス1

func (*VPCRouter) IPAddress2 added in v1.10.0

func (v *VPCRouter) IPAddress2() string

IPAddress2 1番目(0番目)のNICのIPアドレス2

func (*VPCRouter) IPAddress2At added in v1.10.0

func (v *VPCRouter) IPAddress2At(index int) string

IPAddress2At 指定インデックスのNICのIPアドレス2

func (*VPCRouter) InitVPCRouterSetting

func (v *VPCRouter) InitVPCRouterSetting()

InitVPCRouterSetting VPCルーター設定初期化

func (VPCRouter) IsAvailable

func (p VPCRouter) IsAvailable() bool

IsAvailable 有効状態が"有効"か判定

func (VPCRouter) IsDown

func (p VPCRouter) IsDown() bool

IsDown インスタンスがダウンしているか確認

func (VPCRouter) IsFailed

func (p VPCRouter) IsFailed() bool

IsFailed 有効状態が"失敗"か判定

func (*VPCRouter) IsHighSpec4000MbpsPlan added in v1.30.0

func (v *VPCRouter) IsHighSpec4000MbpsPlan() bool

IsHighSpec4000MbpsPlan ハイスペック4000Mbpsプランか判定

func (*VPCRouter) IsHighSpecPlan

func (v *VPCRouter) IsHighSpecPlan() bool

IsHighSpecPlan ハイスペックプランか判定

func (VPCRouter) IsMigrating

func (p VPCRouter) IsMigrating() bool

IsMigrating 有効状態が"マイグレーション中"か判定

func (*VPCRouter) IsPremiumPlan

func (v *VPCRouter) IsPremiumPlan() bool

IsPremiumPlan プレミアムプランか判定

func (*VPCRouter) IsStandardPlan

func (v *VPCRouter) IsStandardPlan() bool

IsStandardPlan スタンダードプランか判定

func (VPCRouter) IsUp

func (p VPCRouter) IsUp() bool

IsUp インスタンスが起動しているか判定

func (VPCRouter) IsUploading

func (p VPCRouter) IsUploading() bool

IsUploading 有効状態が"アップロード中"か判定

func (VPCRouter) MaintenanceScheduled

func (p VPCRouter) MaintenanceScheduled() bool

MaintenanceScheduled メンテナンス予定の有無

func (*VPCRouter) NetworkMaskLen added in v1.10.0

func (v *VPCRouter) NetworkMaskLen() int

NetworkMaskLen 1番目(0番目)のNICのネットワークマスク長

func (*VPCRouter) NetworkMaskLenAt added in v1.10.0

func (v *VPCRouter) NetworkMaskLenAt(index int) int

NetworkMaskLenAt 指定インデックスのNICのネットワークマスク長

func (*VPCRouter) RealIPAddress

func (v *VPCRouter) RealIPAddress(index int) (string, int)

RealIPAddress プランに応じて外部向けIPアドレスを返す

Standard: IPAddress1 Other: VirtualIPAddress

func (VPCRouter) RemoveTag

func (p VPCRouter) RemoveTag(target string)

RemoveTag 指定のタグを削除

func (VPCRouter) SetDescription

func (p VPCRouter) SetDescription(desc string)

SetDescription 説明 設定

func (*VPCRouter) SetHighSpec4000MbpsPlan added in v1.30.0

func (v *VPCRouter) SetHighSpec4000MbpsPlan(switchID string, virtualIPAddress string, ipAddress1 string, ipAddress2 string, vrid int, ipAliases []string)

SetHighSpec4000MbpsPlan ハイスペックプランへ設定

func (*VPCRouter) SetHighSpecPlan

func (v *VPCRouter) SetHighSpecPlan(switchID string, virtualIPAddress string, ipAddress1 string, ipAddress2 string, vrid int, ipAliases []string)

SetHighSpecPlan ハイスペックプランへ設定

func (VPCRouter) SetIcon

func (p VPCRouter) SetIcon(icon *Icon)

SetIcon 指定のアイコンオブジェクトを設定

func (VPCRouter) SetIconByID

func (p VPCRouter) SetIconByID(id ID)

SetIconByID 指定のアイコンIDを設定

func (VPCRouter) SetName

func (p VPCRouter) SetName(name string)

SetName 名称 設定

func (*VPCRouter) SetPremiumPlan

func (v *VPCRouter) SetPremiumPlan(switchID string, virtualIPAddress string, ipAddress1 string, ipAddress2 string, vrid int, ipAliases []string)

SetPremiumPlan プレミアムプランへ設定

func (*VPCRouter) SetStandardPlan

func (v *VPCRouter) SetStandardPlan()

SetStandardPlan スタンダードプランへ設定

func (VPCRouter) SetSwitch

func (p VPCRouter) SetSwitch(sw *Switch)

SetSwitch スイッチ 設定

func (VPCRouter) SetTags

func (p VPCRouter) SetTags(tags []string)

SetTags タグを設定

func (*VPCRouter) VRID added in v1.10.0

func (v *VPCRouter) VRID() int

VRID VRIDを取得

スタンダードプラン、またはVRIDの参照に失敗した場合は-1を返す

func (*VPCRouter) VirtualIPAddress added in v1.10.0

func (v *VPCRouter) VirtualIPAddress() string

VirtualIPAddress 1番目(0番目)のNICのVIP

func (*VPCRouter) VirtualIPAddressAt added in v1.10.0

func (v *VPCRouter) VirtualIPAddressAt(index int) string

VirtualIPAddressAt 指定インデックスのNICのVIP

func (*VPCRouter) Zone added in v1.10.0

func (v *VPCRouter) Zone() string

Zone スイッチから現在のゾーン名を取得

Note: 共有セグメント接続時は取得不能

type VPCRouterDHCPServer

type VPCRouterDHCPServer struct {
	Config  []*VPCRouterDHCPServerConfig `json:",omitempty"` // DHCPサーバー設定
	Enabled string                       `json:",omitempty"` // 有効/無効
}

VPCRouterDHCPServer DHCPサーバー設定

type VPCRouterDHCPServerConfig

type VPCRouterDHCPServerConfig struct {
	Interface  string   `json:",omitempty"` // 対象NIC
	RangeStart string   `json:",omitempty"` // 割り当て範囲 開始アドレス
	RangeStop  string   `json:",omitempty"` // 割り当て範囲 終了アドレス
	DNSServers []string // 配布するDNSサーバIPアドレスのリスト
}

VPCRouterDHCPServerConfig DHCPサーバー設定

func (*VPCRouterDHCPServerConfig) InterfaceIndex

func (c *VPCRouterDHCPServerConfig) InterfaceIndex() int

InterfaceIndex 対象NICのインデックス

type VPCRouterDHCPStaticMapping

type VPCRouterDHCPStaticMapping struct {
	Config  []*VPCRouterDHCPStaticMappingConfig `json:",omitempty"` // DHCPスタティックマッピング設定
	Enabled string                              `json:",omitempty"` // 有効/無効
}

VPCRouterDHCPStaticMapping DHCPスタティックマッピング設定

type VPCRouterDHCPStaticMappingConfig

type VPCRouterDHCPStaticMappingConfig struct {
	IPAddress  string `json:",omitempty"` // 割り当てIPアドレス
	MACAddress string `json:",omitempty"` // ソースMACアドレス
}

VPCRouterDHCPStaticMappingConfig DHCPスタティックマッピング設定

type VPCRouterFirewall

type VPCRouterFirewall struct {
	Config  []*VPCRouterFirewallSetting // ファイアウォール設定
	Enabled string                      `json:",omitempty"` // 有効/無効
}

VPCRouterFirewall ファイアウォール設定

type VPCRouterFirewallRule

type VPCRouterFirewallRule struct {
	Action             string `json:",omitempty"` // 許可/拒否
	Protocol           string `json:",omitempty"` // プロトコル
	SourceNetwork      string `json:",omitempty"` // 送信元ネットワーク
	SourcePort         string `json:",omitempty"` // 送信元ポート
	DestinationNetwork string `json:",omitempty"` // 宛先ネットワーク
	DestinationPort    string `json:",omitempty"` // 宛先ポート
	Logging            string `json:",omitempty"` // ログ記録
	Description        string `json:",omitempty"` // 説明
}

VPCRouterFirewallRule ファイアウォール ルール

type VPCRouterFirewallSetting

type VPCRouterFirewallSetting struct {
	Receive []*VPCRouterFirewallRule // 受信ルール
	Send    []*VPCRouterFirewallRule // 送信ルール
}

VPCRouterFirewallSetting ファイアウォール設定

type VPCRouterInterface

type VPCRouterInterface struct {
	IPAddress        []string `json:",omitempty"` // IPアドレスリスト
	NetworkMaskLen   int      `json:",omitempty"` // ネットワークマスク長
	VirtualIPAddress string   `json:",omitempty"` // 仮想IPアドレス
	IPAliases        []string `json:",omitempty"` // IPエイリアス
}

VPCRouterInterface NIC設定

type VPCRouterInternetConnection

type VPCRouterInternetConnection struct {
	Enabled string `json:",omitempty"` // 有効/無効
}

VPCRouterInternetConnection インターネット接続

type VPCRouterL2TPIPsecServer

type VPCRouterL2TPIPsecServer struct {
	Config  *VPCRouterL2TPIPsecServerConfig `json:",omitempty"` // L2TP/IPSecサーバー設定
	Enabled string                          `json:",omitempty"` // 有効/無効
}

VPCRouterL2TPIPsecServer L2TP/IPSecサーバー設定

type VPCRouterL2TPIPsecServerConfig

type VPCRouterL2TPIPsecServerConfig struct {
	PreSharedSecret string `json:",omitempty"` // 事前共有シークレット
	RangeStart      string `json:",omitempty"` // 割り当て範囲 開始IPアドレス
	RangeStop       string `json:",omitempty"` // 割り当て範囲 終了IPアドレス
}

VPCRouterL2TPIPsecServerConfig L2TP/IPSecサーバー設定

type VPCRouterPPTPServer

type VPCRouterPPTPServer struct {
	Config  *VPCRouterPPTPServerConfig `json:",omitempty"` // PPTPサーバー設定
	Enabled string                     `json:",omitempty"` // 有効/無効
}

VPCRouterPPTPServer PPTPサーバー設定

type VPCRouterPPTPServerConfig

type VPCRouterPPTPServerConfig struct {
	RangeStart string `json:",omitempty"` // 割り当て範囲 開始IPアドレス
	RangeStop  string `json:",omitempty"` // 割り当て範囲 終了IPアドレス
}

VPCRouterPPTPServerConfig PPTPサーバー設定

type VPCRouterPortForwarding

type VPCRouterPortForwarding struct {
	Config  []*VPCRouterPortForwardingConfig `json:",omitempty"` // ポートフォワーディング設定
	Enabled string                           `json:",omitempty"` // 有効/無効
}

VPCRouterPortForwarding ポートフォワーディング設定

type VPCRouterPortForwardingConfig

type VPCRouterPortForwardingConfig struct {
	Protocol       string `json:",omitempty"` // プロトコル(tcp/udp)
	GlobalPort     string `json:",omitempty"` // グローバル側ポート
	PrivateAddress string `json:",omitempty"` // プライベートIPアドレス
	PrivatePort    string `json:",omitempty"` // プライベート側ポート
	Description    string `json:",omitempty"` // 説明
}

VPCRouterPortForwardingConfig ポートフォワーディング設定

type VPCRouterRemark

type VPCRouterRemark struct {
	*ApplianceRemarkBase
}

VPCRouterRemark リマーク

type VPCRouterRemoteAccessUsers

type VPCRouterRemoteAccessUsers struct {
	Config  []*VPCRouterRemoteAccessUsersConfig `json:",omitempty"` // リモートアクセスユーザー設定
	Enabled string                              `json:",omitempty"` // 有効/無効
}

VPCRouterRemoteAccessUsers リモートアクセスユーザー設定

type VPCRouterRemoteAccessUsersConfig

type VPCRouterRemoteAccessUsersConfig struct {
	UserName string `json:",omitempty"` // ユーザー名
	Password string `json:",omitempty"` // パスワード
}

VPCRouterRemoteAccessUsersConfig リモートアクセスユーザー設定

type VPCRouterSetting

type VPCRouterSetting struct {
	Interfaces         []*VPCRouterInterface        `json:",omitempty"` // NIC設定
	StaticNAT          *VPCRouterStaticNAT          `json:",omitempty"` // スタティックNAT設定
	PortForwarding     *VPCRouterPortForwarding     `json:",omitempty"` // ポートフォワーディング設定
	Firewall           *VPCRouterFirewall           `json:",omitempty"` // ファイアウォール設定
	DHCPServer         *VPCRouterDHCPServer         `json:",omitempty"` // DHCPサーバー設定
	DHCPStaticMapping  *VPCRouterDHCPStaticMapping  `json:",omitempty"` // DHCPスタティックマッピング設定
	L2TPIPsecServer    *VPCRouterL2TPIPsecServer    `json:",omitempty"` // L2TP/IPSecサーバー設定
	PPTPServer         *VPCRouterPPTPServer         `json:",omitempty"` // PPTPサーバー設定
	RemoteAccessUsers  *VPCRouterRemoteAccessUsers  `json:",omitempty"` // リモートアクセスユーザー設定
	SiteToSiteIPsecVPN *VPCRouterSiteToSiteIPsecVPN `json:",omitempty"` // サイト間VPN設定
	StaticRoutes       *VPCRouterStaticRoutes       `json:",omitempty"` // スタティックルート設定
	InternetConnection *VPCRouterInternetConnection `json:",omitempty"` // インターネット接続
	VRID               *int                         `json:",omitempty"` // VRID
	SyslogHost         string                       `json:",omitempty"` // syslog転送先ホスト

}

VPCRouterSetting VPCルーター設定

func (*VPCRouterSetting) AddDHCPServer

func (s *VPCRouterSetting) AddDHCPServer(nicIndex int, rangeStart string, rangeStop string, dnsServers ...string) (int, *VPCRouterDHCPServerConfig)

AddDHCPServer DHCPサーバー設定追加

func (*VPCRouterSetting) AddDHCPStaticMapping

func (s *VPCRouterSetting) AddDHCPStaticMapping(ipAddress string, macAddress string) (int, *VPCRouterDHCPStaticMappingConfig)

AddDHCPStaticMapping DHCPスタティックマッピング設定追加

func (*VPCRouterSetting) AddFirewallRuleReceive

func (s *VPCRouterSetting) AddFirewallRuleReceive(ifIndex int, isAllow bool, protocol string,
	sourceNetwork string, sourcePort string, destNetwork string, destPort string, logging bool, description string) (int, *VPCRouterFirewallRule)

AddFirewallRuleReceive 受信ルール 追加

func (*VPCRouterSetting) AddFirewallRuleSend

func (s *VPCRouterSetting) AddFirewallRuleSend(ifIndex int, isAllow bool, protocol string,
	sourceNetwork string, sourcePort string, destNetwork string, destPort string,
	logging bool, description string) (int, *VPCRouterFirewallRule)

AddFirewallRuleSend 送信ルール 追加

func (*VPCRouterSetting) AddInterface

func (s *VPCRouterSetting) AddInterface(vip string, ipaddress []string, maskLen int)

AddInterface NIC追加

func (*VPCRouterSetting) AddPortForwarding

func (s *VPCRouterSetting) AddPortForwarding(protocol string, globalPort string, privateAddress string,
	privatePort string, description string) (int, *VPCRouterPortForwardingConfig)

AddPortForwarding ポートフォワーディング 追加

func (*VPCRouterSetting) AddRemoteAccessUser

func (s *VPCRouterSetting) AddRemoteAccessUser(userName string, password string) (int, *VPCRouterRemoteAccessUsersConfig)

AddRemoteAccessUser リモートアクセスユーザー設定 追加

func (*VPCRouterSetting) AddSiteToSiteIPsecVPN

func (s *VPCRouterSetting) AddSiteToSiteIPsecVPN(localPrefix []string, peer string,
	preSharedSecret string, remoteID string, routes []string) (int, *VPCRouterSiteToSiteIPsecVPNConfig)

AddSiteToSiteIPsecVPN サイト間VPN設定 追加

func (*VPCRouterSetting) AddStaticNAT

func (s *VPCRouterSetting) AddStaticNAT(globalAddress string, privateAddress string, description string) (int, *VPCRouterStaticNATConfig)

AddStaticNAT スタティックNAT設定 追加

func (*VPCRouterSetting) AddStaticRoute

func (s *VPCRouterSetting) AddStaticRoute(prefix string, nextHop string) (int, *VPCRouterStaticRoutesConfig)

AddStaticRoute スタティックルート設定 追加

func (*VPCRouterSetting) DisableL2TPIPsecServer

func (s *VPCRouterSetting) DisableL2TPIPsecServer()

DisableL2TPIPsecServer L2TP/IPSecサーバー設定 無効化

func (*VPCRouterSetting) DisablePPTPServer

func (s *VPCRouterSetting) DisablePPTPServer()

DisablePPTPServer PPTPサーバー設定 無効化

func (*VPCRouterSetting) EnableL2TPIPsecServer

func (s *VPCRouterSetting) EnableL2TPIPsecServer(preSharedSecret string, rangeStart string, rangeStop string)

EnableL2TPIPsecServer L2TP/IPSecサーバー設定 有効化

func (*VPCRouterSetting) EnablePPTPServer

func (s *VPCRouterSetting) EnablePPTPServer(rangeStart string, rangeStop string)

EnablePPTPServer PPTPサーバー設定 有効化

func (*VPCRouterSetting) FindBelongsDHCPServer

func (s *VPCRouterSetting) FindBelongsDHCPServer(ip net.IP) (int, *VPCRouterDHCPServerConfig)

FindBelongsDHCPServer 指定のIPアドレスが所属するIPレンジを持つをDHCPサーバを検索

func (*VPCRouterSetting) FindDHCPServer

func (s *VPCRouterSetting) FindDHCPServer(nicIndex int) (int, *VPCRouterDHCPServerConfig)

FindDHCPServer DHCPサーバー設定 検索

func (*VPCRouterSetting) FindDHCPServerAt

func (s *VPCRouterSetting) FindDHCPServerAt(nicIndex int) (int, *VPCRouterDHCPServerConfig)

FindDHCPServerAt DHCPサーバー設定 検索

func (*VPCRouterSetting) FindDHCPStaticMapping

func (s *VPCRouterSetting) FindDHCPStaticMapping(ipAddress string, macAddress string) (int, *VPCRouterDHCPStaticMappingConfig)

FindDHCPStaticMapping DHCPスタティックマッピング設定 検索

func (*VPCRouterSetting) FindFirewallRuleReceive

func (s *VPCRouterSetting) FindFirewallRuleReceive(ifIndex int, isAllow bool, protocol string,
	sourceNetwork string, sourcePort string, destNetwork string, destPort string) (int, *VPCRouterFirewallRule)

FindFirewallRuleReceive 受信ルール 検索

func (*VPCRouterSetting) FindFirewallRuleSend

func (s *VPCRouterSetting) FindFirewallRuleSend(ifIndex int, isAllow bool, protocol string,
	sourceNetwork string, sourcePort string, destNetwork string, destPort string) (int, *VPCRouterFirewallRule)

FindFirewallRuleSend 送信ルール 検索

func (*VPCRouterSetting) FindPortForwarding

func (s *VPCRouterSetting) FindPortForwarding(protocol string, globalPort string,
	privateAddress string, privatePort string) (int, *VPCRouterPortForwardingConfig)

FindPortForwarding ポートフォワーディング検索

func (*VPCRouterSetting) FindRemoteAccessUser

func (s *VPCRouterSetting) FindRemoteAccessUser(userName string, password string) (int, *VPCRouterRemoteAccessUsersConfig)

FindRemoteAccessUser リモートアクセスユーザー設定 検索

func (*VPCRouterSetting) FindSiteToSiteIPsecVPN

func (s *VPCRouterSetting) FindSiteToSiteIPsecVPN(localPrefix []string, peer string,
	preSharedSecret string, remoteID string, routes []string) (int, *VPCRouterSiteToSiteIPsecVPNConfig)

FindSiteToSiteIPsecVPN サイト間VPC設定 検索

func (*VPCRouterSetting) FindStaticNAT

func (s *VPCRouterSetting) FindStaticNAT(globalAddress string, privateAddress string) (int, *VPCRouterStaticNATConfig)

FindStaticNAT スタティックNAT設定検索

func (*VPCRouterSetting) FindStaticRoute

func (s *VPCRouterSetting) FindStaticRoute(prefix string, nextHop string) (int, *VPCRouterStaticRoutesConfig)

FindStaticRoute スタティックルート設定 検索

func (*VPCRouterSetting) HasDHCPServer

func (s *VPCRouterSetting) HasDHCPServer() bool

HasDHCPServer DHCPサーバー設定を保持しているか

func (*VPCRouterSetting) HasDHCPStaticMapping

func (s *VPCRouterSetting) HasDHCPStaticMapping() bool

HasDHCPStaticMapping DHCPスタティックマッピング設定を保持しているか

func (*VPCRouterSetting) HasFirewall

func (s *VPCRouterSetting) HasFirewall() bool

HasFirewall ファイアウォール設定を保持しているか

func (*VPCRouterSetting) HasInterfaces

func (s *VPCRouterSetting) HasInterfaces() bool

HasInterfaces NIC設定を保持しているか

func (*VPCRouterSetting) HasL2TPIPsecServer

func (s *VPCRouterSetting) HasL2TPIPsecServer() bool

HasL2TPIPsecServer L2TP/IPSecサーバを保持しているか

func (*VPCRouterSetting) HasPPTPServer

func (s *VPCRouterSetting) HasPPTPServer() bool

HasPPTPServer PPTPサーバを保持しているか

func (*VPCRouterSetting) HasPortForwarding

func (s *VPCRouterSetting) HasPortForwarding() bool

HasPortForwarding ポートフォワーディング設定を保持しているか

func (*VPCRouterSetting) HasRemoteAccessUsers

func (s *VPCRouterSetting) HasRemoteAccessUsers() bool

HasRemoteAccessUsers リモートアクセスユーザー設定を保持しているか

func (*VPCRouterSetting) HasSiteToSiteIPsecVPN

func (s *VPCRouterSetting) HasSiteToSiteIPsecVPN() bool

HasSiteToSiteIPsecVPN サイト間VPN設定を保持しているか

func (*VPCRouterSetting) HasStaticNAT

func (s *VPCRouterSetting) HasStaticNAT() bool

HasStaticNAT スタティックNAT設定を保持しているか

func (*VPCRouterSetting) HasStaticRoutes

func (s *VPCRouterSetting) HasStaticRoutes() bool

HasStaticRoutes スタティックルートを保持しているか

func (*VPCRouterSetting) RemoveDHCPServer

func (s *VPCRouterSetting) RemoveDHCPServer(nicIndex int)

RemoveDHCPServer DHCPサーバー設定削除

func (*VPCRouterSetting) RemoveDHCPServerAt

func (s *VPCRouterSetting) RemoveDHCPServerAt(nicIndex int)

RemoveDHCPServerAt DHCPサーバー設定削除

func (*VPCRouterSetting) RemoveDHCPStaticMapping

func (s *VPCRouterSetting) RemoveDHCPStaticMapping(ipAddress string, macAddress string)

RemoveDHCPStaticMapping DHCPスタティックマッピング設定 削除

func (*VPCRouterSetting) RemoveDHCPStaticMappingAt

func (s *VPCRouterSetting) RemoveDHCPStaticMappingAt(index int)

RemoveDHCPStaticMappingAt DHCPスタティックマッピング設定 削除

func (*VPCRouterSetting) RemoveFirewallRuleReceive

func (s *VPCRouterSetting) RemoveFirewallRuleReceive(ifIndex int, isAllow bool, protocol string, sourceNetwork string, sourcePort string, destNetwork string, destPort string)

RemoveFirewallRuleReceive 受信ルール 削除

func (*VPCRouterSetting) RemoveFirewallRuleReceiveAt

func (s *VPCRouterSetting) RemoveFirewallRuleReceiveAt(ifIndex int, index int)

RemoveFirewallRuleReceiveAt 指定位置の受信ルールを削除

func (*VPCRouterSetting) RemoveFirewallRuleSend

func (s *VPCRouterSetting) RemoveFirewallRuleSend(ifIndex int, isAllow bool, protocol string, sourceNetwork string, sourcePort string, destNetwork string, destPort string)

RemoveFirewallRuleSend 送信ルール 削除

func (*VPCRouterSetting) RemoveFirewallRuleSendAt

func (s *VPCRouterSetting) RemoveFirewallRuleSendAt(ifIndex int, index int)

RemoveFirewallRuleSendAt 指定位置の送信ルールを削除

func (*VPCRouterSetting) RemovePortForwarding

func (s *VPCRouterSetting) RemovePortForwarding(protocol string, globalPort string, privateAddress string, privatePort string)

RemovePortForwarding ポートフォワーディング 削除

func (*VPCRouterSetting) RemovePortForwardingAt

func (s *VPCRouterSetting) RemovePortForwardingAt(index int)

RemovePortForwardingAt ポートフォワーディング 削除

func (*VPCRouterSetting) RemoveRemoteAccessUser

func (s *VPCRouterSetting) RemoveRemoteAccessUser(userName string, password string)

RemoveRemoteAccessUser リモートアクセスユーザー設定 削除

func (*VPCRouterSetting) RemoveRemoteAccessUserAt

func (s *VPCRouterSetting) RemoveRemoteAccessUserAt(index int)

RemoveRemoteAccessUserAt リモートアクセスユーザー設定 削除

func (*VPCRouterSetting) RemoveSiteToSiteIPsecVPN

func (s *VPCRouterSetting) RemoveSiteToSiteIPsecVPN(localPrefix []string, peer string, preSharedSecret string, remoteID string, routes []string)

RemoveSiteToSiteIPsecVPN サイト間VPN設定 削除

func (*VPCRouterSetting) RemoveSiteToSiteIPsecVPNAt

func (s *VPCRouterSetting) RemoveSiteToSiteIPsecVPNAt(index int)

RemoveSiteToSiteIPsecVPNAt サイト間VPN設定 削除

func (*VPCRouterSetting) RemoveStaticNAT

func (s *VPCRouterSetting) RemoveStaticNAT(globalAddress string, privateAddress string)

RemoveStaticNAT スタティックNAT設定 削除

func (*VPCRouterSetting) RemoveStaticNATAt

func (s *VPCRouterSetting) RemoveStaticNATAt(index int)

RemoveStaticNATAt スタティックNAT設定 削除

func (*VPCRouterSetting) RemoveStaticRoute

func (s *VPCRouterSetting) RemoveStaticRoute(prefix string, nextHop string)

RemoveStaticRoute スタティックルート設定 削除

func (*VPCRouterSetting) RemoveStaticRouteAt

func (s *VPCRouterSetting) RemoveStaticRouteAt(index int)

RemoveStaticRouteAt スタティックルート設定 削除

func (*VPCRouterSetting) SetInternetConnection

func (s *VPCRouterSetting) SetInternetConnection(enabled bool)

SetInternetConnection インターネット接続 有効/無効 設定

type VPCRouterSettings

type VPCRouterSettings struct {
	Router *VPCRouterSetting `json:",omitempty"` // VPCルーター設定
}

VPCRouterSettings VPCルーター設定リスト

type VPCRouterSiteToSiteIPsecVPN

type VPCRouterSiteToSiteIPsecVPN struct {
	Config  []*VPCRouterSiteToSiteIPsecVPNConfig `json:",omitempty"` // サイト間VPC設定
	Enabled string                               `json:",omitempty"` // 有効/無効
}

VPCRouterSiteToSiteIPsecVPN サイト間VPN設定

type VPCRouterSiteToSiteIPsecVPNConfig

type VPCRouterSiteToSiteIPsecVPNConfig struct {
	LocalPrefix     []string `json:",omitempty"` // ローカルプレフィックス リスト
	Peer            string   `json:",omitempty"` // 対向IPアドレス
	PreSharedSecret string   `json:",omitempty"` // 事前共有シークレット
	RemoteID        string   `json:",omitempty"` // 対向ID
	Routes          []string `json:",omitempty"` // 対向プレフィックス リスト
}

VPCRouterSiteToSiteIPsecVPNConfig サイト間VPN設定

type VPCRouterStaticNAT

type VPCRouterStaticNAT struct {
	Config  []*VPCRouterStaticNATConfig `json:",omitempty"` // スタティックNAT設定
	Enabled string                      `json:",omitempty"` // 有効/無効
}

VPCRouterStaticNAT スタティックNAT設定

type VPCRouterStaticNATConfig

type VPCRouterStaticNATConfig struct {
	GlobalAddress  string `json:",omitempty"` // グローバルIPアドレス
	PrivateAddress string `json:",omitempty"` // プライベートIPアドレス
	Description    string `json:",omitempty"` // 説明
}

VPCRouterStaticNATConfig スタティックNAT設定

type VPCRouterStaticRoutes

type VPCRouterStaticRoutes struct {
	Config  []*VPCRouterStaticRoutesConfig `json:",omitempty"` // スタティックルート設定
	Enabled string                         `json:",omitempty"` // 有効/無効
}

VPCRouterStaticRoutes スタティックルート設定

type VPCRouterStaticRoutesConfig

type VPCRouterStaticRoutesConfig struct {
	Prefix  string `json:",omitempty"` // プレフィックス
	NextHop string `json:",omitempty"` // ネクストホップ
}

VPCRouterStaticRoutesConfig スタティックルート設定

type VPCRouterStatus

type VPCRouterStatus struct {
	FirewallReceiveLogs []string
	FirewallSendLogs    []string
	VPNLogs             []string
	SessionCount        int
	DHCPServerLeases    []struct {
		IPAddress  string
		MACAddress string
	}
	L2TPIPsecServerSessions []struct {
		User      string
		IPAddress string
		TimeSec   int
	}
	PPTPServerSessions []struct {
		User      string
		IPAddress string
		TimeSec   int
	}
	SiteToSiteIPsecVPNPeers []struct {
		Status string
		Peer   string
	}
}

VPCRouterStatus VPCルータのステータス情報

type WebAccelCert

type WebAccelCert struct {
	ID               ID     `json:",omitempty"`
	SiteID           ID     `json:",omitempty"`
	CertificateChain string `json:",omitempty"`
	Key              string `json:",omitempty"`

	SerialNumber string `json:",omitempty"`
	NotBefore    int64  `json:",omitempty"`
	NotAfter     int64  `json:",omitempty"`
	Issuer       *struct {
		Country            string `json:",omitempty"`
		Organization       string `json:",omitempty"`
		OrganizationalUnit string `json:",omitempty"`
		CommonName         string `json:",omitempty"`
	} `json:",omitempty"`
	Subject *struct {
		Country            string `json:",omitempty"`
		Organization       string `json:",omitempty"`
		OrganizationalUnit string `json:",omitempty"`
		Locality           string `json:",omitempty"`
		Province           string `json:",omitempty"`
		StreetAddress      string `json:",omitempty"`
		PostalCode         string `json:",omitempty"`
		SerialNumber       string `json:",omitempty"`
		CommonName         string `json:",omitempty"`
	} `json:",omitempty"`
	DNSNames          []string `json:",omitempty"`
	SHA256Fingerprint string   `json:",omitempty"`
	// contains filtered or unexported fields
}

WebAccelCert ウェブアクセラレータ証明書

func (*WebAccelCert) GetCreatedAt

func (p *WebAccelCert) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*WebAccelCert) GetID

func (n *WebAccelCert) GetID() ID

GetID ID 取得

func (*WebAccelCert) GetModifiedAt

func (p *WebAccelCert) GetModifiedAt() *time.Time

GetModifiedAt 変更日時 取得

func (*WebAccelCert) GetStrID

func (n *WebAccelCert) GetStrID() string

GetStrID 文字列でID取得

func (*WebAccelCert) SetID

func (n *WebAccelCert) SetID(id ID)

SetID ID 設定

type WebAccelCertRequest

type WebAccelCertRequest struct {
	CertificateChain string
	Key              string `json:",omitempty"`
}

WebAccelCertRequest ウェブアクセラレータ証明書API リクエスト

type WebAccelCertResponse

type WebAccelCertResponse struct {
	Certificate *WebAccelCertResponseBody `json:",omitempty"`
	IsOk        bool                      `json:"is_ok,omitempty"` // is_ok項目
}

WebAccelCertResponse ウェブアクセラレータ証明書API レスポンス

func (*WebAccelCertResponse) UnmarshalJSON

func (s *WebAccelCertResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(配列、オブジェクトが混在するためここで対応)

type WebAccelCertResponseBody

type WebAccelCertResponseBody struct {
	Current *WebAccelCert   `json:",omitempty"`
	Old     []*WebAccelCert `json:",omitempty"`
}

WebAccelCertResponseBody ウェブアクセラレータ証明書API レスポンスボディ

func (*WebAccelCertResponseBody) UnmarshalJSON

func (s *WebAccelCertResponseBody) UnmarshalJSON(data []byte) error

UnmarshalJSON JSONアンマーシャル(配列、オブジェクトが混在するためここで対応)

type WebAccelSite

type WebAccelSite struct {
	ID                 ID                  // ID
	Name               string              `json:",omitempty"`
	DomainType         EWebAccelDomainType `json:",omitempty"`
	Domain             string              `json:",omitempty"`
	Subdomain          string              `json:",omitempty"`
	ASCIIDomain        string              `json:",omitempty"`
	Origin             string              `json:",omitempty"`
	HostHeader         string
	Status             EWebAccelStatus `json:",omitempty"`
	HasCertificate     bool            `json:",omitempty"`
	HasOldCertificate  bool            `json:",omitempty"`
	GibSentInLastWeek  int64           `json:",omitempty"`
	CertValidNotBefore int64           `json:",omitempty"`
	CertValidNotAfter  int64           `json:",omitempty"`
	// contains filtered or unexported fields
}

WebAccelSite ウェブアクセラレータ サイト

func (*WebAccelSite) GetCreatedAt

func (p *WebAccelSite) GetCreatedAt() *time.Time

GetCreatedAt 作成日時 取得

func (*WebAccelSite) GetID

func (n *WebAccelSite) GetID() ID

GetID ID 取得

func (*WebAccelSite) GetName

func (n *WebAccelSite) GetName() string

GetName 名称取得

func (*WebAccelSite) GetStrID

func (n *WebAccelSite) GetStrID() string

GetStrID 文字列でID取得

func (*WebAccelSite) SetID

func (n *WebAccelSite) SetID(id ID)

SetID ID 設定

func (*WebAccelSite) SetName

func (n *WebAccelSite) SetName(name string)

SetName 名称取得

type Zone

type Zone struct {
	*Resource // ID

	IsDummy bool `json:",omitempty"` // IsDummy ダミーフラグ

	VNCProxy struct {
		HostName  string `json:",omitempty"` // HostName ホスト名
		IPAddress string `json:",omitempty"` // IPAddress IPアドレス
	} `json:",omitempty"`

	FTPServer struct {
		HostName  string `json:",omitempty"` // HostName ホスト名
		IPAddress string `json:",omitempty"` // IPAddress IPアドレス
	} `json:",omitempty"`
	// contains filtered or unexported fields
}

Zone ゾーン

func (*Zone) GetDescription

func (p *Zone) GetDescription() string

GetDescription 説明 取得

func (*Zone) GetFTPHostName

func (z *Zone) GetFTPHostName() string

GetFTPHostName FTPサーバーホスト名 取得

func (*Zone) GetFTPServerIPAddress

func (z *Zone) GetFTPServerIPAddress() string

GetFTPServerIPAddress FTPサーバーIPアドレス 取得

func (*Zone) GetName

func (p *Zone) GetName() string

GetName 名称 取得

func (*Zone) GetRegion

func (p *Zone) GetRegion() *Region

GetRegion リージョン 取得

func (*Zone) GetRegionDescription

func (p *Zone) GetRegionDescription() string

GetRegionDescription リージョン説明 取得

func (*Zone) GetRegionID

func (p *Zone) GetRegionID() ID

GetRegionID リージョンID 取得

func (*Zone) GetRegionName

func (p *Zone) GetRegionName() string

GetRegionName リージョン名 取得

func (*Zone) GetRegionNameServers

func (p *Zone) GetRegionNameServers() []string

GetRegionNameServers リージョンのネームサーバー(のIPアドレス)取得

func (*Zone) GetVNCProxyHostName

func (z *Zone) GetVNCProxyHostName() string

GetVNCProxyHostName VNCプロキシホスト名 取得

func (*Zone) GetVPCProxyIPAddress

func (z *Zone) GetVPCProxyIPAddress() string

GetVPCProxyIPAddress VNCプロキシIPアドレス 取得

func (*Zone) SetDescription

func (p *Zone) SetDescription(desc string)

SetDescription 説明 設定

func (*Zone) SetName

func (p *Zone) SetName(name string)

SetName 名称 設定

func (*Zone) ZoneIsDummy

func (z *Zone) ZoneIsDummy() bool

ZoneIsDummy ダミーフラグ 取得

Source Files

Directories

Path Synopsis
Package ostype is define OS type of SakuraCloud public archive
Package ostype is define OS type of SakuraCloud public archive

Jump to

Keyboard shortcuts

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