Documentation
¶
Index ¶
- func ApproveRequest(ac *client.AlpaconClient, id string, opts ApproveOptions) error
- func CancelRequest(ac *client.AlpaconClient, id string) error
- func GetApprovalRequestRaw(ac *client.AlpaconClient, id string) ([]byte, error)
- func RejectRequest(ac *client.AlpaconClient, id string) error
- type ApprovalRequest
- type ApprovalRequestAttributes
- type ApproveOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveRequest ¶
func ApproveRequest(ac *client.AlpaconClient, id string, opts ApproveOptions) error
func CancelRequest ¶
func CancelRequest(ac *client.AlpaconClient, id string) error
func GetApprovalRequestRaw ¶
func GetApprovalRequestRaw(ac *client.AlpaconClient, id string) ([]byte, error)
func RejectRequest ¶
func RejectRequest(ac *client.AlpaconClient, id string) error
Types ¶
type ApprovalRequest ¶
type ApprovalRequest struct {
ID string `json:"id"`
RequestType string `json:"request_type"`
RequestData string `json:"request_data"`
Description string `json:"description"`
Status string `json:"status"`
RequestedBy *types.UserSummary `json:"requested_by"`
ReviewedBy *types.UserSummary `json:"reviewed_by"`
ReviewedAt *time.Time `json:"reviewed_at"`
AddedAt time.Time `json:"added_at"`
}
func GetApprovalRequest ¶
func GetApprovalRequest(ac *client.AlpaconClient, id string) (*ApprovalRequest, error)
type ApprovalRequestAttributes ¶
type ApprovalRequestAttributes struct {
ID string `json:"id" table:"ID"`
Type string `json:"request_type" table:"Type"`
Status string `json:"status" table:"Status"`
RequestData string `json:"request_data" table:"Request"`
RequestedBy string `json:"requested_by" table:"Requested By"`
AddedAt string `json:"added_at" table:"Added At"`
}
func ListApprovalRequests ¶
func ListApprovalRequests(ac *client.AlpaconClient, status, requestType string) ([]ApprovalRequestAttributes, error)
func ListMyApprovalRequests ¶
func ListMyApprovalRequests(ac *client.AlpaconClient, status, requestType string) ([]ApprovalRequestAttributes, error)
type ApproveOptions ¶
Click to show internal directories.
Click to hide internal directories.