Documentation ¶
Overview ¶
Package gitauditevent handles Git audit events for GitLab.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles communication with the GitLab audit event API.
func (*Client) Audit ¶
func (c *Client) Audit(ctx context.Context, username string, action commandargs.CommandType, repo string, packfileStats *pb.PackfileNegotiationStatistics) error
Audit sends an audit event to the GitLab API.
type Request ¶
type Request struct { Action commandargs.CommandType `json:"action"` Protocol string `json:"protocol"` Repo string `json:"gl_repository"` Username string `json:"username"` PackfileStats *pb.PackfileNegotiationStatistics `json:"packfile_stats,omitempty"` }
Request represents the data for a Git audit event.
Click to show internal directories.
Click to hide internal directories.