vpc

package
v0.0.0-...-a9890c3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

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) Descriptor() ([]byte, []int)

Deprecated: Use FWRule.ProtoReflect.Descriptor instead.

func (*FWRule) GetCidr

func (x *FWRule) GetCidr() string

func (*FWRule) GetMaxPort

func (x *FWRule) GetMaxPort() int32

func (*FWRule) GetMinPort

func (x *FWRule) GetMinPort() int32

func (*FWRule) GetProto

func (x *FWRule) GetProto() string

func (*FWRule) ProtoMessage

func (*FWRule) ProtoMessage()

func (*FWRule) ProtoReflect

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

func (*FWRule) Reset

func (x *FWRule) Reset()

func (*FWRule) String

func (x *FWRule) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FWRuleSet.ProtoReflect.Descriptor instead.

func (*FWRuleSet) GetDirection

func (x *FWRuleSet) GetDirection() FWRuleSet_Direction

func (*FWRuleSet) GetId

func (x *FWRuleSet) GetId() string

func (*FWRuleSet) GetName

func (x *FWRuleSet) GetName() string

func (*FWRuleSet) GetRules

func (x *FWRuleSet) GetRules() []*FWRule

func (*FWRuleSet) ProtoMessage

func (*FWRuleSet) ProtoMessage()

func (*FWRuleSet) ProtoReflect

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

func (*FWRuleSet) Reset

func (x *FWRuleSet) Reset()

func (*FWRuleSet) String

func (x *FWRuleSet) String() string

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) Enum

func (FWRuleSet_Direction) EnumDescriptor deprecated

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

Deprecated: Use FWRuleSet_Direction.Descriptor instead.

func (FWRuleSet_Direction) Number

func (FWRuleSet_Direction) String

func (x FWRuleSet_Direction) String() string

func (FWRuleSet_Direction) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use PublicIP.ProtoReflect.Descriptor instead.

func (*PublicIP) GetId

func (x *PublicIP) GetId() string

func (*PublicIP) GetIp

func (x *PublicIP) GetIp() string

func (*PublicIP) GetReserved

func (x *PublicIP) GetReserved() bool

func (*PublicIP) GetVpcId

func (x *PublicIP) GetVpcId() int32

func (*PublicIP) ProtoMessage

func (*PublicIP) ProtoMessage()

func (*PublicIP) ProtoReflect

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

func (*PublicIP) Reset

func (x *PublicIP) Reset()

func (*PublicIP) String

func (x *PublicIP) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Subnet.ProtoReflect.Descriptor instead.

func (*Subnet) GetCidr

func (x *Subnet) GetCidr() string

func (*Subnet) GetId

func (x *Subnet) GetId() string

func (*Subnet) GetInnerVlan

func (x *Subnet) GetInnerVlan() int32

func (*Subnet) GetMetadata

func (x *Subnet) GetMetadata() map[string]string

func (*Subnet) GetRegion

func (x *Subnet) GetRegion() string

func (*Subnet) GetVpcId

func (x *Subnet) GetVpcId() int32

func (*Subnet) ProtoMessage

func (*Subnet) ProtoMessage()

func (*Subnet) ProtoReflect

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

func (*Subnet) Reset

func (x *Subnet) Reset()

func (*Subnet) String

func (x *Subnet) String() string

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) Subnets

func (*UnimplementedVPCServiceServer) VPCInfo

func (*UnimplementedVPCServiceServer) VPCs

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) Descriptor() ([]byte, []int)

Deprecated: Use VPC.ProtoReflect.Descriptor instead.

func (*VPC) GetAccount

func (x *VPC) GetAccount() int32

func (*VPC) GetAsn

func (x *VPC) GetAsn() int32

func (*VPC) GetCidr

func (x *VPC) GetCidr() string

func (*VPC) GetId

func (x *VPC) GetId() int32

func (*VPC) GetMetadata

func (x *VPC) GetMetadata() map[string]string

func (*VPC) GetVni

func (x *VPC) GetVni() int32

func (*VPC) ProtoMessage

func (*VPC) ProtoMessage()

func (*VPC) ProtoReflect

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

func (*VPC) Reset

func (x *VPC) Reset()

func (*VPC) String

func (x *VPC) String() string

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

Jump to

Keyboard shortcuts

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