updater

package
v0.0.126 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_updater_proto protoreflect.FileDescriptor

Functions

func RegisterUpdaterServer

func RegisterUpdaterServer(s *grpc.Server, srv UpdaterServer)

Types

type DashboardTabIdentifier

type DashboardTabIdentifier struct {

	// The name of a dashboard containing the dashboard tab.
	DashboardName string `protobuf:"bytes,1,opt,name=dashboard_name,json=dashboardName,proto3" json:"dashboard_name,omitempty"`
	// The dashboard tab to update.
	DashboardTab *config.DashboardTab `protobuf:"bytes,2,opt,name=dashboard_tab,json=dashboardTab,proto3" json:"dashboard_tab,omitempty"`
	// contains filtered or unexported fields
}

An identifier of a dashboard tab, i.e., the name of the dashboard and tab.

func (*DashboardTabIdentifier) Descriptor deprecated

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

Deprecated: Use DashboardTabIdentifier.ProtoReflect.Descriptor instead.

func (*DashboardTabIdentifier) GetDashboardName

func (x *DashboardTabIdentifier) GetDashboardName() string

func (*DashboardTabIdentifier) GetDashboardTab

func (x *DashboardTabIdentifier) GetDashboardTab() *config.DashboardTab

func (*DashboardTabIdentifier) ProtoMessage

func (*DashboardTabIdentifier) ProtoMessage()

func (*DashboardTabIdentifier) ProtoReflect added in v0.0.91

func (x *DashboardTabIdentifier) ProtoReflect() protoreflect.Message

func (*DashboardTabIdentifier) Reset

func (x *DashboardTabIdentifier) Reset()

func (*DashboardTabIdentifier) String

func (x *DashboardTabIdentifier) String() string

type UnimplementedUpdaterServer

type UnimplementedUpdaterServer struct {
}

UnimplementedUpdaterServer can be embedded to have forward compatible implementations.

func (*UnimplementedUpdaterServer) Update

func (*UnimplementedUpdaterServer) UpdateBugs

type UpdateRequest

type UpdateRequest struct {

	// The test group configuration to update.
	TestGroup *config.TestGroup `protobuf:"bytes,1,opt,name=test_group,json=testGroup,proto3" json:"test_group,omitempty"`
	// A list of dashboards tabs backed by the group being updated.
	DashboardTabIdentifiers []*DashboardTabIdentifier `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

An updater request to update a test group.

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetDashboardTabIdentifiers

func (x *UpdateRequest) GetDashboardTabIdentifiers() []*DashboardTabIdentifier

func (*UpdateRequest) GetTestGroup

func (x *UpdateRequest) GetTestGroup() *config.TestGroup

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect added in v0.0.91

func (x *UpdateRequest) ProtoReflect() protoreflect.Message

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {

	// The time taken to perform the update in milliseconds.
	UpdateTimeMillis uint32 `protobuf:"varint,1,opt,name=update_time_millis,json=updateTimeMillis,proto3" json:"update_time_millis,omitempty"`
	// The size of the compressed output file in bytes.
	OutputSizeBytes uint32 `protobuf:"varint,2,opt,name=output_size_bytes,json=outputSizeBytes,proto3" json:"output_size_bytes,omitempty"`
	// Summaries of dashboard tabs associated with this group.
	DashboardTabSummaries []*summary.DashboardTabSummary `` /* 126-byte string literal not displayed */
	// Metrics associated with the update for this group.
	UpdateEntry *state.UpdateInfo `protobuf:"bytes,4,opt,name=update_entry,json=updateEntry,proto3" json:"update_entry,omitempty"`
	// contains filtered or unexported fields
}

An updater response after updating a test group.

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetDashboardTabSummaries

func (x *UpdateResponse) GetDashboardTabSummaries() []*summary.DashboardTabSummary

func (*UpdateResponse) GetOutputSizeBytes

func (x *UpdateResponse) GetOutputSizeBytes() uint32

func (*UpdateResponse) GetUpdateEntry

func (x *UpdateResponse) GetUpdateEntry() *state.UpdateInfo

func (*UpdateResponse) GetUpdateTimeMillis

func (x *UpdateResponse) GetUpdateTimeMillis() uint32

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect added in v0.0.91

func (x *UpdateResponse) ProtoReflect() protoreflect.Message

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

type UpdaterClient

type UpdaterClient interface {
	// Updates a test group state object either incrementally or by creating it.
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	// Updates a bug state object for a given test group.
	UpdateBugs(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
}

UpdaterClient is the client API for Updater service.

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

func NewUpdaterClient

func NewUpdaterClient(cc grpc.ClientConnInterface) UpdaterClient

type UpdaterServer

type UpdaterServer interface {
	// Updates a test group state object either incrementally or by creating it.
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// Updates a bug state object for a given test group.
	UpdateBugs(context.Context, *UpdateRequest) (*UpdateResponse, error)
}

UpdaterServer is the server API for Updater service.

Jump to

Keyboard shortcuts

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