region

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Region_name = map[int32]string{}/* 125 elements not displayed */

	Region_value = map[string]int32{}/* 125 elements not displayed */

)

Enum value maps for Region.

View Source
var File_region_v1beta1_region_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Region

type Region int32

Region enumerates the clouds and regions that are available to Ensign in order to ensure region identification and serialiation is as small a data type as possible. Region codes are generally broken into parts: the first digit represents the cloud, e.g. a region code that starts with 1 is Linode. The second series of three digits represents the country, e.g. USA is 840 in the ISO 3166 standard. The three digits represents the zone of the datacenter, and is usually cloud specific. NOTE: this guide to the enumeration representation is generally about making the definition easier to see and parse; but the exact information of the region should be looked up using the RegionInfo struct.

const (
	Region_UNKNOWN Region = 0
	// Regions 1-999 are reserved for staging and development regions.
	Region_STG_LKE_US_EAST_1A Region = 1
	// Linode Regions
	Region_LKE_AP_WEST_1A      Region = 1356000
	Region_LKE_CA_CENTRAL_1A   Region = 1124010
	Region_LKE_AP_SOUTHEAST_1A Region = 1036020
	Region_LKE_US_CENTRAL_1A   Region = 1840030
	Region_LKE_US_WEST_1A      Region = 1840040
	Region_LKE_US_SOUTHEAST_1A Region = 1840050
	Region_LKE_US_EAST_1A      Region = 1840060
	Region_LKE_EU_WEST_1A      Region = 1826070
	Region_LKE_AP_SOUTH_1A     Region = 1702080
	Region_LKE_EU_CENTRAL_1A   Region = 1276090
	Region_LKE_AP_NORTHEAST_1A Region = 1392100
	// Google Cloud Regions
	Region_GCP_ASIA_EAST_1A              Region = 2158001
	Region_GCP_ASIA_EAST_1B              Region = 2158002
	Region_GCP_ASIA_EAST_1C              Region = 2158003
	Region_GCP_ASIA_EAST_2A              Region = 2344010
	Region_GCP_ASIA_EAST_2B              Region = 2344011
	Region_GCP_ASIA_EAST_2C              Region = 2344012
	Region_GCP_ASIA_NORTHEAST_1A         Region = 2392020
	Region_GCP_ASIA_NORTHEAST_1B         Region = 2392021
	Region_GCP_ASIA_NORTHEAST_1C         Region = 2392022
	Region_GCP_ASIA_NORTHEAST_2A         Region = 2392030
	Region_GCP_ASIA_NORTHEAST_2B         Region = 2392031
	Region_GCP_ASIA_NORTHEAST_2C         Region = 2392032
	Region_GCP_ASIA_NORTHEAST_3A         Region = 2410040
	Region_GCP_ASIA_NORTHEAST_3B         Region = 2410041
	Region_GCP_ASIA_NORTHEAST_3C         Region = 2410042
	Region_GCP_ASIA_SOUTH_1A             Region = 2356051
	Region_GCP_ASIA_SOUTH_1B             Region = 2356052
	Region_GCP_ASIA_SOUTH_1C             Region = 2356053
	Region_GCP_ASIA_SOUTH_2A             Region = 2356061
	Region_GCP_ASIA_SOUTH_2B             Region = 2356062
	Region_GCP_ASIA_SOUTH_2C             Region = 2356063
	Region_GCP_ASIA_SOUTHEAST_1A         Region = 2702070
	Region_GCP_ASIA_SOUTHEAST_1B         Region = 2702071
	Region_GCP_ASIA_SOUTHEAST_1C         Region = 2702072
	Region_GCP_ASIA_SOUTHEAST_2A         Region = 2360080
	Region_GCP_ASIA_SOUTHEAST_2B         Region = 2360081
	Region_GCP_ASIA_SOUTHEAST_2C         Region = 2360082
	Region_GCP_AUSTRALIA_SOUTHEAST_1A    Region = 2036090
	Region_GCP_AUSTRALIA_SOUTHEAST_1B    Region = 2036091
	Region_GCP_AUSTRALIA_SOUTHEAST_1C    Region = 2036092
	Region_GCP_AUSTRALIA_SOUTHEAST_2A    Region = 2036100
	Region_GCP_AUSTRALIA_SOUTHEAST_2B    Region = 2036101
	Region_GCP_AUSTRALIA_SOUTHEAST_2C    Region = 2036102
	Region_GCP_EUROPE_CENTRAL_2A         Region = 2616110
	Region_GCP_EUROPE_CENTRAL_2B         Region = 2616111
	Region_GCP_EUROPE_CENTRAL_2C         Region = 2616112
	Region_GCP_EUROPE_NORTH_1A           Region = 2246120
	Region_GCP_EUROPE_NORTH_1B           Region = 2246121
	Region_GCP_EUROPE_NORTH_1C           Region = 2246122
	Region_GCP_EUROPE_SOUTHWEST_1A       Region = 2724130
	Region_GCP_EUROPE_SOUTHWEST_1B       Region = 2724131
	Region_GCP_EUROPE_SOUTHWEST_1C       Region = 2724132
	Region_GCP_EUROPE_WEST_1B            Region = 2056141
	Region_GCP_EUROPE_WEST_1C            Region = 2056142
	Region_GCP_EUROPE_WEST_1D            Region = 2056143
	Region_GCP_EUROPE_WEST_12A           Region = 2380150
	Region_GCP_EUROPE_WEST_12B           Region = 2380151
	Region_GCP_EUROPE_WEST_12C           Region = 2380152
	Region_GCP_EUROPE_WEST_2A            Region = 2826160
	Region_GCP_EUROPE_WEST_2B            Region = 2826161
	Region_GCP_EUROPE_WEST_2C            Region = 2826162
	Region_GCP_EUROPE_WEST_3A            Region = 2276170
	Region_GCP_EUROPE_WEST_3B            Region = 2276171
	Region_GCP_EUROPE_WEST_3C            Region = 2276172
	Region_GCP_EUROPE_WEST_4A            Region = 2528180
	Region_GCP_EUROPE_WEST_4B            Region = 2528181
	Region_GCP_EUROPE_WEST_4C            Region = 2528182
	Region_GCP_EUROPE_WEST_6A            Region = 2756190
	Region_GCP_EUROPE_WEST_6B            Region = 2756191
	Region_GCP_EUROPE_WEST_6C            Region = 2756192
	Region_GCP_EUROPE_WEST_8A            Region = 2380200
	Region_GCP_EUROPE_WEST_8B            Region = 2380201
	Region_GCP_EUROPE_WEST_8C            Region = 2380202
	Region_GCP_EUROPE_WEST_9A            Region = 2250210
	Region_GCP_EUROPE_WEST_9B            Region = 2250211
	Region_GCP_EUROPE_WEST_9C            Region = 2250212
	Region_GCP_ME_CENTRAL_1A             Region = 2364220
	Region_GCP_ME_CENTRAL_1B             Region = 2364221
	Region_GCP_ME_CENTRAL_1C             Region = 2364222
	Region_GCP_ME_WEST_1A                Region = 2376230
	Region_GCP_ME_WEST_1B                Region = 2376231
	Region_GCP_ME_WEST_1C                Region = 2376232
	Region_GCP_NORTHAMERICA_NORTHEAST_1A Region = 2124240
	Region_GCP_NORTHAMERICA_NORTHEAST_1B Region = 2124241
	Region_GCP_NORTHAMERICA_NORTHEAST_1C Region = 2124242
	Region_GCP_NORTHAMERICA_NORTHEAST_2A Region = 2124250
	Region_GCP_NORTHAMERICA_NORTHEAST_2B Region = 2124251
	Region_GCP_NORTHAMERICA_NORTHEAST_2C Region = 2124252
	Region_GCP_SOUTHAMERICA_EAST_1A      Region = 2076260
	Region_GCP_SOUTHAMERICA_EAST_1B      Region = 2076261
	Region_GCP_SOUTHAMERICA_EAST_1C      Region = 2076262
	Region_GCP_SOUTHAMERICA_WEST_1A      Region = 2152270
	Region_GCP_SOUTHAMERICA_WEST_1B      Region = 2152271
	Region_GCP_SOUTHAMERICA_WEST_1C      Region = 2152272
	Region_GCP_US_CENTRAL_1A             Region = 2840280
	Region_GCP_US_CENTRAL_1B             Region = 2840281
	Region_GCP_US_CENTRAL_1C             Region = 2840282
	Region_GCP_US_CENTRAL_1F             Region = 2840285
	Region_GCP_US_EAST_1B                Region = 2840291
	Region_GCP_US_EAST_1C                Region = 2840292
	Region_GCP_US_EAST_1D                Region = 2840293
	Region_GCP_US_EAST_4A                Region = 2840300
	Region_GCP_US_EAST_4B                Region = 2840301
	Region_GCP_US_EAST_4C                Region = 2840302
	Region_GCP_US_EAST_5A                Region = 2840310
	Region_GCP_US_EAST_5B                Region = 2840311
	Region_GCP_US_EAST_5C                Region = 2840312
	Region_GCP_US_SOUTH_1A               Region = 2840320
	Region_GCP_US_SOUTH_1B               Region = 2840321
	Region_GCP_US_SOUTH_1C               Region = 2840322
	Region_GCP_US_WEST_1A                Region = 2840330
	Region_GCP_US_WEST_1B                Region = 2840331
	Region_GCP_US_WEST_1C                Region = 2840332
	Region_GCP_US_WEST_2A                Region = 2840340
	Region_GCP_US_WEST_2B                Region = 2840341
	Region_GCP_US_WEST_2C                Region = 2840342
	Region_GCP_US_WEST_3A                Region = 2840350
	Region_GCP_US_WEST_3B                Region = 2840351
	Region_GCP_US_WEST_3C                Region = 2840352
	Region_GCP_US_WEST_4A                Region = 2840360
	Region_GCP_US_WEST_4B                Region = 2840361
	Region_GCP_US_WEST_4C                Region = 2840362
)

func (Region) Descriptor

func (Region) Descriptor() protoreflect.EnumDescriptor

func (Region) Enum

func (x Region) Enum() *Region

func (Region) EnumDescriptor deprecated

func (Region) EnumDescriptor() ([]byte, []int)

Deprecated: Use Region.Descriptor instead.

func (Region) Number

func (x Region) Number() protoreflect.EnumNumber

func (Region) String

func (x Region) String() string

func (Region) Type

func (Region) Type() protoreflect.EnumType

type RegionInfo

type RegionInfo struct {
	Id       Region                 `protobuf:"varint,1,opt,name=id,proto3,enum=region.v1beta1.Region" json:"id,omitempty"`
	Name     string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Country  string                 `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
	Zone     string                 `protobuf:"bytes,4,opt,name=zone,proto3" json:"zone,omitempty"`
	Cloud    string                 `protobuf:"bytes,5,opt,name=cloud,proto3" json:"cloud,omitempty"`
	Cluster  string                 `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`
	Modified *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=modified,proto3" json:"modified,omitempty"`
	Created  *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

Geographic metadata for compliance and region-awareness.

func (*RegionInfo) Descriptor deprecated

func (*RegionInfo) Descriptor() ([]byte, []int)

Deprecated: Use RegionInfo.ProtoReflect.Descriptor instead.

func (*RegionInfo) GetCloud

func (x *RegionInfo) GetCloud() string

func (*RegionInfo) GetCluster

func (x *RegionInfo) GetCluster() string

func (*RegionInfo) GetCountry

func (x *RegionInfo) GetCountry() string

func (*RegionInfo) GetCreated

func (x *RegionInfo) GetCreated() *timestamppb.Timestamp

func (*RegionInfo) GetId

func (x *RegionInfo) GetId() Region

func (*RegionInfo) GetModified

func (x *RegionInfo) GetModified() *timestamppb.Timestamp

func (*RegionInfo) GetName

func (x *RegionInfo) GetName() string

func (*RegionInfo) GetZone

func (x *RegionInfo) GetZone() string

func (*RegionInfo) ProtoMessage

func (*RegionInfo) ProtoMessage()

func (*RegionInfo) ProtoReflect

func (x *RegionInfo) ProtoReflect() protoreflect.Message

func (*RegionInfo) Reset

func (x *RegionInfo) Reset()

func (*RegionInfo) String

func (x *RegionInfo) String() string

Jump to

Keyboard shortcuts

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