meta

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TypeID ID型
	TypeID = Static(types.ID(0))
	// TypeFlag フラグ型(boolean)
	TypeFlag = Static(false)
	// TypeStringFlag 文字列フラグ型
	TypeStringFlag = Static(types.StringFalse)
	// TypeStringNumber 文字列数値型
	TypeStringNumber = Static(types.StringNumber(0))
	// TypeString 文字列
	TypeString = Static("")
	// TypeStringSlice 文字列スライス
	TypeStringSlice = Static([]string{})
	// TypeInt int型
	TypeInt = Static(int(0))
	// TypeIntSlice intスライス
	TypeIntSlice = Static([]int{})
	// TypeInt64 int64型
	TypeInt64 = Static(int64(0))
	// TypeInt64Slice int64スライス
	TypeInt64Slice = Static([]int64{})
	// TypeFloat64 flat64型
	TypeFloat64 = Static(float64(0))
	// TypeTime Time型
	TypeTime = Static(time.Time{})

	// TypeReader io.Reader
	TypeReader = &StaticType{
		goType:       "io.Reader",
		goPkg:        "io",
		goImportPath: "io",
		reflectKind:  reflect.Interface,
	}
	// TypeWriter io.Writer
	TypeWriter = &StaticType{
		goType:       "io.Writer",
		goPkg:        "io",
		goImportPath: "io",
		reflectKind:  reflect.Interface,
	}

	// TypeAvailability 有効状態
	TypeAvailability = Static(types.EAvailability(""))
	// TypeCommitment サーバプランCPUコミットメント
	TypeCommitment = Static(types.ECommitment(""))
	// TypeDiskConnection ディスク接続方法
	TypeDiskConnection = Static(types.EDiskConnection(""))
	// TypeInstanceStatus インスタンスステータス
	TypeInstanceStatus = Static(types.EServerInstanceStatus(""))
	// TypeInterfaceDriver インターフェースドライバ
	TypeInterfaceDriver = Static(types.EInterfaceDriver(""))
	// TypePlanGeneration プラン世代
	TypePlanGeneration = Static(types.EPlanGeneration(0))
	// TypeProtocol プロトコル
	TypeProtocol = Static(types.Protocol(""))
	// TypeScope スコープ
	TypeScope = Static(types.EScope(""))

	// TypePacketFilterNetwork パケットフィルタルールでの送信元アドレス/範囲
	TypePacketFilterNetwork = Static(types.PacketFilterNetwork(""))
	// TypePacketFilterPort パケットフィルタルールでのポート
	TypePacketFilterPort = Static(types.PacketFilterPort(""))
	// TypeVPCFirewallNetwork VPCルータのファイアウォールルールでの送信元アドレス/範囲
	TypeVPCFirewallNetwork = Static(types.VPCFirewallNetwork(""))
	// TypeVPCFirewallPort VPCルータのファイアウォールルールでのポート
	TypeVPCFirewallPort = Static(types.VPCFirewallPort(""))
	// TypeAction パケットフィルタルールでのallow/deny動作
	TypeAction = Static(types.Action(""))

	// TypeBackupSpanType 自動バックアップの取得間隔種別
	TypeBackupSpanType = Static(types.EBackupSpanType(""))
	// TypeBackupSpanWeekdays 自動バックアップの取得曜日
	TypeBackupSpanWeekdays = Static([]types.EDayOfTheWeek{})

	// TypeDNSRecordType DNSレコード種別
	TypeDNSRecordType = Static(types.EDNSRecordType(""))

	// TypeSimpleMonitorHealthCheckProtocol シンプル監視 ヘルスチェックプロトコル
	TypeSimpleMonitorHealthCheckProtocol = Static(types.ESimpleMonitorProtocol(""))
)

Functions

This section is empty.

Types

type StaticType

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

StaticType あらかじめ静的参照できる型

func Static

func Static(v interface{}) *StaticType

Static 型情報を受け取りTypeを返す

func (*StaticType) GoImportPath

func (t *StaticType) GoImportPath() string

GoImportPath インポートパス

func (*StaticType) GoPkg

func (t *StaticType) GoPkg() string

GoPkg パッケージ名

func (*StaticType) GoType

func (t *StaticType) GoType() string

GoType 型名

func (*StaticType) GoTypeSourceCode

func (t *StaticType) GoTypeSourceCode() string

GoTypeSourceCode ソースコードでの型表現

func (*StaticType) ToPtrType

func (t *StaticType) ToPtrType() Type

func (*StaticType) ZeroInitializeSourceCode

func (t *StaticType) ZeroInitializeSourceCode() string

ZeroInitializeSourceCode 型に応じたzero値での初期化コード

func (*StaticType) ZeroValueSourceCode

func (t *StaticType) ZeroValueSourceCode() string

ZeroValueSourceCode 型に応じたzero値コード

type Type

type Type interface {
	// GoType 型名
	GoType() string
	// GoPkg パッケージ名
	GoPkg() string
	// GoImportPath インポートパス
	GoImportPath() string
	// GoTypeSourceCode ソースコードでの型表現
	GoTypeSourceCode() string
	// ZeroInitializeSourceCode 型に応じたzero値での初期化コード
	ZeroInitializeSourceCode() string
	// ZeroValueSourceCode 型に応じたzero値コード
	ZeroValueSourceCode() string
	// ToPtrType ポインタ型への変換
	ToPtrType() Type
}

Type 型情報

Jump to

Keyboard shortcuts

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