Documentation
¶
Index ¶
- Constants
- type Client
- func (a *Client) Assets() *GetAndPatchClientWithCommentAndReview[model.Asset]
- func (a *Client) BaseUrl() string
- func (a *Client) BusinessContinuities() *GetAndPatchClientWithCommentAndReview[model.BusinessContinuity]
- func (a *Client) Groups() *ReadWriteClientV2[model.Group]
- func (a *Client) Projects() *GetAndPatchClientWithComment[model.Project]
- func (a *Client) RiskExceptions() *GetAndPatchClient[model.RiskException]
- func (a *Client) RiskThreats() *GetClient[model.RiskThreat]
- func (a *Client) Risks() *GetAndPatchClientWithCommentAndReview[model.Risk]
- func (a *Client) SecurityPolicies() *GetAndPatchClient[model.SecurityPolicy]
- func (a *Client) SecurityPolicyReviews() *GetAndPatchClient[model.SecurityPolicyReview]
- func (a *Client) SecurityServices() *GetAndPatchClientWithComment[model.SecurityService]
- func (a *Client) ThirdParties() *GetAndPatchClient[model.ThirdParty]
- func (a *Client) ThirdPartyRisks() *GetAndPatchClientWithCommentAndReview[model.ThirdPartyRisk]
- func (a *Client) Users() *ReadWriteClientV2[model.User]
- type CommentsClient
- func (a *CommentsClient) DeleteComment(ctx context.Context, foreignKey, id int32) error
- func (a *CommentsClient) GetComment(ctx context.Context, foreignKey, id int32) (model.Comment, error)
- func (a *CommentsClient) GetComments(ctx context.Context, foreignKey int32) ([]model.Comment, error)
- func (a *CommentsClient) PostComment(ctx context.Context, foreignKey int32, data *model.Comment) (*model.Comment, error)
- type GetAndPatchClient
- type GetAndPatchClientWithComment
- type GetAndPatchClientWithCommentAndReview
- type GetClient
- type Pagination
- type ReadWriteClientV2
- type ReviewsClient
Constants ¶
View Source
const ( PageSize = 200 DefaultTimeoutSeconds = 30 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Assets ¶ added in v0.15.0
func (a *Client) Assets() *GetAndPatchClientWithCommentAndReview[model.Asset]
func (*Client) BusinessContinuities ¶ added in v0.15.0
func (a *Client) BusinessContinuities() *GetAndPatchClientWithCommentAndReview[model.BusinessContinuity]
func (*Client) Projects ¶ added in v0.15.0
func (a *Client) Projects() *GetAndPatchClientWithComment[model.Project]
func (*Client) RiskExceptions ¶ added in v0.15.0
func (a *Client) RiskExceptions() *GetAndPatchClient[model.RiskException]
func (*Client) RiskThreats ¶ added in v0.15.0
func (a *Client) RiskThreats() *GetClient[model.RiskThreat]
func (*Client) Risks ¶ added in v0.15.0
func (a *Client) Risks() *GetAndPatchClientWithCommentAndReview[model.Risk]
func (*Client) SecurityPolicies ¶ added in v0.15.0
func (a *Client) SecurityPolicies() *GetAndPatchClient[model.SecurityPolicy]
func (*Client) SecurityPolicyReviews ¶ added in v0.15.0
func (a *Client) SecurityPolicyReviews() *GetAndPatchClient[model.SecurityPolicyReview]
func (*Client) SecurityServices ¶ added in v0.15.0
func (a *Client) SecurityServices() *GetAndPatchClientWithComment[model.SecurityService]
func (*Client) ThirdParties ¶ added in v0.15.0
func (a *Client) ThirdParties() *GetAndPatchClient[model.ThirdParty]
func (*Client) ThirdPartyRisks ¶ added in v0.15.0
func (a *Client) ThirdPartyRisks() *GetAndPatchClientWithCommentAndReview[model.ThirdPartyRisk]
type CommentsClient ¶ added in v0.9.0
type CommentsClient struct {
// contains filtered or unexported fields
}
func (*CommentsClient) DeleteComment ¶ added in v0.9.0
func (a *CommentsClient) DeleteComment(ctx context.Context, foreignKey, id int32) error
func (*CommentsClient) GetComment ¶ added in v0.9.0
func (*CommentsClient) GetComments ¶ added in v0.9.0
type GetAndPatchClient ¶ added in v0.15.0
func (*GetAndPatchClient[K]) Delete ¶ added in v0.15.0
func (a *GetAndPatchClient[K]) Delete(ctx context.Context, id int32) error
type GetAndPatchClientWithComment ¶ added in v0.15.0
type GetAndPatchClientWithComment[K any] struct { GetAndPatchClient[K] }
func (*GetAndPatchClientWithComment[K]) Comments ¶ added in v0.15.0
func (a *GetAndPatchClientWithComment[K]) Comments() *CommentsClient
type GetAndPatchClientWithCommentAndReview ¶ added in v0.15.0
type GetAndPatchClientWithCommentAndReview[K any] struct { GetAndPatchClientWithComment[K] // contains filtered or unexported fields }
func (*GetAndPatchClientWithCommentAndReview[K]) Reviews ¶ added in v0.15.0
func (a *GetAndPatchClientWithCommentAndReview[K]) Reviews() *ReviewsClient
type GetClient ¶ added in v0.15.0
type GetClient[K any] struct { // contains filtered or unexported fields }
type Pagination ¶
type ReadWriteClientV2 ¶ added in v0.17.3
func (*ReadWriteClientV2[K]) Delete ¶ added in v0.17.3
func (a *ReadWriteClientV2[K]) Delete(ctx context.Context, id int32) error
type ReviewsClient ¶ added in v0.11.0
type ReviewsClient struct {
Model string
GetAndPatchClient[model.Review]
}
Click to show internal directories.
Click to hide internal directories.