Documentation
¶
Overview ¶
Package legacyinventory includes gerrit-related functions. This is a TEMP package to mitigate crbug.com/1011236 & b/142340801. Mostly duplicated from crosskylabadmin, will delete it after inventory V2 is launched.
Index ¶
- func ChangeURL(changeNumber int) (string, error)
- type C
- func (c *C) AbandonChange(ctx context.Context, ci *gerritpb.ChangeInfo) error
- func (c *C) CreateChange(ctx context.Context, subject string) (*gerritpb.ChangeInfo, error)
- func (c *C) MakeDeleteHostChange(ctx context.Context, changeInfo *gerritpb.ChangeInfo, host string) error
- func (c *C) SubmitChange(ctx context.Context, changeInfo *gerritpb.ChangeInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type C ¶
type C struct {
// contains filtered or unexported fields
}
C includes clients required for inventory changes.
func (*C) AbandonChange ¶
AbandonChange abandon the change to gerrit.
func (*C) CreateChange ¶
CreateChange creates a gerrit change.
func (*C) MakeDeleteHostChange ¶
func (c *C) MakeDeleteHostChange(ctx context.Context, changeInfo *gerritpb.ChangeInfo, host string) error
MakeDeleteHostChange edit CL by deleting the inventory file of a given host.
func (*C) SubmitChange ¶
SubmitChange submit the change to gerrit.
Click to show internal directories.
Click to hide internal directories.