usage

package
v0.0.62-webhook-test.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DependencyTracker_RegisterDeploymentUnit_FullMethodName = "/terrarium.usage.DependencyTracker/RegisterDeploymentUnit"
	DependencyTracker_NotifyUsage_FullMethodName            = "/terrarium.usage.DependencyTracker/NotifyUsage"
)

Variables

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

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

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 (*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 (*RegisterDeploymentUnitRequest) ProtoMessage

func (*RegisterDeploymentUnitRequest) ProtoMessage()

func (*RegisterDeploymentUnitRequest) ProtoReflect

func (*RegisterDeploymentUnitRequest) Reset

func (x *RegisterDeploymentUnitRequest) Reset()

func (*RegisterDeploymentUnitRequest) 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 (*RegisterDeploymentUnitResponse) Reset

func (x *RegisterDeploymentUnitResponse) Reset()

func (*RegisterDeploymentUnitResponse) String

type UnimplementedDependencyTrackerServer

type UnimplementedDependencyTrackerServer struct {
}

UnimplementedDependencyTrackerServer must be embedded to have forward compatible implementations.

func (UnimplementedDependencyTrackerServer) NotifyUsage

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 (*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

Jump to

Keyboard shortcuts

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