Documentation ¶
Index ¶
- Variables
- func RegisterNetworkClassServiceServer(s grpc.ServiceRegistrar, srv NetworkClassServiceServer)
- type CloudSubnet
- func (*CloudSubnet) Descriptor() ([]byte, []int)deprecated
- func (x *CloudSubnet) GetSubnets() []string
- func (x *CloudSubnet) GetType() CloudType
- func (*CloudSubnet) ProtoMessage()
- func (x *CloudSubnet) ProtoReflect() protoreflect.Message
- func (x *CloudSubnet) Reset()
- func (x *CloudSubnet) String() string
- type CloudType
- type GetNetworkClassRequest
- type GetNetworkClassResponse
- func (*GetNetworkClassResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNetworkClassResponse) GetNetworkClass() *NetworkClass
- func (*GetNetworkClassResponse) ProtoMessage()
- func (x *GetNetworkClassResponse) ProtoReflect() protoreflect.Message
- func (x *GetNetworkClassResponse) Reset()
- func (x *GetNetworkClassResponse) String() string
- type NetworkClass
- func (*NetworkClass) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkClass) GetCloudSubnets() []*CloudSubnet
- func (x *NetworkClass) GetInternalAsns() []string
- func (x *NetworkClass) GetInternalIps() []string
- func (x *NetworkClass) GetUsePrivateAsns() bool
- func (x *NetworkClass) GetUsePrivateSubnets() bool
- func (*NetworkClass) ProtoMessage()
- func (x *NetworkClass) ProtoReflect() protoreflect.Message
- func (x *NetworkClass) Reset()
- func (x *NetworkClass) String() string
- type NetworkClassServiceClient
- type NetworkClassServiceServer
- type UnimplementedNetworkClassServiceServer
- type UnsafeNetworkClassServiceServer
- type UpdateNetworkClassRequest
- func (*UpdateNetworkClassRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNetworkClassRequest) GetNetworkClass() *NetworkClass
- func (*UpdateNetworkClassRequest) ProtoMessage()
- func (x *UpdateNetworkClassRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNetworkClassRequest) Reset()
- func (x *UpdateNetworkClassRequest) String() string
- type UpdateNetworkClassResponse
- func (*UpdateNetworkClassResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNetworkClassResponse) GetNetworkClass() *NetworkClass
- func (*UpdateNetworkClassResponse) ProtoMessage()
- func (x *UpdateNetworkClassResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateNetworkClassResponse) Reset()
- func (x *UpdateNetworkClassResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( CloudType_name = map[int32]string{ 0: "CLOUD_TYPE_UNSPECIFIED", 1: "CLOUD_TYPE_AWS", 2: "CLOUD_TYPE_AZURE", 3: "CLOUD_TYPE_GCE", 4: "CLOUD_TYPE_IBM", } CloudType_value = map[string]int32{ "CLOUD_TYPE_UNSPECIFIED": 0, "CLOUD_TYPE_AWS": 1, "CLOUD_TYPE_AZURE": 2, "CLOUD_TYPE_GCE": 3, "CLOUD_TYPE_IBM": 4, } )
Enum value maps for CloudType.
var File_kentik_network_class_v202109alpha1_network_class_proto protoreflect.FileDescriptor
var NetworkClassService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kentik.network_class.v202109alpha1.NetworkClassService", HandlerType: (*NetworkClassServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNetworkClass", Handler: _NetworkClassService_GetNetworkClass_Handler, }, { MethodName: "UpdateNetworkClass", Handler: _NetworkClassService_UpdateNetworkClass_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kentik/network_class/v202109alpha1/network_class.proto", }
NetworkClassService_ServiceDesc is the grpc.ServiceDesc for NetworkClassService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNetworkClassServiceServer ¶
func RegisterNetworkClassServiceServer(s grpc.ServiceRegistrar, srv NetworkClassServiceServer)
Types ¶
type CloudSubnet ¶
type CloudSubnet struct { // Cloud provider Type CloudType `protobuf:"varint,1,opt,name=type,proto3,enum=kentik.network_class.v202109alpha1.CloudType" json:"type,omitempty"` // Subnet masks Subnets []string `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"` // contains filtered or unexported fields }
func (*CloudSubnet) Descriptor
deprecated
func (*CloudSubnet) Descriptor() ([]byte, []int)
Deprecated: Use CloudSubnet.ProtoReflect.Descriptor instead.
func (*CloudSubnet) GetSubnets ¶
func (x *CloudSubnet) GetSubnets() []string
func (*CloudSubnet) GetType ¶
func (x *CloudSubnet) GetType() CloudType
func (*CloudSubnet) ProtoMessage ¶
func (*CloudSubnet) ProtoMessage()
func (*CloudSubnet) ProtoReflect ¶
func (x *CloudSubnet) ProtoReflect() protoreflect.Message
func (*CloudSubnet) Reset ¶
func (x *CloudSubnet) Reset()
func (*CloudSubnet) String ¶
func (x *CloudSubnet) String() string
type CloudType ¶
type CloudType int32
func (CloudType) Descriptor ¶
func (CloudType) Descriptor() protoreflect.EnumDescriptor
func (CloudType) EnumDescriptor
deprecated
func (CloudType) Number ¶
func (x CloudType) Number() protoreflect.EnumNumber
func (CloudType) Type ¶
func (CloudType) Type() protoreflect.EnumType
type GetNetworkClassRequest ¶
type GetNetworkClassRequest struct {
// contains filtered or unexported fields
}
func (*GetNetworkClassRequest) Descriptor
deprecated
func (*GetNetworkClassRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkClassRequest.ProtoReflect.Descriptor instead.
func (*GetNetworkClassRequest) ProtoMessage ¶
func (*GetNetworkClassRequest) ProtoMessage()
func (*GetNetworkClassRequest) ProtoReflect ¶
func (x *GetNetworkClassRequest) ProtoReflect() protoreflect.Message
func (*GetNetworkClassRequest) Reset ¶
func (x *GetNetworkClassRequest) Reset()
func (*GetNetworkClassRequest) String ¶
func (x *GetNetworkClassRequest) String() string
type GetNetworkClassResponse ¶
type GetNetworkClassResponse struct { NetworkClass *NetworkClass `protobuf:"bytes,1,opt,name=network_class,json=networkClass,proto3" json:"network_class,omitempty"` // contains filtered or unexported fields }
func (*GetNetworkClassResponse) Descriptor
deprecated
func (*GetNetworkClassResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkClassResponse.ProtoReflect.Descriptor instead.
func (*GetNetworkClassResponse) GetNetworkClass ¶
func (x *GetNetworkClassResponse) GetNetworkClass() *NetworkClass
func (*GetNetworkClassResponse) ProtoMessage ¶
func (*GetNetworkClassResponse) ProtoMessage()
func (*GetNetworkClassResponse) ProtoReflect ¶
func (x *GetNetworkClassResponse) ProtoReflect() protoreflect.Message
func (*GetNetworkClassResponse) Reset ¶
func (x *GetNetworkClassResponse) Reset()
func (*GetNetworkClassResponse) String ¶
func (x *GetNetworkClassResponse) String() string
type NetworkClass ¶
type NetworkClass struct { // Internal ASNs InternalAsns []string `protobuf:"bytes,1,rep,name=internal_asns,json=internalAsns,proto3" json:"internal_asns,omitempty"` // Internal IPs InternalIps []string `protobuf:"bytes,2,rep,name=internal_ips,json=internalIps,proto3" json:"internal_ips,omitempty"` // Specify to use internal ASNs UsePrivateAsns bool `protobuf:"varint,3,opt,name=use_private_asns,json=usePrivateAsns,proto3" json:"use_private_asns,omitempty"` // Specify to use internal IPs UsePrivateSubnets bool `protobuf:"varint,4,opt,name=use_private_subnets,json=usePrivateSubnets,proto3" json:"use_private_subnets,omitempty"` // Cloud provider and subnet info. CloudSubnets []*CloudSubnet `protobuf:"bytes,5,rep,name=cloud_subnets,json=cloudSubnets,proto3" json:"cloud_subnets,omitempty"` // contains filtered or unexported fields }
func (*NetworkClass) Descriptor
deprecated
func (*NetworkClass) Descriptor() ([]byte, []int)
Deprecated: Use NetworkClass.ProtoReflect.Descriptor instead.
func (*NetworkClass) GetCloudSubnets ¶
func (x *NetworkClass) GetCloudSubnets() []*CloudSubnet
func (*NetworkClass) GetInternalAsns ¶
func (x *NetworkClass) GetInternalAsns() []string
func (*NetworkClass) GetInternalIps ¶
func (x *NetworkClass) GetInternalIps() []string
func (*NetworkClass) GetUsePrivateAsns ¶
func (x *NetworkClass) GetUsePrivateAsns() bool
func (*NetworkClass) GetUsePrivateSubnets ¶
func (x *NetworkClass) GetUsePrivateSubnets() bool
func (*NetworkClass) ProtoMessage ¶
func (*NetworkClass) ProtoMessage()
func (*NetworkClass) ProtoReflect ¶
func (x *NetworkClass) ProtoReflect() protoreflect.Message
func (*NetworkClass) Reset ¶
func (x *NetworkClass) Reset()
func (*NetworkClass) String ¶
func (x *NetworkClass) String() string
type NetworkClassServiceClient ¶
type NetworkClassServiceClient interface { GetNetworkClass(ctx context.Context, in *GetNetworkClassRequest, opts ...grpc.CallOption) (*GetNetworkClassResponse, error) UpdateNetworkClass(ctx context.Context, in *UpdateNetworkClassRequest, opts ...grpc.CallOption) (*UpdateNetworkClassResponse, error) }
NetworkClassServiceClient is the client API for NetworkClassService 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 NewNetworkClassServiceClient ¶
func NewNetworkClassServiceClient(cc grpc.ClientConnInterface) NetworkClassServiceClient
type NetworkClassServiceServer ¶
type NetworkClassServiceServer interface { GetNetworkClass(context.Context, *GetNetworkClassRequest) (*GetNetworkClassResponse, error) UpdateNetworkClass(context.Context, *UpdateNetworkClassRequest) (*UpdateNetworkClassResponse, error) }
NetworkClassServiceServer is the server API for NetworkClassService service. All implementations should embed UnimplementedNetworkClassServiceServer for forward compatibility
type UnimplementedNetworkClassServiceServer ¶
type UnimplementedNetworkClassServiceServer struct { }
UnimplementedNetworkClassServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedNetworkClassServiceServer) GetNetworkClass ¶
func (UnimplementedNetworkClassServiceServer) GetNetworkClass(context.Context, *GetNetworkClassRequest) (*GetNetworkClassResponse, error)
func (UnimplementedNetworkClassServiceServer) UpdateNetworkClass ¶
func (UnimplementedNetworkClassServiceServer) UpdateNetworkClass(context.Context, *UpdateNetworkClassRequest) (*UpdateNetworkClassResponse, error)
type UnsafeNetworkClassServiceServer ¶
type UnsafeNetworkClassServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNetworkClassServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworkClassServiceServer will result in compilation errors.
type UpdateNetworkClassRequest ¶
type UpdateNetworkClassRequest struct { NetworkClass *NetworkClass `protobuf:"bytes,1,opt,name=network_class,json=networkClass,proto3" json:"network_class,omitempty"` // contains filtered or unexported fields }
func (*UpdateNetworkClassRequest) Descriptor
deprecated
func (*UpdateNetworkClassRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNetworkClassRequest.ProtoReflect.Descriptor instead.
func (*UpdateNetworkClassRequest) GetNetworkClass ¶
func (x *UpdateNetworkClassRequest) GetNetworkClass() *NetworkClass
func (*UpdateNetworkClassRequest) ProtoMessage ¶
func (*UpdateNetworkClassRequest) ProtoMessage()
func (*UpdateNetworkClassRequest) ProtoReflect ¶
func (x *UpdateNetworkClassRequest) ProtoReflect() protoreflect.Message
func (*UpdateNetworkClassRequest) Reset ¶
func (x *UpdateNetworkClassRequest) Reset()
func (*UpdateNetworkClassRequest) String ¶
func (x *UpdateNetworkClassRequest) String() string
type UpdateNetworkClassResponse ¶
type UpdateNetworkClassResponse struct { NetworkClass *NetworkClass `protobuf:"bytes,1,opt,name=network_class,json=networkClass,proto3" json:"network_class,omitempty"` // contains filtered or unexported fields }
func (*UpdateNetworkClassResponse) Descriptor
deprecated
func (*UpdateNetworkClassResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNetworkClassResponse.ProtoReflect.Descriptor instead.
func (*UpdateNetworkClassResponse) GetNetworkClass ¶
func (x *UpdateNetworkClassResponse) GetNetworkClass() *NetworkClass
func (*UpdateNetworkClassResponse) ProtoMessage ¶
func (*UpdateNetworkClassResponse) ProtoMessage()
func (*UpdateNetworkClassResponse) ProtoReflect ¶
func (x *UpdateNetworkClassResponse) ProtoReflect() protoreflect.Message
func (*UpdateNetworkClassResponse) Reset ¶
func (x *UpdateNetworkClassResponse) Reset()
func (*UpdateNetworkClassResponse) String ¶
func (x *UpdateNetworkClassResponse) String() string