updater

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

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

func (*DashboardTabIdentifier) Descriptor

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

func (*DashboardTabIdentifier) GetDashboardName

func (m *DashboardTabIdentifier) GetDashboardName() string

func (*DashboardTabIdentifier) GetDashboardTab

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

func (*DashboardTabIdentifier) ProtoMessage

func (*DashboardTabIdentifier) ProtoMessage()

func (*DashboardTabIdentifier) Reset

func (m *DashboardTabIdentifier) Reset()

func (*DashboardTabIdentifier) String

func (m *DashboardTabIdentifier) String() string

func (*DashboardTabIdentifier) XXX_DiscardUnknown

func (m *DashboardTabIdentifier) XXX_DiscardUnknown()

func (*DashboardTabIdentifier) XXX_Marshal

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

func (*DashboardTabIdentifier) XXX_Merge

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

func (*DashboardTabIdentifier) XXX_Size

func (m *DashboardTabIdentifier) XXX_Size() int

func (*DashboardTabIdentifier) XXX_Unmarshal

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

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 */
	XXX_NoUnkeyedLiteral    struct{}                  `json:"-"`
	XXX_unrecognized        []byte                    `json:"-"`
	XXX_sizecache           int32                     `json:"-"`
}

An updater request to update a test group.

func (*UpdateRequest) Descriptor

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

func (*UpdateRequest) GetDashboardTabIdentifiers

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

func (*UpdateRequest) GetTestGroup

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

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

func (*UpdateRequest) XXX_DiscardUnknown

func (m *UpdateRequest) XXX_DiscardUnknown()

func (*UpdateRequest) XXX_Marshal

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

func (*UpdateRequest) XXX_Merge

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

func (*UpdateRequest) XXX_Size

func (m *UpdateRequest) XXX_Size() int

func (*UpdateRequest) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

An updater response after updating a test group.

func (*UpdateResponse) Descriptor

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

func (*UpdateResponse) GetDashboardTabSummaries

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

func (*UpdateResponse) GetOutputSizeBytes

func (m *UpdateResponse) GetOutputSizeBytes() uint32

func (*UpdateResponse) GetUpdateEntry

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

func (*UpdateResponse) GetUpdateTimeMillis

func (m *UpdateResponse) GetUpdateTimeMillis() uint32

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

func (*UpdateResponse) XXX_DiscardUnknown

func (m *UpdateResponse) XXX_DiscardUnknown()

func (*UpdateResponse) XXX_Marshal

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

func (*UpdateResponse) XXX_Merge

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

func (*UpdateResponse) XXX_Size

func (m *UpdateResponse) XXX_Size() int

func (*UpdateResponse) XXX_Unmarshal

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

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