Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDependencyTrackerServer(s grpc.ServiceRegistrar, srv DependencyTrackerServer)
- type DependencyTrackerClient
- type DependencyTrackerServer
- type DeploymentUnit
- func (*DeploymentUnit) Descriptor() ([]byte, []int)deprecated
- func (x *DeploymentUnit) GetName() string
- func (x *DeploymentUnit) GetOrganization() string
- func (x *DeploymentUnit) GetType() string
- func (*DeploymentUnit) ProtoMessage()
- func (x *DeploymentUnit) ProtoReflect() protoreflect.Message
- func (x *DeploymentUnit) Reset()
- func (x *DeploymentUnit) String() string
- type NotificationMethod
- func (*NotificationMethod) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationMethod) GetType() string
- func (x *NotificationMethod) GetUri() string
- func (*NotificationMethod) ProtoMessage()
- func (x *NotificationMethod) ProtoReflect() protoreflect.Message
- func (x *NotificationMethod) Reset()
- func (x *NotificationMethod) String() string
- type NotifyDependencyRequest
- func (*NotifyDependencyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyDependencyRequest) GetDependencies() []*VersionedDeploymentUnit
- func (x *NotifyDependencyRequest) GetUnit() *VersionedDeploymentUnit
- func (*NotifyDependencyRequest) ProtoMessage()
- func (x *NotifyDependencyRequest) ProtoReflect() protoreflect.Message
- func (x *NotifyDependencyRequest) Reset()
- func (x *NotifyDependencyRequest) String() string
- type NotifyDependencyResponse
- type RegisterDeploymentUnitRequest
- func (*RegisterDeploymentUnitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterDeploymentUnitRequest) GetNotifications() []*NotificationMethod
- func (x *RegisterDeploymentUnitRequest) GetUnit() *DeploymentUnit
- func (*RegisterDeploymentUnitRequest) ProtoMessage()
- func (x *RegisterDeploymentUnitRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterDeploymentUnitRequest) Reset()
- func (x *RegisterDeploymentUnitRequest) String() string
- type RegisterDeploymentUnitResponse
- func (*RegisterDeploymentUnitResponse) Descriptor() ([]byte, []int)deprecated
- func (*RegisterDeploymentUnitResponse) ProtoMessage()
- func (x *RegisterDeploymentUnitResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterDeploymentUnitResponse) Reset()
- func (x *RegisterDeploymentUnitResponse) String() string
- type UnimplementedDependencyTrackerServer
- type UnsafeDependencyTrackerServer
- type VersionedDeploymentUnit
- func (*VersionedDeploymentUnit) Descriptor() ([]byte, []int)deprecated
- func (x *VersionedDeploymentUnit) GetUnit() *DeploymentUnit
- func (x *VersionedDeploymentUnit) GetVersion() string
- func (*VersionedDeploymentUnit) ProtoMessage()
- func (x *VersionedDeploymentUnit) ProtoReflect() protoreflect.Message
- func (x *VersionedDeploymentUnit) Reset()
- func (x *VersionedDeploymentUnit) String() string
Constants ¶
const ( DependencyTracker_RegisterDeploymentUnit_FullMethodName = "/terrarium.usage.DependencyTracker/RegisterDeploymentUnit" DependencyTracker_NotifyUsage_FullMethodName = "/terrarium.usage.DependencyTracker/NotifyUsage" )
Variables ¶
var DependencyTracker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "terrarium.usage.DependencyTracker", HandlerType: (*DependencyTrackerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterDeploymentUnit", Handler: _DependencyTracker_RegisterDeploymentUnit_Handler, }, { MethodName: "NotifyUsage", Handler: _DependencyTracker_NotifyUsage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/terrarium/usage/usage.proto", }
DependencyTracker_ServiceDesc is the grpc.ServiceDesc for DependencyTracker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pb_terrarium_usage_usage_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDependencyTrackerServer ¶
func RegisterDependencyTrackerServer(s grpc.ServiceRegistrar, srv DependencyTrackerServer)
Types ¶
type DependencyTrackerClient ¶
type DependencyTrackerClient interface { RegisterDeploymentUnit(ctx context.Context, in *RegisterDeploymentUnitRequest, opts ...grpc.CallOption) (*RegisterDeploymentUnitResponse, error) NotifyUsage(ctx context.Context, in *NotifyDependencyRequest, opts ...grpc.CallOption) (*NotifyDependencyResponse, error) }
DependencyTrackerClient is the client API for DependencyTracker 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 NewDependencyTrackerClient ¶
func NewDependencyTrackerClient(cc grpc.ClientConnInterface) DependencyTrackerClient
type DependencyTrackerServer ¶
type DependencyTrackerServer interface { RegisterDeploymentUnit(context.Context, *RegisterDeploymentUnitRequest) (*RegisterDeploymentUnitResponse, error) NotifyUsage(context.Context, *NotifyDependencyRequest) (*NotifyDependencyResponse, error) // contains filtered or unexported methods }
DependencyTrackerServer is the server API for DependencyTracker service. All implementations must embed UnimplementedDependencyTrackerServer for forward compatibility
type DeploymentUnit ¶
type DeploymentUnit struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Organization string `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeploymentUnit) Descriptor
deprecated
func (*DeploymentUnit) Descriptor() ([]byte, []int)
Deprecated: Use DeploymentUnit.ProtoReflect.Descriptor instead.
func (*DeploymentUnit) GetName ¶
func (x *DeploymentUnit) GetName() string
func (*DeploymentUnit) GetOrganization ¶
func (x *DeploymentUnit) GetOrganization() string
func (*DeploymentUnit) GetType ¶
func (x *DeploymentUnit) GetType() string
func (*DeploymentUnit) ProtoMessage ¶
func (*DeploymentUnit) ProtoMessage()
func (*DeploymentUnit) ProtoReflect ¶
func (x *DeploymentUnit) ProtoReflect() protoreflect.Message
func (*DeploymentUnit) Reset ¶
func (x *DeploymentUnit) Reset()
func (*DeploymentUnit) String ¶
func (x *DeploymentUnit) String() string
type NotificationMethod ¶
type NotificationMethod struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // contains filtered or unexported fields }
func (*NotificationMethod) Descriptor
deprecated
func (*NotificationMethod) Descriptor() ([]byte, []int)
Deprecated: Use NotificationMethod.ProtoReflect.Descriptor instead.
func (*NotificationMethod) GetType ¶
func (x *NotificationMethod) GetType() string
func (*NotificationMethod) GetUri ¶
func (x *NotificationMethod) GetUri() string
func (*NotificationMethod) ProtoMessage ¶
func (*NotificationMethod) ProtoMessage()
func (*NotificationMethod) ProtoReflect ¶
func (x *NotificationMethod) ProtoReflect() protoreflect.Message
func (*NotificationMethod) Reset ¶
func (x *NotificationMethod) Reset()
func (*NotificationMethod) String ¶
func (x *NotificationMethod) String() string
type NotifyDependencyRequest ¶
type NotifyDependencyRequest struct { Unit *VersionedDeploymentUnit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` Dependencies []*VersionedDeploymentUnit `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"` // contains filtered or unexported fields }
func (*NotifyDependencyRequest) Descriptor
deprecated
func (*NotifyDependencyRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotifyDependencyRequest.ProtoReflect.Descriptor instead.
func (*NotifyDependencyRequest) GetDependencies ¶
func (x *NotifyDependencyRequest) GetDependencies() []*VersionedDeploymentUnit
func (*NotifyDependencyRequest) GetUnit ¶
func (x *NotifyDependencyRequest) GetUnit() *VersionedDeploymentUnit
func (*NotifyDependencyRequest) ProtoMessage ¶
func (*NotifyDependencyRequest) ProtoMessage()
func (*NotifyDependencyRequest) ProtoReflect ¶
func (x *NotifyDependencyRequest) ProtoReflect() protoreflect.Message
func (*NotifyDependencyRequest) Reset ¶
func (x *NotifyDependencyRequest) Reset()
func (*NotifyDependencyRequest) String ¶
func (x *NotifyDependencyRequest) String() string
type NotifyDependencyResponse ¶
type NotifyDependencyResponse struct {
// contains filtered or unexported fields
}
func (*NotifyDependencyResponse) Descriptor
deprecated
func (*NotifyDependencyResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotifyDependencyResponse.ProtoReflect.Descriptor instead.
func (*NotifyDependencyResponse) ProtoMessage ¶
func (*NotifyDependencyResponse) ProtoMessage()
func (*NotifyDependencyResponse) ProtoReflect ¶
func (x *NotifyDependencyResponse) ProtoReflect() protoreflect.Message
func (*NotifyDependencyResponse) Reset ¶
func (x *NotifyDependencyResponse) Reset()
func (*NotifyDependencyResponse) String ¶
func (x *NotifyDependencyResponse) String() string
type RegisterDeploymentUnitRequest ¶
type RegisterDeploymentUnitRequest struct { Unit *DeploymentUnit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` Notifications []*NotificationMethod `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
func (*RegisterDeploymentUnitRequest) Descriptor
deprecated
func (*RegisterDeploymentUnitRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterDeploymentUnitRequest.ProtoReflect.Descriptor instead.
func (*RegisterDeploymentUnitRequest) GetNotifications ¶
func (x *RegisterDeploymentUnitRequest) GetNotifications() []*NotificationMethod
func (*RegisterDeploymentUnitRequest) GetUnit ¶
func (x *RegisterDeploymentUnitRequest) GetUnit() *DeploymentUnit
func (*RegisterDeploymentUnitRequest) ProtoMessage ¶
func (*RegisterDeploymentUnitRequest) ProtoMessage()
func (*RegisterDeploymentUnitRequest) ProtoReflect ¶
func (x *RegisterDeploymentUnitRequest) ProtoReflect() protoreflect.Message
func (*RegisterDeploymentUnitRequest) Reset ¶
func (x *RegisterDeploymentUnitRequest) Reset()
func (*RegisterDeploymentUnitRequest) String ¶
func (x *RegisterDeploymentUnitRequest) String() string
type RegisterDeploymentUnitResponse ¶
type RegisterDeploymentUnitResponse struct {
// contains filtered or unexported fields
}
func (*RegisterDeploymentUnitResponse) Descriptor
deprecated
func (*RegisterDeploymentUnitResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterDeploymentUnitResponse.ProtoReflect.Descriptor instead.
func (*RegisterDeploymentUnitResponse) ProtoMessage ¶
func (*RegisterDeploymentUnitResponse) ProtoMessage()
func (*RegisterDeploymentUnitResponse) ProtoReflect ¶
func (x *RegisterDeploymentUnitResponse) ProtoReflect() protoreflect.Message
func (*RegisterDeploymentUnitResponse) Reset ¶
func (x *RegisterDeploymentUnitResponse) Reset()
func (*RegisterDeploymentUnitResponse) String ¶
func (x *RegisterDeploymentUnitResponse) String() string
type UnimplementedDependencyTrackerServer ¶
type UnimplementedDependencyTrackerServer struct { }
UnimplementedDependencyTrackerServer must be embedded to have forward compatible implementations.
func (UnimplementedDependencyTrackerServer) NotifyUsage ¶
func (UnimplementedDependencyTrackerServer) NotifyUsage(context.Context, *NotifyDependencyRequest) (*NotifyDependencyResponse, error)
func (UnimplementedDependencyTrackerServer) RegisterDeploymentUnit ¶
func (UnimplementedDependencyTrackerServer) RegisterDeploymentUnit(context.Context, *RegisterDeploymentUnitRequest) (*RegisterDeploymentUnitResponse, error)
type UnsafeDependencyTrackerServer ¶
type UnsafeDependencyTrackerServer interface {
// contains filtered or unexported methods
}
UnsafeDependencyTrackerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DependencyTrackerServer will result in compilation errors.
type VersionedDeploymentUnit ¶
type VersionedDeploymentUnit struct { Unit *DeploymentUnit `protobuf:"bytes,1,opt,name=unit,proto3" json:"unit,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*VersionedDeploymentUnit) Descriptor
deprecated
func (*VersionedDeploymentUnit) Descriptor() ([]byte, []int)
Deprecated: Use VersionedDeploymentUnit.ProtoReflect.Descriptor instead.
func (*VersionedDeploymentUnit) GetUnit ¶
func (x *VersionedDeploymentUnit) GetUnit() *DeploymentUnit
func (*VersionedDeploymentUnit) GetVersion ¶
func (x *VersionedDeploymentUnit) GetVersion() string
func (*VersionedDeploymentUnit) ProtoMessage ¶
func (*VersionedDeploymentUnit) ProtoMessage()
func (*VersionedDeploymentUnit) ProtoReflect ¶
func (x *VersionedDeploymentUnit) ProtoReflect() protoreflect.Message
func (*VersionedDeploymentUnit) Reset ¶
func (x *VersionedDeploymentUnit) Reset()
func (*VersionedDeploymentUnit) String ¶
func (x *VersionedDeploymentUnit) String() string