Documentation ¶
Index ¶
- Variables
- func RegisterVPCServiceServer(s *grpc.Server, srv VPCServiceServer)
- type FWRule
- func (*FWRule) Descriptor() ([]byte, []int)deprecated
- func (x *FWRule) GetCidr() string
- func (x *FWRule) GetMaxPort() int32
- func (x *FWRule) GetMinPort() int32
- func (x *FWRule) GetProto() string
- func (*FWRule) ProtoMessage()
- func (x *FWRule) ProtoReflect() protoreflect.Message
- func (x *FWRule) Reset()
- func (x *FWRule) String() string
- type FWRuleSet
- func (*FWRuleSet) Descriptor() ([]byte, []int)deprecated
- func (x *FWRuleSet) GetDirection() FWRuleSet_Direction
- func (x *FWRuleSet) GetId() string
- func (x *FWRuleSet) GetName() string
- func (x *FWRuleSet) GetRules() []*FWRule
- func (*FWRuleSet) ProtoMessage()
- func (x *FWRuleSet) ProtoReflect() protoreflect.Message
- func (x *FWRuleSet) Reset()
- func (x *FWRuleSet) String() string
- type FWRuleSet_Direction
- func (FWRuleSet_Direction) Descriptor() protoreflect.EnumDescriptor
- func (x FWRuleSet_Direction) Enum() *FWRuleSet_Direction
- func (FWRuleSet_Direction) EnumDescriptor() ([]byte, []int)deprecated
- func (x FWRuleSet_Direction) Number() protoreflect.EnumNumber
- func (x FWRuleSet_Direction) String() string
- func (FWRuleSet_Direction) Type() protoreflect.EnumType
- type InternetGW
- type InternetGWsRespones
- func (*InternetGWsRespones) Descriptor() ([]byte, []int)deprecated
- func (x *InternetGWsRespones) GetInternetGws() []*InternetGW
- func (*InternetGWsRespones) ProtoMessage()
- func (x *InternetGWsRespones) ProtoReflect() protoreflect.Message
- func (x *InternetGWsRespones) Reset()
- func (x *InternetGWsRespones) String() string
- type PublicIP
- func (*PublicIP) Descriptor() ([]byte, []int)deprecated
- func (x *PublicIP) GetId() string
- func (x *PublicIP) GetIp() string
- func (x *PublicIP) GetReserved() bool
- func (x *PublicIP) GetVpcId() int32
- func (*PublicIP) ProtoMessage()
- func (x *PublicIP) ProtoReflect() protoreflect.Message
- func (x *PublicIP) Reset()
- func (x *PublicIP) String() string
- type Subnet
- func (*Subnet) Descriptor() ([]byte, []int)deprecated
- func (x *Subnet) GetCidr() string
- func (x *Subnet) GetId() string
- func (x *Subnet) GetInnerVlan() int32
- func (x *Subnet) GetMetadata() map[string]string
- func (x *Subnet) GetRegion() string
- func (x *Subnet) GetVpcId() int32
- func (*Subnet) ProtoMessage()
- func (x *Subnet) ProtoReflect() protoreflect.Message
- func (x *Subnet) Reset()
- func (x *Subnet) String() string
- type SubnetsResponse
- type UnimplementedVPCServiceServer
- func (*UnimplementedVPCServiceServer) InternetGWs(context.Context, *VPCInfoRequest) (*InternetGWsRespones, error)
- func (*UnimplementedVPCServiceServer) Subnets(context.Context, *VPCInfoRequest) (*SubnetsResponse, error)
- func (*UnimplementedVPCServiceServer) VPCInfo(context.Context, *VPCInfoRequest) (*VPCInfoResponse, error)
- func (*UnimplementedVPCServiceServer) VPCs(context.Context, *VPCsRequest) (*VPCsResponse, error)
- type VPC
- func (*VPC) Descriptor() ([]byte, []int)deprecated
- func (x *VPC) GetAccount() int32
- func (x *VPC) GetAsn() int32
- func (x *VPC) GetCidr() string
- func (x *VPC) GetId() int32
- func (x *VPC) GetMetadata() map[string]string
- func (x *VPC) GetVni() int32
- func (*VPC) ProtoMessage()
- func (x *VPC) ProtoReflect() protoreflect.Message
- func (x *VPC) Reset()
- func (x *VPC) String() string
- type VPCInfoRequest
- type VPCInfoResponse
- func (*VPCInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VPCInfoResponse) GetInternetGW() *InternetGW
- func (x *VPCInfoResponse) GetSubnets() []*Subnet
- func (x *VPCInfoResponse) GetVpc() *VPC
- func (*VPCInfoResponse) ProtoMessage()
- func (x *VPCInfoResponse) ProtoReflect() protoreflect.Message
- func (x *VPCInfoResponse) Reset()
- func (x *VPCInfoResponse) String() string
- type VPCServiceClient
- type VPCServiceServer
- type VPCsRequest
- type VPCsResponse
Constants ¶
This section is empty.
Variables ¶
var ( FWRuleSet_Direction_name = map[int32]string{ 0: "INBOUND", 1: "OUTBOUND", } FWRuleSet_Direction_value = map[string]int32{ "INBOUND": 0, "OUTBOUND": 1, } )
Enum value maps for FWRuleSet_Direction.
var File_vpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterVPCServiceServer ¶
func RegisterVPCServiceServer(s *grpc.Server, srv VPCServiceServer)
Types ¶
type FWRule ¶
type FWRule struct { Proto string `protobuf:"bytes,2,opt,name=proto,proto3" json:"proto,omitempty"` Cidr string `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"` MinPort int32 `protobuf:"varint,4,opt,name=min_port,json=minPort,proto3" json:"min_port,omitempty"` MaxPort int32 `protobuf:"varint,5,opt,name=max_port,json=maxPort,proto3" json:"max_port,omitempty"` // contains filtered or unexported fields }
func (*FWRule) Descriptor
deprecated
func (*FWRule) GetMaxPort ¶
func (*FWRule) GetMinPort ¶
func (*FWRule) ProtoMessage ¶
func (*FWRule) ProtoMessage()
func (*FWRule) ProtoReflect ¶
func (x *FWRule) ProtoReflect() protoreflect.Message
type FWRuleSet ¶
type FWRuleSet struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Rules []*FWRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"` Direction FWRuleSet_Direction `protobuf:"varint,4,opt,name=direction,proto3,enum=vpc.FWRuleSet_Direction" json:"direction,omitempty"` // contains filtered or unexported fields }
func (*FWRuleSet) Descriptor
deprecated
func (*FWRuleSet) GetDirection ¶
func (x *FWRuleSet) GetDirection() FWRuleSet_Direction
func (*FWRuleSet) ProtoMessage ¶
func (*FWRuleSet) ProtoMessage()
func (*FWRuleSet) ProtoReflect ¶
func (x *FWRuleSet) ProtoReflect() protoreflect.Message
type FWRuleSet_Direction ¶
type FWRuleSet_Direction int32
const ( FWRuleSet_INBOUND FWRuleSet_Direction = 0 FWRuleSet_OUTBOUND FWRuleSet_Direction = 1 )
func (FWRuleSet_Direction) Descriptor ¶
func (FWRuleSet_Direction) Descriptor() protoreflect.EnumDescriptor
func (FWRuleSet_Direction) Enum ¶
func (x FWRuleSet_Direction) Enum() *FWRuleSet_Direction
func (FWRuleSet_Direction) EnumDescriptor
deprecated
func (FWRuleSet_Direction) EnumDescriptor() ([]byte, []int)
Deprecated: Use FWRuleSet_Direction.Descriptor instead.
func (FWRuleSet_Direction) Number ¶
func (x FWRuleSet_Direction) Number() protoreflect.EnumNumber
func (FWRuleSet_Direction) String ¶
func (x FWRuleSet_Direction) String() string
func (FWRuleSet_Direction) Type ¶
func (FWRuleSet_Direction) Type() protoreflect.EnumType
type InternetGW ¶
type InternetGW struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` VpcId int32 `protobuf:"varint,2,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"` // contains filtered or unexported fields }
func (*InternetGW) Descriptor
deprecated
func (*InternetGW) Descriptor() ([]byte, []int)
Deprecated: Use InternetGW.ProtoReflect.Descriptor instead.
func (*InternetGW) GetId ¶
func (x *InternetGW) GetId() string
func (*InternetGW) GetVpcId ¶
func (x *InternetGW) GetVpcId() int32
func (*InternetGW) ProtoMessage ¶
func (*InternetGW) ProtoMessage()
func (*InternetGW) ProtoReflect ¶
func (x *InternetGW) ProtoReflect() protoreflect.Message
func (*InternetGW) Reset ¶
func (x *InternetGW) Reset()
func (*InternetGW) String ¶
func (x *InternetGW) String() string
type InternetGWsRespones ¶
type InternetGWsRespones struct { InternetGws []*InternetGW `protobuf:"bytes,1,rep,name=internet_gws,json=internetGws,proto3" json:"internet_gws,omitempty"` // contains filtered or unexported fields }
func (*InternetGWsRespones) Descriptor
deprecated
func (*InternetGWsRespones) Descriptor() ([]byte, []int)
Deprecated: Use InternetGWsRespones.ProtoReflect.Descriptor instead.
func (*InternetGWsRespones) GetInternetGws ¶
func (x *InternetGWsRespones) GetInternetGws() []*InternetGW
func (*InternetGWsRespones) ProtoMessage ¶
func (*InternetGWsRespones) ProtoMessage()
func (*InternetGWsRespones) ProtoReflect ¶
func (x *InternetGWsRespones) ProtoReflect() protoreflect.Message
func (*InternetGWsRespones) Reset ¶
func (x *InternetGWsRespones) Reset()
func (*InternetGWsRespones) String ¶
func (x *InternetGWsRespones) String() string
type PublicIP ¶
type PublicIP struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` VpcId int32 `protobuf:"varint,2,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` Reserved bool `protobuf:"varint,4,opt,name=reserved,proto3" json:"reserved,omitempty"` // contains filtered or unexported fields }
func (*PublicIP) Descriptor
deprecated
func (*PublicIP) GetReserved ¶
func (*PublicIP) ProtoMessage ¶
func (*PublicIP) ProtoMessage()
func (*PublicIP) ProtoReflect ¶
func (x *PublicIP) ProtoReflect() protoreflect.Message
type Subnet ¶
type Subnet struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` VpcId int32 `protobuf:"varint,2,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"` Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` Cidr string `protobuf:"bytes,4,opt,name=cidr,proto3" json:"cidr,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ InnerVlan int32 `protobuf:"varint,6,opt,name=inner_vlan,json=innerVlan,proto3" json:"inner_vlan,omitempty"` // contains filtered or unexported fields }
func (*Subnet) Descriptor
deprecated
func (*Subnet) GetInnerVlan ¶
func (*Subnet) GetMetadata ¶
func (*Subnet) ProtoMessage ¶
func (*Subnet) ProtoMessage()
func (*Subnet) ProtoReflect ¶
func (x *Subnet) ProtoReflect() protoreflect.Message
type SubnetsResponse ¶
type SubnetsResponse struct { Subnets []*Subnet `protobuf:"bytes,1,rep,name=subnets,proto3" json:"subnets,omitempty"` // contains filtered or unexported fields }
func (*SubnetsResponse) Descriptor
deprecated
func (*SubnetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubnetsResponse.ProtoReflect.Descriptor instead.
func (*SubnetsResponse) GetSubnets ¶
func (x *SubnetsResponse) GetSubnets() []*Subnet
func (*SubnetsResponse) ProtoMessage ¶
func (*SubnetsResponse) ProtoMessage()
func (*SubnetsResponse) ProtoReflect ¶
func (x *SubnetsResponse) ProtoReflect() protoreflect.Message
func (*SubnetsResponse) Reset ¶
func (x *SubnetsResponse) Reset()
func (*SubnetsResponse) String ¶
func (x *SubnetsResponse) String() string
type UnimplementedVPCServiceServer ¶
type UnimplementedVPCServiceServer struct { }
UnimplementedVPCServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedVPCServiceServer) InternetGWs ¶
func (*UnimplementedVPCServiceServer) InternetGWs(context.Context, *VPCInfoRequest) (*InternetGWsRespones, error)
func (*UnimplementedVPCServiceServer) Subnets ¶
func (*UnimplementedVPCServiceServer) Subnets(context.Context, *VPCInfoRequest) (*SubnetsResponse, error)
func (*UnimplementedVPCServiceServer) VPCInfo ¶
func (*UnimplementedVPCServiceServer) VPCInfo(context.Context, *VPCInfoRequest) (*VPCInfoResponse, error)
func (*UnimplementedVPCServiceServer) VPCs ¶
func (*UnimplementedVPCServiceServer) VPCs(context.Context, *VPCsRequest) (*VPCsResponse, error)
type VPC ¶
type VPC struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Account int32 `protobuf:"varint,2,opt,name=account,proto3" json:"account,omitempty"` Cidr string `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Asn int32 `protobuf:"varint,5,opt,name=asn,proto3" json:"asn,omitempty"` Vni int32 `protobuf:"varint,6,opt,name=vni,proto3" json:"vni,omitempty"` // contains filtered or unexported fields }
func (*VPC) Descriptor
deprecated
func (*VPC) GetAccount ¶
func (*VPC) GetMetadata ¶
func (*VPC) ProtoMessage ¶
func (*VPC) ProtoMessage()
func (*VPC) ProtoReflect ¶
func (x *VPC) ProtoReflect() protoreflect.Message
type VPCInfoRequest ¶
type VPCInfoRequest struct { VpcId int32 `protobuf:"varint,1,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"` // contains filtered or unexported fields }
func (*VPCInfoRequest) Descriptor
deprecated
func (*VPCInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use VPCInfoRequest.ProtoReflect.Descriptor instead.
func (*VPCInfoRequest) GetVpcId ¶
func (x *VPCInfoRequest) GetVpcId() int32
func (*VPCInfoRequest) ProtoMessage ¶
func (*VPCInfoRequest) ProtoMessage()
func (*VPCInfoRequest) ProtoReflect ¶
func (x *VPCInfoRequest) ProtoReflect() protoreflect.Message
func (*VPCInfoRequest) Reset ¶
func (x *VPCInfoRequest) Reset()
func (*VPCInfoRequest) String ¶
func (x *VPCInfoRequest) String() string
type VPCInfoResponse ¶
type VPCInfoResponse struct { Vpc *VPC `protobuf:"bytes,1,opt,name=vpc,proto3" json:"vpc,omitempty"` Subnets []*Subnet `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"` InternetGW *InternetGW `protobuf:"bytes,3,opt,name=internetGW,proto3" json:"internetGW,omitempty"` // contains filtered or unexported fields }
func (*VPCInfoResponse) Descriptor
deprecated
func (*VPCInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use VPCInfoResponse.ProtoReflect.Descriptor instead.
func (*VPCInfoResponse) GetInternetGW ¶
func (x *VPCInfoResponse) GetInternetGW() *InternetGW
func (*VPCInfoResponse) GetSubnets ¶
func (x *VPCInfoResponse) GetSubnets() []*Subnet
func (*VPCInfoResponse) GetVpc ¶
func (x *VPCInfoResponse) GetVpc() *VPC
func (*VPCInfoResponse) ProtoMessage ¶
func (*VPCInfoResponse) ProtoMessage()
func (*VPCInfoResponse) ProtoReflect ¶
func (x *VPCInfoResponse) ProtoReflect() protoreflect.Message
func (*VPCInfoResponse) Reset ¶
func (x *VPCInfoResponse) Reset()
func (*VPCInfoResponse) String ¶
func (x *VPCInfoResponse) String() string
type VPCServiceClient ¶
type VPCServiceClient interface { VPCs(ctx context.Context, in *VPCsRequest, opts ...grpc.CallOption) (*VPCsResponse, error) VPCInfo(ctx context.Context, in *VPCInfoRequest, opts ...grpc.CallOption) (*VPCInfoResponse, error) Subnets(ctx context.Context, in *VPCInfoRequest, opts ...grpc.CallOption) (*SubnetsResponse, error) InternetGWs(ctx context.Context, in *VPCInfoRequest, opts ...grpc.CallOption) (*InternetGWsRespones, error) }
VPCServiceClient is the client API for VPCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVPCServiceClient ¶
func NewVPCServiceClient(cc grpc.ClientConnInterface) VPCServiceClient
type VPCServiceServer ¶
type VPCServiceServer interface { VPCs(context.Context, *VPCsRequest) (*VPCsResponse, error) VPCInfo(context.Context, *VPCInfoRequest) (*VPCInfoResponse, error) Subnets(context.Context, *VPCInfoRequest) (*SubnetsResponse, error) InternetGWs(context.Context, *VPCInfoRequest) (*InternetGWsRespones, error) // contains filtered or unexported methods }
VPCServiceServer is the server API for VPCService service. All implementations must embed UnimplementedVPCServiceServer for forward compatibility
type VPCsRequest ¶
type VPCsRequest struct {
// contains filtered or unexported fields
}
func (*VPCsRequest) Descriptor
deprecated
func (*VPCsRequest) Descriptor() ([]byte, []int)
Deprecated: Use VPCsRequest.ProtoReflect.Descriptor instead.
func (*VPCsRequest) ProtoMessage ¶
func (*VPCsRequest) ProtoMessage()
func (*VPCsRequest) ProtoReflect ¶
func (x *VPCsRequest) ProtoReflect() protoreflect.Message
func (*VPCsRequest) Reset ¶
func (x *VPCsRequest) Reset()
func (*VPCsRequest) String ¶
func (x *VPCsRequest) String() string
type VPCsResponse ¶
type VPCsResponse struct { VPCs []*VPC `protobuf:"bytes,1,rep,name=VPCs,proto3" json:"VPCs,omitempty"` // contains filtered or unexported fields }
func (*VPCsResponse) Descriptor
deprecated
func (*VPCsResponse) Descriptor() ([]byte, []int)
Deprecated: Use VPCsResponse.ProtoReflect.Descriptor instead.
func (*VPCsResponse) GetVPCs ¶
func (x *VPCsResponse) GetVPCs() []*VPC
func (*VPCsResponse) ProtoMessage ¶
func (*VPCsResponse) ProtoMessage()
func (*VPCsResponse) ProtoReflect ¶
func (x *VPCsResponse) ProtoReflect() protoreflect.Message
func (*VPCsResponse) Reset ¶
func (x *VPCsResponse) Reset()
func (*VPCsResponse) String ¶
func (x *VPCsResponse) String() string