Documentation ¶
Index ¶
- Variables
- func RegisterSiteServiceServer(s grpc.ServiceRegistrar, srv SiteServiceServer)
- type CreateSiteRequest
- type CreateSiteResponse
- type DeleteSiteRequest
- type DeleteSiteResponse
- type GetSiteRequest
- type GetSiteResponse
- type Layer
- type ListSiteRequest
- type ListSiteResponse
- func (*ListSiteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSiteResponse) GetInvalidCount() uint32
- func (x *ListSiteResponse) GetSites() []*Site
- func (*ListSiteResponse) ProtoMessage()
- func (x *ListSiteResponse) ProtoReflect() protoreflect.Message
- func (x *ListSiteResponse) Reset()
- func (x *ListSiteResponse) String() string
- type Site
- func (*Site) Descriptor() ([]byte, []int)deprecated
- func (x *Site) GetAddress() *postaladdress.PostalAddress
- func (x *Site) GetArchitecture() []*Layer
- func (x *Site) GetClassification() *SiteIpClassification
- func (x *Site) GetCoordinate() *latlng.LatLng
- func (x *Site) GetId() string
- func (x *Site) GetTitle() string
- func (x *Site) GetType() SiteType
- func (*Site) ProtoMessage()
- func (x *Site) ProtoReflect() protoreflect.Message
- func (x *Site) Reset()
- func (x *Site) String() string
- type SiteIpClassification
- func (*SiteIpClassification) Descriptor() ([]byte, []int)deprecated
- func (x *SiteIpClassification) GetInfrastructureNetworks() []string
- func (x *SiteIpClassification) GetOtherIps() []string
- func (x *SiteIpClassification) GetUserAccessNetworks() []string
- func (*SiteIpClassification) ProtoMessage()
- func (x *SiteIpClassification) ProtoReflect() protoreflect.Message
- func (x *SiteIpClassification) Reset()
- func (x *SiteIpClassification) String() string
- type SiteServiceClient
- type SiteServiceServer
- type SiteType
- type SubLayer
- type UnimplementedSiteServiceServer
- func (UnimplementedSiteServiceServer) CreateSite(context.Context, *CreateSiteRequest) (*CreateSiteResponse, error)
- func (UnimplementedSiteServiceServer) DeleteSite(context.Context, *DeleteSiteRequest) (*DeleteSiteResponse, error)
- func (UnimplementedSiteServiceServer) GetSite(context.Context, *GetSiteRequest) (*GetSiteResponse, error)
- func (UnimplementedSiteServiceServer) ListSite(context.Context, *ListSiteRequest) (*ListSiteResponse, error)
- func (UnimplementedSiteServiceServer) UpdateSite(context.Context, *UpdateSiteRequest) (*UpdateSiteResponse, error)
- type UnsafeSiteServiceServer
- type UpdateSiteRequest
- type UpdateSiteResponse
Constants ¶
This section is empty.
Variables ¶
var ( SiteType_name = map[int32]string{ 0: "SITE_TYPE_UNSPECIFIED", 1: "SITE_TYPE_DATA_CENTER", 2: "SITE_TYPE_CLOUD", 3: "SITE_TYPE_BRANCH", 4: "SITE_TYPE_CONNECTIVITY", 5: "SITE_TYPE_CUSTOMER", 6: "SITE_TYPE_OTHER", } SiteType_value = map[string]int32{ "SITE_TYPE_UNSPECIFIED": 0, "SITE_TYPE_DATA_CENTER": 1, "SITE_TYPE_CLOUD": 2, "SITE_TYPE_BRANCH": 3, "SITE_TYPE_CONNECTIVITY": 4, "SITE_TYPE_CUSTOMER": 5, "SITE_TYPE_OTHER": 6, } )
Enum value maps for SiteType.
var File_kentik_site_v202106alpha1_site_proto protoreflect.FileDescriptor
var SiteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kentik.site.v202106alpha1.SiteService", HandlerType: (*SiteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListSite", Handler: _SiteService_ListSite_Handler, }, { MethodName: "GetSite", Handler: _SiteService_GetSite_Handler, }, { MethodName: "CreateSite", Handler: _SiteService_CreateSite_Handler, }, { MethodName: "UpdateSite", Handler: _SiteService_UpdateSite_Handler, }, { MethodName: "DeleteSite", Handler: _SiteService_DeleteSite_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kentik/site/v202106alpha1/site.proto", }
SiteService_ServiceDesc is the grpc.ServiceDesc for SiteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSiteServiceServer ¶
func RegisterSiteServiceServer(s grpc.ServiceRegistrar, srv SiteServiceServer)
Types ¶
type CreateSiteRequest ¶
type CreateSiteRequest struct { Site *Site `protobuf:"bytes,1,opt,name=site,proto3" json:"site,omitempty"` // contains filtered or unexported fields }
func (*CreateSiteRequest) Descriptor
deprecated
func (*CreateSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSiteRequest.ProtoReflect.Descriptor instead.
func (*CreateSiteRequest) GetSite ¶
func (x *CreateSiteRequest) GetSite() *Site
func (*CreateSiteRequest) ProtoMessage ¶
func (*CreateSiteRequest) ProtoMessage()
func (*CreateSiteRequest) ProtoReflect ¶
func (x *CreateSiteRequest) ProtoReflect() protoreflect.Message
func (*CreateSiteRequest) Reset ¶
func (x *CreateSiteRequest) Reset()
func (*CreateSiteRequest) String ¶
func (x *CreateSiteRequest) String() string
type CreateSiteResponse ¶
type CreateSiteResponse struct { Site *Site `protobuf:"bytes,1,opt,name=site,proto3" json:"site,omitempty"` // contains filtered or unexported fields }
func (*CreateSiteResponse) Descriptor
deprecated
func (*CreateSiteResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSiteResponse.ProtoReflect.Descriptor instead.
func (*CreateSiteResponse) GetSite ¶
func (x *CreateSiteResponse) GetSite() *Site
func (*CreateSiteResponse) ProtoMessage ¶
func (*CreateSiteResponse) ProtoMessage()
func (*CreateSiteResponse) ProtoReflect ¶
func (x *CreateSiteResponse) ProtoReflect() protoreflect.Message
func (*CreateSiteResponse) Reset ¶
func (x *CreateSiteResponse) Reset()
func (*CreateSiteResponse) String ¶
func (x *CreateSiteResponse) String() string
type DeleteSiteRequest ¶
type DeleteSiteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteSiteRequest) Descriptor
deprecated
func (*DeleteSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSiteRequest.ProtoReflect.Descriptor instead.
func (*DeleteSiteRequest) GetId ¶
func (x *DeleteSiteRequest) GetId() string
func (*DeleteSiteRequest) ProtoMessage ¶
func (*DeleteSiteRequest) ProtoMessage()
func (*DeleteSiteRequest) ProtoReflect ¶
func (x *DeleteSiteRequest) ProtoReflect() protoreflect.Message
func (*DeleteSiteRequest) Reset ¶
func (x *DeleteSiteRequest) Reset()
func (*DeleteSiteRequest) String ¶
func (x *DeleteSiteRequest) String() string
type DeleteSiteResponse ¶
type DeleteSiteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteSiteResponse) Descriptor
deprecated
func (*DeleteSiteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSiteResponse.ProtoReflect.Descriptor instead.
func (*DeleteSiteResponse) ProtoMessage ¶
func (*DeleteSiteResponse) ProtoMessage()
func (*DeleteSiteResponse) ProtoReflect ¶
func (x *DeleteSiteResponse) ProtoReflect() protoreflect.Message
func (*DeleteSiteResponse) Reset ¶
func (x *DeleteSiteResponse) Reset()
func (*DeleteSiteResponse) String ¶
func (x *DeleteSiteResponse) String() string
type GetSiteRequest ¶
type GetSiteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetSiteRequest) Descriptor
deprecated
func (*GetSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSiteRequest.ProtoReflect.Descriptor instead.
func (*GetSiteRequest) GetId ¶
func (x *GetSiteRequest) GetId() string
func (*GetSiteRequest) ProtoMessage ¶
func (*GetSiteRequest) ProtoMessage()
func (*GetSiteRequest) ProtoReflect ¶
func (x *GetSiteRequest) ProtoReflect() protoreflect.Message
func (*GetSiteRequest) Reset ¶
func (x *GetSiteRequest) Reset()
func (*GetSiteRequest) String ¶
func (x *GetSiteRequest) String() string
type GetSiteResponse ¶
type GetSiteResponse struct { Site *Site `protobuf:"bytes,1,opt,name=site,proto3" json:"site,omitempty"` // contains filtered or unexported fields }
func (*GetSiteResponse) Descriptor
deprecated
func (*GetSiteResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSiteResponse.ProtoReflect.Descriptor instead.
func (*GetSiteResponse) GetSite ¶
func (x *GetSiteResponse) GetSite() *Site
func (*GetSiteResponse) ProtoMessage ¶
func (*GetSiteResponse) ProtoMessage()
func (*GetSiteResponse) ProtoReflect ¶
func (x *GetSiteResponse) ProtoReflect() protoreflect.Message
func (*GetSiteResponse) Reset ¶
func (x *GetSiteResponse) Reset()
func (*GetSiteResponse) String ¶
func (x *GetSiteResponse) String() string
type Layer ¶
type Layer struct { SubLayers []*SubLayer `protobuf:"bytes,1,rep,name=sub_layers,json=subLayers,proto3" json:"sub_layers,omitempty"` // contains filtered or unexported fields }
func (*Layer) Descriptor
deprecated
func (*Layer) GetSubLayers ¶
func (*Layer) ProtoMessage ¶
func (*Layer) ProtoMessage()
func (*Layer) ProtoReflect ¶
func (x *Layer) ProtoReflect() protoreflect.Message
type ListSiteRequest ¶
type ListSiteRequest struct {
// contains filtered or unexported fields
}
func (*ListSiteRequest) Descriptor
deprecated
func (*ListSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSiteRequest.ProtoReflect.Descriptor instead.
func (*ListSiteRequest) ProtoMessage ¶
func (*ListSiteRequest) ProtoMessage()
func (*ListSiteRequest) ProtoReflect ¶
func (x *ListSiteRequest) ProtoReflect() protoreflect.Message
func (*ListSiteRequest) Reset ¶
func (x *ListSiteRequest) Reset()
func (*ListSiteRequest) String ¶
func (x *ListSiteRequest) String() string
type ListSiteResponse ¶
type ListSiteResponse struct { Sites []*Site `protobuf:"bytes,1,rep,name=sites,proto3" json:"sites,omitempty"` InvalidCount uint32 `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"` // contains filtered or unexported fields }
func (*ListSiteResponse) Descriptor
deprecated
func (*ListSiteResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSiteResponse.ProtoReflect.Descriptor instead.
func (*ListSiteResponse) GetInvalidCount ¶
func (x *ListSiteResponse) GetInvalidCount() uint32
func (*ListSiteResponse) GetSites ¶
func (x *ListSiteResponse) GetSites() []*Site
func (*ListSiteResponse) ProtoMessage ¶
func (*ListSiteResponse) ProtoMessage()
func (*ListSiteResponse) ProtoReflect ¶
func (x *ListSiteResponse) ProtoReflect() protoreflect.Message
func (*ListSiteResponse) Reset ¶
func (x *ListSiteResponse) Reset()
func (*ListSiteResponse) String ¶
func (x *ListSiteResponse) String() string
type Site ¶
type Site struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Coordinate *latlng.LatLng `protobuf:"bytes,4,opt,name=coordinate,proto3" json:"coordinate,omitempty"` Address *postaladdress.PostalAddress `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Type SiteType `protobuf:"varint,6,opt,name=type,proto3,enum=kentik.site.v202106alpha1.SiteType" json:"type,omitempty"` Classification *SiteIpClassification `protobuf:"bytes,7,opt,name=classification,proto3" json:"classification,omitempty"` Architecture []*Layer `protobuf:"bytes,8,rep,name=architecture,proto3" json:"architecture,omitempty"` // contains filtered or unexported fields }
func (*Site) Descriptor
deprecated
func (*Site) GetAddress ¶
func (x *Site) GetAddress() *postaladdress.PostalAddress
func (*Site) GetArchitecture ¶
func (*Site) GetClassification ¶
func (x *Site) GetClassification() *SiteIpClassification
func (*Site) GetCoordinate ¶
func (*Site) ProtoMessage ¶
func (*Site) ProtoMessage()
func (*Site) ProtoReflect ¶
func (x *Site) ProtoReflect() protoreflect.Message
type SiteIpClassification ¶
type SiteIpClassification struct { InfrastructureNetworks []string `` /* 127-byte string literal not displayed */ UserAccessNetworks []string `protobuf:"bytes,2,rep,name=user_access_networks,json=userAccessNetworks,proto3" json:"user_access_networks,omitempty"` OtherIps []string `protobuf:"bytes,3,rep,name=other_ips,json=otherIps,proto3" json:"other_ips,omitempty"` // contains filtered or unexported fields }
Site IP Classification
func (*SiteIpClassification) Descriptor
deprecated
func (*SiteIpClassification) Descriptor() ([]byte, []int)
Deprecated: Use SiteIpClassification.ProtoReflect.Descriptor instead.
func (*SiteIpClassification) GetInfrastructureNetworks ¶
func (x *SiteIpClassification) GetInfrastructureNetworks() []string
func (*SiteIpClassification) GetOtherIps ¶
func (x *SiteIpClassification) GetOtherIps() []string
func (*SiteIpClassification) GetUserAccessNetworks ¶
func (x *SiteIpClassification) GetUserAccessNetworks() []string
func (*SiteIpClassification) ProtoMessage ¶
func (*SiteIpClassification) ProtoMessage()
func (*SiteIpClassification) ProtoReflect ¶
func (x *SiteIpClassification) ProtoReflect() protoreflect.Message
func (*SiteIpClassification) Reset ¶
func (x *SiteIpClassification) Reset()
func (*SiteIpClassification) String ¶
func (x *SiteIpClassification) String() string
type SiteServiceClient ¶
type SiteServiceClient interface { ListSite(ctx context.Context, in *ListSiteRequest, opts ...grpc.CallOption) (*ListSiteResponse, error) GetSite(ctx context.Context, in *GetSiteRequest, opts ...grpc.CallOption) (*GetSiteResponse, error) CreateSite(ctx context.Context, in *CreateSiteRequest, opts ...grpc.CallOption) (*CreateSiteResponse, error) UpdateSite(ctx context.Context, in *UpdateSiteRequest, opts ...grpc.CallOption) (*UpdateSiteResponse, error) DeleteSite(ctx context.Context, in *DeleteSiteRequest, opts ...grpc.CallOption) (*DeleteSiteResponse, error) }
SiteServiceClient is the client API for SiteService 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 NewSiteServiceClient ¶
func NewSiteServiceClient(cc grpc.ClientConnInterface) SiteServiceClient
type SiteServiceServer ¶
type SiteServiceServer interface { ListSite(context.Context, *ListSiteRequest) (*ListSiteResponse, error) GetSite(context.Context, *GetSiteRequest) (*GetSiteResponse, error) CreateSite(context.Context, *CreateSiteRequest) (*CreateSiteResponse, error) UpdateSite(context.Context, *UpdateSiteRequest) (*UpdateSiteResponse, error) DeleteSite(context.Context, *DeleteSiteRequest) (*DeleteSiteResponse, error) }
SiteServiceServer is the server API for SiteService service. All implementations should embed UnimplementedSiteServiceServer for forward compatibility
type SiteType ¶
type SiteType int32
func (SiteType) Descriptor ¶
func (SiteType) Descriptor() protoreflect.EnumDescriptor
func (SiteType) EnumDescriptor
deprecated
func (SiteType) Number ¶
func (x SiteType) Number() protoreflect.EnumNumber
func (SiteType) Type ¶
func (SiteType) Type() protoreflect.EnumType
type SubLayer ¶
type SubLayer struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DeviceIds []string `protobuf:"bytes,2,rep,name=device_ids,json=deviceIds,proto3" json:"device_ids,omitempty"` // contains filtered or unexported fields }
func (*SubLayer) Descriptor
deprecated
func (*SubLayer) GetDeviceIds ¶
func (*SubLayer) ProtoMessage ¶
func (*SubLayer) ProtoMessage()
func (*SubLayer) ProtoReflect ¶
func (x *SubLayer) ProtoReflect() protoreflect.Message
type UnimplementedSiteServiceServer ¶
type UnimplementedSiteServiceServer struct { }
UnimplementedSiteServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedSiteServiceServer) CreateSite ¶
func (UnimplementedSiteServiceServer) CreateSite(context.Context, *CreateSiteRequest) (*CreateSiteResponse, error)
func (UnimplementedSiteServiceServer) DeleteSite ¶
func (UnimplementedSiteServiceServer) DeleteSite(context.Context, *DeleteSiteRequest) (*DeleteSiteResponse, error)
func (UnimplementedSiteServiceServer) GetSite ¶
func (UnimplementedSiteServiceServer) GetSite(context.Context, *GetSiteRequest) (*GetSiteResponse, error)
func (UnimplementedSiteServiceServer) ListSite ¶
func (UnimplementedSiteServiceServer) ListSite(context.Context, *ListSiteRequest) (*ListSiteResponse, error)
func (UnimplementedSiteServiceServer) UpdateSite ¶
func (UnimplementedSiteServiceServer) UpdateSite(context.Context, *UpdateSiteRequest) (*UpdateSiteResponse, error)
type UnsafeSiteServiceServer ¶
type UnsafeSiteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSiteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SiteServiceServer will result in compilation errors.
type UpdateSiteRequest ¶
type UpdateSiteRequest struct { Site *Site `protobuf:"bytes,1,opt,name=site,proto3" json:"site,omitempty"` // contains filtered or unexported fields }
func (*UpdateSiteRequest) Descriptor
deprecated
func (*UpdateSiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSiteRequest.ProtoReflect.Descriptor instead.
func (*UpdateSiteRequest) GetSite ¶
func (x *UpdateSiteRequest) GetSite() *Site
func (*UpdateSiteRequest) ProtoMessage ¶
func (*UpdateSiteRequest) ProtoMessage()
func (*UpdateSiteRequest) ProtoReflect ¶
func (x *UpdateSiteRequest) ProtoReflect() protoreflect.Message
func (*UpdateSiteRequest) Reset ¶
func (x *UpdateSiteRequest) Reset()
func (*UpdateSiteRequest) String ¶
func (x *UpdateSiteRequest) String() string
type UpdateSiteResponse ¶
type UpdateSiteResponse struct { Site *Site `protobuf:"bytes,1,opt,name=site,proto3" json:"site,omitempty"` // contains filtered or unexported fields }
func (*UpdateSiteResponse) Descriptor
deprecated
func (*UpdateSiteResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSiteResponse.ProtoReflect.Descriptor instead.
func (*UpdateSiteResponse) GetSite ¶
func (x *UpdateSiteResponse) GetSite() *Site
func (*UpdateSiteResponse) ProtoMessage ¶
func (*UpdateSiteResponse) ProtoMessage()
func (*UpdateSiteResponse) ProtoReflect ¶
func (x *UpdateSiteResponse) ProtoReflect() protoreflect.Message
func (*UpdateSiteResponse) Reset ¶
func (x *UpdateSiteResponse) Reset()
func (*UpdateSiteResponse) String ¶
func (x *UpdateSiteResponse) String() string