v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterReportingServiceServer

func RegisterReportingServiceServer(s *grpc.Server, srv ReportingServiceServer)

Types

type InstanceMetadata

type InstanceMetadata struct {
	Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// should be unique per reporting source, and unchanging over the life of the reporting source
	// this repo offers a SignatureManager type that can maintain a unique signature
	Signature            string   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InstanceMetadata) Descriptor

func (*InstanceMetadata) Descriptor() ([]byte, []int)

func (*InstanceMetadata) GetProduct

func (m *InstanceMetadata) GetProduct() *Product

func (*InstanceMetadata) GetSignature added in v0.1.0

func (m *InstanceMetadata) GetSignature() string

func (*InstanceMetadata) ProtoMessage

func (*InstanceMetadata) ProtoMessage()

func (*InstanceMetadata) Reset

func (m *InstanceMetadata) Reset()

func (*InstanceMetadata) String

func (m *InstanceMetadata) String() string

func (*InstanceMetadata) XXX_DiscardUnknown

func (m *InstanceMetadata) XXX_DiscardUnknown()

func (*InstanceMetadata) XXX_Marshal

func (m *InstanceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstanceMetadata) XXX_Merge

func (m *InstanceMetadata) XXX_Merge(src proto.Message)

func (*InstanceMetadata) XXX_Size

func (m *InstanceMetadata) XXX_Size() int

func (*InstanceMetadata) XXX_Unmarshal

func (m *InstanceMetadata) XXX_Unmarshal(b []byte) error

type Product added in v0.1.0

type Product struct {
	Product              string   `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	Version              string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Arch                 string   `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"`
	Os                   string   `protobuf:"bytes,4,opt,name=os,proto3" json:"os,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

information that every reporting source should include

func (*Product) Descriptor added in v0.1.0

func (*Product) Descriptor() ([]byte, []int)

func (*Product) GetArch added in v0.1.0

func (m *Product) GetArch() string

func (*Product) GetOs added in v0.1.0

func (m *Product) GetOs() string

func (*Product) GetProduct added in v0.1.0

func (m *Product) GetProduct() string

func (*Product) GetVersion added in v0.1.0

func (m *Product) GetVersion() string

func (*Product) ProtoMessage added in v0.1.0

func (*Product) ProtoMessage()

func (*Product) Reset added in v0.1.0

func (m *Product) Reset()

func (*Product) String added in v0.1.0

func (m *Product) String() string

func (*Product) XXX_DiscardUnknown added in v0.1.0

func (m *Product) XXX_DiscardUnknown()

func (*Product) XXX_Marshal added in v0.1.0

func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Product) XXX_Merge added in v0.1.0

func (m *Product) XXX_Merge(src proto.Message)

func (*Product) XXX_Size added in v0.1.0

func (m *Product) XXX_Size() int

func (*Product) XXX_Unmarshal added in v0.1.0

func (m *Product) XXX_Unmarshal(b []byte) error

type ReportingServiceClient

type ReportingServiceClient interface {
	ReportUsage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error)
}

ReportingServiceClient is the client API for ReportingService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewReportingServiceClient

func NewReportingServiceClient(cc *grpc.ClientConn) ReportingServiceClient

type ReportingServiceServer

type ReportingServiceServer interface {
	ReportUsage(context.Context, *UsageRequest) (*UsageResponse, error)
}

ReportingServiceServer is the server API for ReportingService service.

type UnimplementedReportingServiceServer

type UnimplementedReportingServiceServer struct {
}

UnimplementedReportingServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedReportingServiceServer) ReportUsage

type UsageRequest

type UsageRequest struct {
	InstanceMetadata *InstanceMetadata `protobuf:"bytes,1,opt,name=instance_metadata,json=instanceMetadata,proto3" json:"instance_metadata,omitempty"`
	// arbitrary key/value pairs - each reporting source can choose what to include here
	Payload              map[string]string `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*UsageRequest) Descriptor

func (*UsageRequest) Descriptor() ([]byte, []int)

func (*UsageRequest) GetInstanceMetadata

func (m *UsageRequest) GetInstanceMetadata() *InstanceMetadata

func (*UsageRequest) GetPayload

func (m *UsageRequest) GetPayload(ctx context.Context) map[string]string

func (*UsageRequest) ProtoMessage

func (*UsageRequest) ProtoMessage()

func (*UsageRequest) Reset

func (m *UsageRequest) Reset()

func (*UsageRequest) String

func (m *UsageRequest) String() string

func (*UsageRequest) XXX_DiscardUnknown

func (m *UsageRequest) XXX_DiscardUnknown()

func (*UsageRequest) XXX_Marshal

func (m *UsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UsageRequest) XXX_Merge

func (m *UsageRequest) XXX_Merge(src proto.Message)

func (*UsageRequest) XXX_Size

func (m *UsageRequest) XXX_Size() int

func (*UsageRequest) XXX_Unmarshal

func (m *UsageRequest) XXX_Unmarshal(b []byte) error

type UsageResponse

type UsageResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UsageResponse) Descriptor

func (*UsageResponse) Descriptor() ([]byte, []int)

func (*UsageResponse) ProtoMessage

func (*UsageResponse) ProtoMessage()

func (*UsageResponse) Reset

func (m *UsageResponse) Reset()

func (*UsageResponse) String

func (m *UsageResponse) String() string

func (*UsageResponse) XXX_DiscardUnknown

func (m *UsageResponse) XXX_DiscardUnknown()

func (*UsageResponse) XXX_Marshal

func (m *UsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UsageResponse) XXX_Merge

func (m *UsageResponse) XXX_Merge(src proto.Message)

func (*UsageResponse) XXX_Size

func (m *UsageResponse) XXX_Size() int

func (*UsageResponse) XXX_Unmarshal

func (m *UsageResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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