Documentation ¶
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
}
func (*Client) Verify ¶
func (c *Client) Verify(ctx context.Context, args *commandargs.Shell, action commandargs.CommandType, repo string) (*Response, error)
type CustomPayload ¶
type CustomPayload struct { Action string `json:"action"` Data CustomPayloadData `json:"data"` }
type CustomPayloadData ¶
type CustomPayloadData struct { ApiEndpoints []string `json:"api_endpoints"` Username string `json:"gl_username"` PrimaryRepo string `json:"primary_repo"` UserId string `json:"gl_id,omitempty"` RequestHeaders map[string]string `json:"request_headers"` GeoProxyDirectToPrimary bool `json:"geo_proxy_direct_to_primary"` }
type Request ¶
type Request struct { Action commandargs.CommandType `json:"action"` Repo string `json:"project"` Changes string `json:"changes"` Protocol string `json:"protocol"` KeyId string `json:"key_id,omitempty"` Username string `json:"username,omitempty"` Krb5Principal string `json:"krb5principal,omitempty"` CheckIp string `json:"check_ip,omitempty"` }
type Response ¶
type Response struct { Success bool `json:"status"` Message string `json:"message"` Repo string `json:"gl_repository"` UserId string `json:"gl_id"` KeyType string `json:"gl_key_type"` KeyId int `json:"gl_key_id"` Username string `json:"gl_username"` GitConfigOptions []string `json:"git_config_options"` Gitaly Gitaly `json:"gitaly"` GitProtocol string `json:"git_protocol"` Payload CustomPayload `json:"payload"` ConsoleMessages []string `json:"gl_console_messages"` Who string StatusCode int }
func (*Response) IsCustomAction ¶
Click to show internal directories.
Click to hide internal directories.