Documentation ¶
Overview ¶
Package codegurureviewer provides the client and types for making API requests to CodeGuruReviewer.
This section provides documentation for the Amazon CodeGuru Reviewer API operations. Amazon CodeGuru Reviewer is a service that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommends fixes in your Java code.
By proactively detecting and providing recommendations for addressing code defects and implementing best practices, CodeGuru Reviewer improves the overall quality and maintainability of your code base during the code review stage. For more information about CodeGuru Reviewer, see the Amazon CodeGuru Reviewer User Guide (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/welcome.html).
See https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19 for more information on this service.
See codegurureviewer package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/codegurureviewer/
Using the Client ¶
To use CodeGuruReviewer with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the CodeGuruReviewer client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/codegurureviewer/#New
Index ¶
- Constants
- type AssociateRepositoryInput
- type AssociateRepositoryOutput
- type AssociateRepositoryRequest
- type AssociateRepositoryResponse
- type Client
- func (c *Client) AssociateRepositoryRequest(input *AssociateRepositoryInput) AssociateRepositoryRequest
- func (c *Client) DescribeCodeReviewRequest(input *DescribeCodeReviewInput) DescribeCodeReviewRequest
- func (c *Client) DescribeRecommendationFeedbackRequest(input *DescribeRecommendationFeedbackInput) DescribeRecommendationFeedbackRequest
- func (c *Client) DescribeRepositoryAssociationRequest(input *DescribeRepositoryAssociationInput) DescribeRepositoryAssociationRequest
- func (c *Client) DisassociateRepositoryRequest(input *DisassociateRepositoryInput) DisassociateRepositoryRequest
- func (c *Client) ListCodeReviewsRequest(input *ListCodeReviewsInput) ListCodeReviewsRequest
- func (c *Client) ListRecommendationFeedbackRequest(input *ListRecommendationFeedbackInput) ListRecommendationFeedbackRequest
- func (c *Client) ListRecommendationsRequest(input *ListRecommendationsInput) ListRecommendationsRequest
- func (c *Client) ListRepositoryAssociationsRequest(input *ListRepositoryAssociationsInput) ListRepositoryAssociationsRequest
- func (c *Client) PutRecommendationFeedbackRequest(input *PutRecommendationFeedbackInput) PutRecommendationFeedbackRequest
- type CodeCommitRepository
- type CodeReview
- type CodeReviewSummary
- type CommitDiffSourceCodeType
- type DescribeCodeReviewInput
- type DescribeCodeReviewOutput
- type DescribeCodeReviewRequest
- type DescribeCodeReviewResponse
- type DescribeRecommendationFeedbackInput
- type DescribeRecommendationFeedbackOutput
- type DescribeRecommendationFeedbackRequest
- type DescribeRecommendationFeedbackResponse
- type DescribeRepositoryAssociationInput
- type DescribeRepositoryAssociationOutput
- type DescribeRepositoryAssociationRequest
- type DescribeRepositoryAssociationResponse
- type DisassociateRepositoryInput
- type DisassociateRepositoryOutput
- type DisassociateRepositoryRequest
- type DisassociateRepositoryResponse
- type JobState
- type ListCodeReviewsInput
- type ListCodeReviewsOutput
- type ListCodeReviewsPaginator
- type ListCodeReviewsRequest
- type ListCodeReviewsResponse
- type ListRecommendationFeedbackInput
- type ListRecommendationFeedbackOutput
- type ListRecommendationFeedbackPaginator
- type ListRecommendationFeedbackRequest
- type ListRecommendationFeedbackResponse
- type ListRecommendationsInput
- type ListRecommendationsOutput
- type ListRecommendationsPaginator
- type ListRecommendationsRequest
- type ListRecommendationsResponse
- type ListRepositoryAssociationsInput
- type ListRepositoryAssociationsOutput
- type ListRepositoryAssociationsPaginator
- type ListRepositoryAssociationsRequest
- type ListRepositoryAssociationsResponse
- type Metrics
- type MetricsSummary
- type ProviderType
- type PutRecommendationFeedbackInput
- type PutRecommendationFeedbackOutput
- type PutRecommendationFeedbackRequest
- type PutRecommendationFeedbackResponse
- type Reaction
- type RecommendationFeedback
- type RecommendationFeedbackSummary
- type RecommendationSummary
- type Repository
- type RepositoryAssociation
- type RepositoryAssociationState
- type RepositoryAssociationSummary
- type SourceCodeType
- type ThirdPartySourceRepository
- type Type
Constants ¶
const ( ServiceName = "CodeGuruReviewer" // Service's name ServiceID = "CodeGuruReviewer" // Service's identifier EndpointsID = "codeguru-reviewer" // Service's Endpoint identifier )
const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // You do not have sufficient access to perform this action. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeConflictException for service response error code // "ConflictException". // // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. ErrCodeConflictException = "ConflictException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // The server encountered an internal error and is unable to complete the request. ErrCodeInternalServerException = "InternalServerException" // ErrCodeNotFoundException for service response error code // "NotFoundException". // // The resource specified in the request was not found. ErrCodeNotFoundException = "NotFoundException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The resource specified in the request was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeThrottlingException for service response error code // "ThrottlingException". // // The request was denied due to request throttling. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeValidationException for service response error code // "ValidationException". // // The input fails to satisfy the specified constraints. ErrCodeValidationException = "ValidationException" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociateRepositoryInput ¶
type AssociateRepositoryInput struct { // Unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. // // To add a new repository association, this parameter specifies a unique identifier // for the new repository association that helps ensure idempotency. // // If you use the AWS CLI or one of the AWS SDKs to call this operation, you // can leave this parameter empty. The CLI or SDK generates a random UUID for // you and includes that in the request. If you don't use the SDK and instead // generate a raw HTTP request to the Secrets Manager service endpoint, you // must generate a ClientRequestToken yourself for new versions and include // that value in the request. // // You typically interact with this value if you implement your own retry logic // and want to ensure that a given repository association is not created twice. // We recommend that you generate a UUID-type value to ensure uniqueness within // the specified repository association. // // Amazon CodeGuru Reviewer uses this value to prevent the accidental creation // of duplicate repository associations if there are failures and retries. ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` // The repository to associate. // // Repository is a required field Repository *Repository `type:"structure" required:"true"` // contains filtered or unexported fields }
func (AssociateRepositoryInput) MarshalFields ¶
func (s AssociateRepositoryInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AssociateRepositoryInput) String ¶
func (s AssociateRepositoryInput) String() string
String returns the string representation
func (*AssociateRepositoryInput) Validate ¶
func (s *AssociateRepositoryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AssociateRepositoryOutput ¶
type AssociateRepositoryOutput struct { // Information about the repository association. RepositoryAssociation *RepositoryAssociation `type:"structure"` // contains filtered or unexported fields }
func (AssociateRepositoryOutput) MarshalFields ¶
func (s AssociateRepositoryOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AssociateRepositoryOutput) String ¶
func (s AssociateRepositoryOutput) String() string
String returns the string representation
type AssociateRepositoryRequest ¶
type AssociateRepositoryRequest struct { *aws.Request Input *AssociateRepositoryInput Copy func(*AssociateRepositoryInput) AssociateRepositoryRequest }
AssociateRepositoryRequest is the request type for the AssociateRepository API operation.
func (AssociateRepositoryRequest) Send ¶
func (r AssociateRepositoryRequest) Send(ctx context.Context) (*AssociateRepositoryResponse, error)
Send marshals and sends the AssociateRepository API request.
type AssociateRepositoryResponse ¶
type AssociateRepositoryResponse struct { *AssociateRepositoryOutput // contains filtered or unexported fields }
AssociateRepositoryResponse is the response type for the AssociateRepository API operation.
func (*AssociateRepositoryResponse) SDKResponseMetdata ¶
func (r *AssociateRepositoryResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the AssociateRepository request.
type Client ¶
Client provides the API operation methods for making requests to CodeGuruReviewer. See this package's package overview docs for details on the service.
The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the client from the provided Config.
Example:
// Create a client from just a config. svc := codegurureviewer.New(myConfig)
func (*Client) AssociateRepositoryRequest ¶
func (c *Client) AssociateRepositoryRequest(input *AssociateRepositoryInput) AssociateRepositoryRequest
AssociateRepositoryRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer. When you associate an AWS CodeCommit repository with Amazon CodeGuru Reviewer, Amazon CodeGuru Reviewer will provide recommendations for each pull request raised within the repository. You can view recommendations in the AWS CodeCommit repository.
You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.
// Example sending a request using AssociateRepositoryRequest. req := client.AssociateRepositoryRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository
func (*Client) DescribeCodeReviewRequest ¶
func (c *Client) DescribeCodeReviewRequest(input *DescribeCodeReviewInput) DescribeCodeReviewRequest
DescribeCodeReviewRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Returns the metadaata associated with the code review along with its status.
// Example sending a request using DescribeCodeReviewRequest. req := client.DescribeCodeReviewRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview
func (*Client) DescribeRecommendationFeedbackRequest ¶
func (c *Client) DescribeRecommendationFeedbackRequest(input *DescribeRecommendationFeedbackInput) DescribeRecommendationFeedbackRequest
DescribeRecommendationFeedbackRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Describes the customer feedback for a CodeGuru Reviewer recommendation.
// Example sending a request using DescribeRecommendationFeedbackRequest. req := client.DescribeRecommendationFeedbackRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRecommendationFeedback
func (*Client) DescribeRepositoryAssociationRequest ¶
func (c *Client) DescribeRepositoryAssociationRequest(input *DescribeRepositoryAssociationInput) DescribeRepositoryAssociationRequest
DescribeRepositoryAssociationRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Describes a repository association.
// Example sending a request using DescribeRepositoryAssociationRequest. req := client.DescribeRepositoryAssociationRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation
func (*Client) DisassociateRepositoryRequest ¶
func (c *Client) DisassociateRepositoryRequest(input *DisassociateRepositoryInput) DisassociateRepositoryRequest
DisassociateRepositoryRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Removes the association between Amazon CodeGuru Reviewer and a repository.
// Example sending a request using DisassociateRepositoryRequest. req := client.DisassociateRepositoryRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository
func (*Client) ListCodeReviewsRequest ¶
func (c *Client) ListCodeReviewsRequest(input *ListCodeReviewsInput) ListCodeReviewsRequest
ListCodeReviewsRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Lists all the code reviews that the customer has created in the past 90 days.
// Example sending a request using ListCodeReviewsRequest. req := client.ListCodeReviewsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews
func (*Client) ListRecommendationFeedbackRequest ¶
func (c *Client) ListRecommendationFeedbackRequest(input *ListRecommendationFeedbackInput) ListRecommendationFeedbackRequest
ListRecommendationFeedbackRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Lists the customer feedback for a CodeGuru Reviewer recommendation for all users. This API will be used from the console to extract the previously given feedback by the user to pre-populate the feedback emojis for all recommendations.
// Example sending a request using ListRecommendationFeedbackRequest. req := client.ListRecommendationFeedbackRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendationFeedback
func (*Client) ListRecommendationsRequest ¶
func (c *Client) ListRecommendationsRequest(input *ListRecommendationsInput) ListRecommendationsRequest
ListRecommendationsRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Returns the list of all recommendations for a completed code review.
// Example sending a request using ListRecommendationsRequest. req := client.ListRecommendationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations
func (*Client) ListRepositoryAssociationsRequest ¶
func (c *Client) ListRepositoryAssociationsRequest(input *ListRepositoryAssociationsInput) ListRepositoryAssociationsRequest
ListRepositoryAssociationsRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Lists repository associations. You can optionally filter on one or more of the following recommendation properties: provider types, states, names, and owners.
// Example sending a request using ListRepositoryAssociationsRequest. req := client.ListRepositoryAssociationsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations
func (*Client) PutRecommendationFeedbackRequest ¶
func (c *Client) PutRecommendationFeedbackRequest(input *PutRecommendationFeedbackInput) PutRecommendationFeedbackRequest
PutRecommendationFeedbackRequest returns a request value for making API operation for Amazon CodeGuru Reviewer.
Stores customer feedback for a CodeGuru-Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
// Example sending a request using PutRecommendationFeedbackRequest. req := client.PutRecommendationFeedbackRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/PutRecommendationFeedback
type CodeCommitRepository ¶
type CodeCommitRepository struct { // The name of the AWS CodeCommit repository. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Information about an AWS CodeCommit repository.
func (CodeCommitRepository) MarshalFields ¶
func (s CodeCommitRepository) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CodeCommitRepository) String ¶
func (s CodeCommitRepository) String() string
String returns the string representation
func (*CodeCommitRepository) Validate ¶
func (s *CodeCommitRepository) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CodeReview ¶
type CodeReview struct { // The Amazon Resource Name (ARN) of the code review to describe. CodeReviewArn *string `min:"1" type:"string"` // The time, in milliseconds since the epoch, when the code review was created. CreatedTimeStamp *time.Time `type:"timestamp"` // The time, in milliseconds since the epoch, when the code review was last // updated. LastUpdatedTimeStamp *time.Time `type:"timestamp"` // The statistics from the code review. Metrics *Metrics `type:"structure"` // The name of the code review. Name *string `min:"1" type:"string"` // The owner of the repository. Owner *string `min:"1" type:"string"` // The provider type of the repository association. ProviderType ProviderType `type:"string" enum:"true"` // The pull request ID for the code review. PullRequestId *string `min:"1" type:"string"` // The name of the repository. RepositoryName *string `min:"1" type:"string"` // The type of the source code for the code review. SourceCodeType *SourceCodeType `type:"structure"` // The state of the code review. State JobState `type:"string" enum:"true"` // The reason for the state of the code review. StateReason *string `type:"string"` // The type of code review. Type Type `type:"string" enum:"true"` // contains filtered or unexported fields }
Information about a code review.
func (CodeReview) MarshalFields ¶
func (s CodeReview) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CodeReview) String ¶
func (s CodeReview) String() string
String returns the string representation
type CodeReviewSummary ¶
type CodeReviewSummary struct { // The Amazon Resource Name (ARN) of the code review to describe. CodeReviewArn *string `min:"1" type:"string"` // The time, in milliseconds since the epoch, when the code review was created. CreatedTimeStamp *time.Time `type:"timestamp"` // The time, in milliseconds since the epoch, when the code review was last // updated. LastUpdatedTimeStamp *time.Time `type:"timestamp"` // The statistics from the code review. MetricsSummary *MetricsSummary `type:"structure"` // The name of the code review. Name *string `min:"1" type:"string"` // The owner of the repository. Owner *string `min:"1" type:"string"` // The provider type of the repository association. ProviderType ProviderType `type:"string" enum:"true"` // The pull request ID for the code review. PullRequestId *string `min:"1" type:"string"` // The name of the repository. RepositoryName *string `min:"1" type:"string"` // The state of the code review. State JobState `type:"string" enum:"true"` // The type of the code review. Type Type `type:"string" enum:"true"` // contains filtered or unexported fields }
Information about the summary of the code review.
func (CodeReviewSummary) MarshalFields ¶
func (s CodeReviewSummary) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CodeReviewSummary) String ¶
func (s CodeReviewSummary) String() string
String returns the string representation
type CommitDiffSourceCodeType ¶
type CommitDiffSourceCodeType struct { // Destination Commit SHA DestinationCommit *string `min:"6" type:"string"` // Source Commit SHA. SourceCommit *string `min:"6" type:"string"` // contains filtered or unexported fields }
The commit diff for the pull request.
func (CommitDiffSourceCodeType) MarshalFields ¶
func (s CommitDiffSourceCodeType) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CommitDiffSourceCodeType) String ¶
func (s CommitDiffSourceCodeType) String() string
String returns the string representation
type DescribeCodeReviewInput ¶
type DescribeCodeReviewInput struct { // The Amazon Resource Name (ARN) of the code review to describe. // // CodeReviewArn is a required field CodeReviewArn *string `location:"uri" locationName:"CodeReviewArn" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeCodeReviewInput) MarshalFields ¶
func (s DescribeCodeReviewInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeCodeReviewInput) String ¶
func (s DescribeCodeReviewInput) String() string
String returns the string representation
func (*DescribeCodeReviewInput) Validate ¶
func (s *DescribeCodeReviewInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeCodeReviewOutput ¶
type DescribeCodeReviewOutput struct { // Information about the code review. CodeReview *CodeReview `type:"structure"` // contains filtered or unexported fields }
func (DescribeCodeReviewOutput) MarshalFields ¶
func (s DescribeCodeReviewOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeCodeReviewOutput) String ¶
func (s DescribeCodeReviewOutput) String() string
String returns the string representation
type DescribeCodeReviewRequest ¶
type DescribeCodeReviewRequest struct { *aws.Request Input *DescribeCodeReviewInput Copy func(*DescribeCodeReviewInput) DescribeCodeReviewRequest }
DescribeCodeReviewRequest is the request type for the DescribeCodeReview API operation.
func (DescribeCodeReviewRequest) Send ¶
func (r DescribeCodeReviewRequest) Send(ctx context.Context) (*DescribeCodeReviewResponse, error)
Send marshals and sends the DescribeCodeReview API request.
type DescribeCodeReviewResponse ¶
type DescribeCodeReviewResponse struct { *DescribeCodeReviewOutput // contains filtered or unexported fields }
DescribeCodeReviewResponse is the response type for the DescribeCodeReview API operation.
func (*DescribeCodeReviewResponse) SDKResponseMetdata ¶
func (r *DescribeCodeReviewResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeCodeReview request.
type DescribeRecommendationFeedbackInput ¶
type DescribeRecommendationFeedbackInput struct { // The Amazon Resource Name (ARN) that identifies the code review. // // CodeReviewArn is a required field CodeReviewArn *string `location:"uri" locationName:"CodeReviewArn" min:"1" type:"string" required:"true"` // The recommendation ID that can be used to track the provided recommendations // and then to collect the feedback. // // RecommendationId is a required field RecommendationId *string `location:"querystring" locationName:"RecommendationId" min:"1" type:"string" required:"true"` // Optional parameter to describe the feedback for a given user. If this is // not supplied, it defaults to the user making the request. UserId *string `location:"querystring" locationName:"UserId" min:"1" type:"string"` // contains filtered or unexported fields }
func (DescribeRecommendationFeedbackInput) MarshalFields ¶
func (s DescribeRecommendationFeedbackInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeRecommendationFeedbackInput) String ¶
func (s DescribeRecommendationFeedbackInput) String() string
String returns the string representation
func (*DescribeRecommendationFeedbackInput) Validate ¶
func (s *DescribeRecommendationFeedbackInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeRecommendationFeedbackOutput ¶
type DescribeRecommendationFeedbackOutput struct { // The recommendation feedback given by the user. RecommendationFeedback *RecommendationFeedback `type:"structure"` // contains filtered or unexported fields }
func (DescribeRecommendationFeedbackOutput) MarshalFields ¶
func (s DescribeRecommendationFeedbackOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeRecommendationFeedbackOutput) String ¶
func (s DescribeRecommendationFeedbackOutput) String() string
String returns the string representation
type DescribeRecommendationFeedbackRequest ¶
type DescribeRecommendationFeedbackRequest struct { *aws.Request Input *DescribeRecommendationFeedbackInput Copy func(*DescribeRecommendationFeedbackInput) DescribeRecommendationFeedbackRequest }
DescribeRecommendationFeedbackRequest is the request type for the DescribeRecommendationFeedback API operation.
func (DescribeRecommendationFeedbackRequest) Send ¶
func (r DescribeRecommendationFeedbackRequest) Send(ctx context.Context) (*DescribeRecommendationFeedbackResponse, error)
Send marshals and sends the DescribeRecommendationFeedback API request.
type DescribeRecommendationFeedbackResponse ¶
type DescribeRecommendationFeedbackResponse struct { *DescribeRecommendationFeedbackOutput // contains filtered or unexported fields }
DescribeRecommendationFeedbackResponse is the response type for the DescribeRecommendationFeedback API operation.
func (*DescribeRecommendationFeedbackResponse) SDKResponseMetdata ¶
func (r *DescribeRecommendationFeedbackResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeRecommendationFeedback request.
type DescribeRepositoryAssociationInput ¶
type DescribeRepositoryAssociationInput struct { // The Amazon Resource Name (ARN) identifying the association. You can retrieve // this ARN by calling ListRepositories. // // AssociationArn is a required field AssociationArn *string `location:"uri" locationName:"AssociationArn" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeRepositoryAssociationInput) MarshalFields ¶
func (s DescribeRepositoryAssociationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeRepositoryAssociationInput) String ¶
func (s DescribeRepositoryAssociationInput) String() string
String returns the string representation
func (*DescribeRepositoryAssociationInput) Validate ¶
func (s *DescribeRepositoryAssociationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeRepositoryAssociationOutput ¶
type DescribeRepositoryAssociationOutput struct { // Information about the repository association. RepositoryAssociation *RepositoryAssociation `type:"structure"` // contains filtered or unexported fields }
func (DescribeRepositoryAssociationOutput) MarshalFields ¶
func (s DescribeRepositoryAssociationOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeRepositoryAssociationOutput) String ¶
func (s DescribeRepositoryAssociationOutput) String() string
String returns the string representation
type DescribeRepositoryAssociationRequest ¶
type DescribeRepositoryAssociationRequest struct { *aws.Request Input *DescribeRepositoryAssociationInput Copy func(*DescribeRepositoryAssociationInput) DescribeRepositoryAssociationRequest }
DescribeRepositoryAssociationRequest is the request type for the DescribeRepositoryAssociation API operation.
func (DescribeRepositoryAssociationRequest) Send ¶
func (r DescribeRepositoryAssociationRequest) Send(ctx context.Context) (*DescribeRepositoryAssociationResponse, error)
Send marshals and sends the DescribeRepositoryAssociation API request.
type DescribeRepositoryAssociationResponse ¶
type DescribeRepositoryAssociationResponse struct { *DescribeRepositoryAssociationOutput // contains filtered or unexported fields }
DescribeRepositoryAssociationResponse is the response type for the DescribeRepositoryAssociation API operation.
func (*DescribeRepositoryAssociationResponse) SDKResponseMetdata ¶
func (r *DescribeRepositoryAssociationResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeRepositoryAssociation request.
type DisassociateRepositoryInput ¶
type DisassociateRepositoryInput struct { // The Amazon Resource Name (ARN) identifying the association. // // AssociationArn is a required field AssociationArn *string `location:"uri" locationName:"AssociationArn" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (DisassociateRepositoryInput) MarshalFields ¶
func (s DisassociateRepositoryInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DisassociateRepositoryInput) String ¶
func (s DisassociateRepositoryInput) String() string
String returns the string representation
func (*DisassociateRepositoryInput) Validate ¶
func (s *DisassociateRepositoryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DisassociateRepositoryOutput ¶
type DisassociateRepositoryOutput struct { // Information about the disassociated repository. RepositoryAssociation *RepositoryAssociation `type:"structure"` // contains filtered or unexported fields }
func (DisassociateRepositoryOutput) MarshalFields ¶
func (s DisassociateRepositoryOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DisassociateRepositoryOutput) String ¶
func (s DisassociateRepositoryOutput) String() string
String returns the string representation
type DisassociateRepositoryRequest ¶
type DisassociateRepositoryRequest struct { *aws.Request Input *DisassociateRepositoryInput Copy func(*DisassociateRepositoryInput) DisassociateRepositoryRequest }
DisassociateRepositoryRequest is the request type for the DisassociateRepository API operation.
func (DisassociateRepositoryRequest) Send ¶
func (r DisassociateRepositoryRequest) Send(ctx context.Context) (*DisassociateRepositoryResponse, error)
Send marshals and sends the DisassociateRepository API request.
type DisassociateRepositoryResponse ¶
type DisassociateRepositoryResponse struct { *DisassociateRepositoryOutput // contains filtered or unexported fields }
DisassociateRepositoryResponse is the response type for the DisassociateRepository API operation.
func (*DisassociateRepositoryResponse) SDKResponseMetdata ¶
func (r *DisassociateRepositoryResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DisassociateRepository request.
type JobState ¶
type JobState string
const ( JobStateCompleted JobState = "Completed" JobStatePending JobState = "Pending" JobStateFailed JobState = "Failed" JobStateDeleting JobState = "Deleting" )
Enum values for JobState
func (JobState) MarshalValue ¶
type ListCodeReviewsInput ¶
type ListCodeReviewsInput struct { // The maximum number of results that are returned per call. The default is // 100. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` // List of provider types for filtering that needs to be applied before displaying // the result. For example, "providerTypes=[GitHub]" will list code reviews // from GitHub. ProviderTypes []ProviderType `location:"querystring" locationName:"ProviderTypes" min:"1" type:"list"` // List of repository names for filtering that needs to be applied before displaying // the result. RepositoryNames []string `location:"querystring" locationName:"RepositoryNames" min:"1" type:"list"` // List of states for filtering that needs to be applied before displaying the // result. For example, "states=[Pending]" will list code reviews in the Pending // state. States []JobState `location:"querystring" locationName:"States" min:"1" type:"list"` // The type of code reviews to list in the response. // // Type is a required field Type Type `location:"querystring" locationName:"Type" type:"string" required:"true" enum:"true"` // contains filtered or unexported fields }
func (ListCodeReviewsInput) MarshalFields ¶
func (s ListCodeReviewsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListCodeReviewsInput) String ¶
func (s ListCodeReviewsInput) String() string
String returns the string representation
func (*ListCodeReviewsInput) Validate ¶
func (s *ListCodeReviewsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListCodeReviewsOutput ¶
type ListCodeReviewsOutput struct { // A list of code reviews that meet the criteria of the request. CodeReviewSummaries []CodeReviewSummary `type:"list"` // Pagination token. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (ListCodeReviewsOutput) MarshalFields ¶
func (s ListCodeReviewsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListCodeReviewsOutput) String ¶
func (s ListCodeReviewsOutput) String() string
String returns the string representation
type ListCodeReviewsPaginator ¶
ListCodeReviewsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListCodeReviewsPaginator ¶
func NewListCodeReviewsPaginator(req ListCodeReviewsRequest) ListCodeReviewsPaginator
NewListCodeReviewsRequestPaginator returns a paginator for ListCodeReviews. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListCodeReviewsRequest(input) p := codegurureviewer.NewListCodeReviewsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListCodeReviewsPaginator) CurrentPage ¶
func (p *ListCodeReviewsPaginator) CurrentPage() *ListCodeReviewsOutput
type ListCodeReviewsRequest ¶
type ListCodeReviewsRequest struct { *aws.Request Input *ListCodeReviewsInput Copy func(*ListCodeReviewsInput) ListCodeReviewsRequest }
ListCodeReviewsRequest is the request type for the ListCodeReviews API operation.
func (ListCodeReviewsRequest) Send ¶
func (r ListCodeReviewsRequest) Send(ctx context.Context) (*ListCodeReviewsResponse, error)
Send marshals and sends the ListCodeReviews API request.
type ListCodeReviewsResponse ¶
type ListCodeReviewsResponse struct { *ListCodeReviewsOutput // contains filtered or unexported fields }
ListCodeReviewsResponse is the response type for the ListCodeReviews API operation.
func (*ListCodeReviewsResponse) SDKResponseMetdata ¶
func (r *ListCodeReviewsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListCodeReviews request.
type ListRecommendationFeedbackInput ¶
type ListRecommendationFeedbackInput struct { // The Amazon Resource Name (ARN) that identifies the code review. // // CodeReviewArn is a required field CodeReviewArn *string `location:"uri" locationName:"CodeReviewArn" min:"1" type:"string" required:"true"` // The maximum number of results that are returned per call. The default is // 100. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` // Filter on recommendationIds that need to be applied before displaying the // result. This can be used to query all the recommendation feedback for a given // recommendation. RecommendationIds []string `location:"querystring" locationName:"RecommendationIds" min:"1" type:"list"` // Filter on userIds that need to be applied before displaying the result. This // can be used to query all the recommendation feedback for a code review from // a given user. UserIds []string `location:"querystring" locationName:"UserIds" min:"1" type:"list"` // contains filtered or unexported fields }
func (ListRecommendationFeedbackInput) MarshalFields ¶
func (s ListRecommendationFeedbackInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRecommendationFeedbackInput) String ¶
func (s ListRecommendationFeedbackInput) String() string
String returns the string representation
func (*ListRecommendationFeedbackInput) Validate ¶
func (s *ListRecommendationFeedbackInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListRecommendationFeedbackOutput ¶
type ListRecommendationFeedbackOutput struct { // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. NextToken *string `min:"1" type:"string"` // Recommendation feedback summaries corresponding to the code reivew ARN. RecommendationFeedbackSummaries []RecommendationFeedbackSummary `type:"list"` // contains filtered or unexported fields }
func (ListRecommendationFeedbackOutput) MarshalFields ¶
func (s ListRecommendationFeedbackOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRecommendationFeedbackOutput) String ¶
func (s ListRecommendationFeedbackOutput) String() string
String returns the string representation
type ListRecommendationFeedbackPaginator ¶
ListRecommendationFeedbackPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListRecommendationFeedbackPaginator ¶
func NewListRecommendationFeedbackPaginator(req ListRecommendationFeedbackRequest) ListRecommendationFeedbackPaginator
NewListRecommendationFeedbackRequestPaginator returns a paginator for ListRecommendationFeedback. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListRecommendationFeedbackRequest(input) p := codegurureviewer.NewListRecommendationFeedbackRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListRecommendationFeedbackPaginator) CurrentPage ¶
func (p *ListRecommendationFeedbackPaginator) CurrentPage() *ListRecommendationFeedbackOutput
type ListRecommendationFeedbackRequest ¶
type ListRecommendationFeedbackRequest struct { *aws.Request Input *ListRecommendationFeedbackInput Copy func(*ListRecommendationFeedbackInput) ListRecommendationFeedbackRequest }
ListRecommendationFeedbackRequest is the request type for the ListRecommendationFeedback API operation.
func (ListRecommendationFeedbackRequest) Send ¶
func (r ListRecommendationFeedbackRequest) Send(ctx context.Context) (*ListRecommendationFeedbackResponse, error)
Send marshals and sends the ListRecommendationFeedback API request.
type ListRecommendationFeedbackResponse ¶
type ListRecommendationFeedbackResponse struct { *ListRecommendationFeedbackOutput // contains filtered or unexported fields }
ListRecommendationFeedbackResponse is the response type for the ListRecommendationFeedback API operation.
func (*ListRecommendationFeedbackResponse) SDKResponseMetdata ¶
func (r *ListRecommendationFeedbackResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListRecommendationFeedback request.
type ListRecommendationsInput ¶
type ListRecommendationsInput struct { // The Amazon Resource Name (ARN) of the code review to describe. // // CodeReviewArn is a required field CodeReviewArn *string `location:"uri" locationName:"CodeReviewArn" min:"1" type:"string" required:"true"` // The maximum number of results that are returned per call. The default is // 100. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` // Pagination token. NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` // contains filtered or unexported fields }
func (ListRecommendationsInput) MarshalFields ¶
func (s ListRecommendationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRecommendationsInput) String ¶
func (s ListRecommendationsInput) String() string
String returns the string representation
func (*ListRecommendationsInput) Validate ¶
func (s *ListRecommendationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListRecommendationsOutput ¶
type ListRecommendationsOutput struct { // Pagination token. NextToken *string `min:"1" type:"string"` // List of recommendations for the requested code review. RecommendationSummaries []RecommendationSummary `type:"list"` // contains filtered or unexported fields }
func (ListRecommendationsOutput) MarshalFields ¶
func (s ListRecommendationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRecommendationsOutput) String ¶
func (s ListRecommendationsOutput) String() string
String returns the string representation
type ListRecommendationsPaginator ¶
ListRecommendationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListRecommendationsPaginator ¶
func NewListRecommendationsPaginator(req ListRecommendationsRequest) ListRecommendationsPaginator
NewListRecommendationsRequestPaginator returns a paginator for ListRecommendations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListRecommendationsRequest(input) p := codegurureviewer.NewListRecommendationsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListRecommendationsPaginator) CurrentPage ¶
func (p *ListRecommendationsPaginator) CurrentPage() *ListRecommendationsOutput
type ListRecommendationsRequest ¶
type ListRecommendationsRequest struct { *aws.Request Input *ListRecommendationsInput Copy func(*ListRecommendationsInput) ListRecommendationsRequest }
ListRecommendationsRequest is the request type for the ListRecommendations API operation.
func (ListRecommendationsRequest) Send ¶
func (r ListRecommendationsRequest) Send(ctx context.Context) (*ListRecommendationsResponse, error)
Send marshals and sends the ListRecommendations API request.
type ListRecommendationsResponse ¶
type ListRecommendationsResponse struct { *ListRecommendationsOutput // contains filtered or unexported fields }
ListRecommendationsResponse is the response type for the ListRecommendations API operation.
func (*ListRecommendationsResponse) SDKResponseMetdata ¶
func (r *ListRecommendationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListRecommendations request.
type ListRepositoryAssociationsInput ¶
type ListRepositoryAssociationsInput struct { // The maximum number of repository association results returned by ListRepositoryAssociations // in paginated output. When this parameter is used, ListRepositoryAssociations // only returns maxResults results in a single page with a nextToken response // element. The remaining results of the initial request can be seen by sending // another ListRepositoryAssociations request with the returned nextToken value. // This value can be between 1 and 25. If this parameter is not used, ListRepositoryAssociations // returns up to 25 results and a nextToken value if applicable. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` // List of repository names to use as a filter. Names []string `location:"querystring" locationName:"Name" min:"1" type:"list"` // The nextToken value returned from a previous paginated ListRepositoryAssociations // request where maxResults was used and the results exceeded the value of that // parameter. Pagination continues from the end of the previous results that // returned the nextToken value. // // Treat this token as an opaque identifier that is only used to retrieve the // next items in a list and not for other programmatic purposes. NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` // List of owners to use as a filter. For GitHub, this is name of the GitHub // account that was used to associate the repository. For AWS CodeCommit, it // is the name of the CodeCommit account that was used to associate the repository. Owners []string `location:"querystring" locationName:"Owner" min:"1" type:"list"` // List of provider types to use as a filter. ProviderTypes []ProviderType `location:"querystring" locationName:"ProviderType" min:"1" type:"list"` // List of states to use as a filter. States []RepositoryAssociationState `location:"querystring" locationName:"State" min:"1" type:"list"` // contains filtered or unexported fields }
func (ListRepositoryAssociationsInput) MarshalFields ¶
func (s ListRepositoryAssociationsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRepositoryAssociationsInput) String ¶
func (s ListRepositoryAssociationsInput) String() string
String returns the string representation
func (*ListRepositoryAssociationsInput) Validate ¶
func (s *ListRepositoryAssociationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListRepositoryAssociationsOutput ¶
type ListRepositoryAssociationsOutput struct { // The nextToken value to include in a future ListRecommendations request. When // the results of a ListRecommendations request exceed maxResults, this value // can be used to retrieve the next page of results. This value is null when // there are no more results to return. NextToken *string `min:"1" type:"string"` // A list of repository associations that meet the criteria of the request. RepositoryAssociationSummaries []RepositoryAssociationSummary `type:"list"` // contains filtered or unexported fields }
func (ListRepositoryAssociationsOutput) MarshalFields ¶
func (s ListRepositoryAssociationsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListRepositoryAssociationsOutput) String ¶
func (s ListRepositoryAssociationsOutput) String() string
String returns the string representation
type ListRepositoryAssociationsPaginator ¶
ListRepositoryAssociationsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.
func NewListRepositoryAssociationsPaginator ¶
func NewListRepositoryAssociationsPaginator(req ListRepositoryAssociationsRequest) ListRepositoryAssociationsPaginator
NewListRepositoryAssociationsRequestPaginator returns a paginator for ListRepositoryAssociations. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.
Note: This operation can generate multiple requests to a service.
// Example iterating over pages. req := client.ListRepositoryAssociationsRequest(input) p := codegurureviewer.NewListRepositoryAssociationsRequestPaginator(req) for p.Next(context.TODO()) { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (*ListRepositoryAssociationsPaginator) CurrentPage ¶
func (p *ListRepositoryAssociationsPaginator) CurrentPage() *ListRepositoryAssociationsOutput
type ListRepositoryAssociationsRequest ¶
type ListRepositoryAssociationsRequest struct { *aws.Request Input *ListRepositoryAssociationsInput Copy func(*ListRepositoryAssociationsInput) ListRepositoryAssociationsRequest }
ListRepositoryAssociationsRequest is the request type for the ListRepositoryAssociations API operation.
func (ListRepositoryAssociationsRequest) Send ¶
func (r ListRepositoryAssociationsRequest) Send(ctx context.Context) (*ListRepositoryAssociationsResponse, error)
Send marshals and sends the ListRepositoryAssociations API request.
type ListRepositoryAssociationsResponse ¶
type ListRepositoryAssociationsResponse struct { *ListRepositoryAssociationsOutput // contains filtered or unexported fields }
ListRepositoryAssociationsResponse is the response type for the ListRepositoryAssociations API operation.
func (*ListRepositoryAssociationsResponse) SDKResponseMetdata ¶
func (r *ListRepositoryAssociationsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListRepositoryAssociations request.
type Metrics ¶
type Metrics struct { // Total number of recommendations found in the code review. FindingsCount *int64 `type:"long"` // Lines of code metered in the code review. MeteredLinesOfCodeCount *int64 `type:"long"` // contains filtered or unexported fields }
Information about the statistics from the code review.
func (Metrics) MarshalFields ¶
func (s Metrics) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
type MetricsSummary ¶
type MetricsSummary struct { // Total number of recommendations found in the code review. FindingsCount *int64 `type:"long"` // Lines of code metered in the code review. MeteredLinesOfCodeCount *int64 `type:"long"` // contains filtered or unexported fields }
Information about metrics summaries.
func (MetricsSummary) MarshalFields ¶
func (s MetricsSummary) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (MetricsSummary) String ¶
func (s MetricsSummary) String() string
String returns the string representation
type ProviderType ¶
type ProviderType string
const ( ProviderTypeCodeCommit ProviderType = "CodeCommit" ProviderTypeGitHub ProviderType = "GitHub" ProviderTypeBitbucket ProviderType = "Bitbucket" )
Enum values for ProviderType
func (ProviderType) MarshalValue ¶
func (enum ProviderType) MarshalValue() (string, error)
func (ProviderType) MarshalValueBuf ¶
func (enum ProviderType) MarshalValueBuf(b []byte) ([]byte, error)
type PutRecommendationFeedbackInput ¶
type PutRecommendationFeedbackInput struct { // The Amazon Resource Name (ARN) that identifies the code review. // // CodeReviewArn is a required field CodeReviewArn *string `min:"1" type:"string" required:"true"` // List for storing reactions. Reactions are utf-8 text code for emojis. If // you send an empty list it clears all your feedback. // // Reactions is a required field Reactions []Reaction `type:"list" required:"true"` // The recommendation ID that can be used to track the provided recommendations // and then to collect the feedback. // // RecommendationId is a required field RecommendationId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (PutRecommendationFeedbackInput) MarshalFields ¶
func (s PutRecommendationFeedbackInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PutRecommendationFeedbackInput) String ¶
func (s PutRecommendationFeedbackInput) String() string
String returns the string representation
func (*PutRecommendationFeedbackInput) Validate ¶
func (s *PutRecommendationFeedbackInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutRecommendationFeedbackOutput ¶
type PutRecommendationFeedbackOutput struct {
// contains filtered or unexported fields
}
func (PutRecommendationFeedbackOutput) MarshalFields ¶
func (s PutRecommendationFeedbackOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PutRecommendationFeedbackOutput) String ¶
func (s PutRecommendationFeedbackOutput) String() string
String returns the string representation
type PutRecommendationFeedbackRequest ¶
type PutRecommendationFeedbackRequest struct { *aws.Request Input *PutRecommendationFeedbackInput Copy func(*PutRecommendationFeedbackInput) PutRecommendationFeedbackRequest }
PutRecommendationFeedbackRequest is the request type for the PutRecommendationFeedback API operation.
func (PutRecommendationFeedbackRequest) Send ¶
func (r PutRecommendationFeedbackRequest) Send(ctx context.Context) (*PutRecommendationFeedbackResponse, error)
Send marshals and sends the PutRecommendationFeedback API request.
type PutRecommendationFeedbackResponse ¶
type PutRecommendationFeedbackResponse struct { *PutRecommendationFeedbackOutput // contains filtered or unexported fields }
PutRecommendationFeedbackResponse is the response type for the PutRecommendationFeedback API operation.
func (*PutRecommendationFeedbackResponse) SDKResponseMetdata ¶
func (r *PutRecommendationFeedbackResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the PutRecommendationFeedback request.
type RecommendationFeedback ¶
type RecommendationFeedback struct { // The Amazon Resource Name (ARN) that identifies the code review. CodeReviewArn *string `min:"1" type:"string"` // The time at which the feedback was created. CreatedTimeStamp *time.Time `type:"timestamp"` // The time at which the feedback was last updated. LastUpdatedTimeStamp *time.Time `type:"timestamp"` // List for storing reactions. Reactions are utf-8 text code for emojis. You // can send an empty list to clear off all your feedback. Reactions []Reaction `type:"list"` // The recommendation ID that can be used to track the provided recommendations. // Later on it can be used to collect the feedback. RecommendationId *string `min:"1" type:"string"` // The user principal that made the API call. UserId *string `min:"1" type:"string"` // contains filtered or unexported fields }
Information about the recommendation feedback.
func (RecommendationFeedback) MarshalFields ¶
func (s RecommendationFeedback) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RecommendationFeedback) String ¶
func (s RecommendationFeedback) String() string
String returns the string representation
type RecommendationFeedbackSummary ¶
type RecommendationFeedbackSummary struct { // List for storing reactions. Reactions are utf-8 text code for emojis. Reactions []Reaction `type:"list"` // The recommendation ID that can be used to track the provided recommendations. // Later on it can be used to collect the feedback. RecommendationId *string `min:"1" type:"string"` // The identifier for the user that gave the feedback. UserId *string `min:"1" type:"string"` // contains filtered or unexported fields }
Information about recommendation feedback summaries.
func (RecommendationFeedbackSummary) MarshalFields ¶
func (s RecommendationFeedbackSummary) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RecommendationFeedbackSummary) String ¶
func (s RecommendationFeedbackSummary) String() string
String returns the string representation
type RecommendationSummary ¶
type RecommendationSummary struct { // A description of the recommendation generated by CodeGuru Reviewer for the // lines of code between the start line and the end line. Description *string `min:"1" type:"string"` // Last line where the recommendation is applicable in the source commit or // source branch. For a single line comment the start line and end line values // will be the same. EndLine *int64 `type:"integer"` // Name of the file on which a recommendation is provided. FilePath *string `min:"1" type:"string"` // The recommendation ID that can be used to track the provided recommendations. // Later on it can be used to collect the feedback. RecommendationId *string `min:"1" type:"string"` // Start line from where the recommendation is applicable in the source commit // or source branch. StartLine *int64 `type:"integer"` // contains filtered or unexported fields }
Information about recommendations.
func (RecommendationSummary) MarshalFields ¶
func (s RecommendationSummary) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RecommendationSummary) String ¶
func (s RecommendationSummary) String() string
String returns the string representation
type Repository ¶
type Repository struct { // Information about a Bitbucket Cloud repository. Bitbucket *ThirdPartySourceRepository `type:"structure"` // Information about an AWS CodeCommit repository. CodeCommit *CodeCommitRepository `type:"structure"` // contains filtered or unexported fields }
Information about a repository.
func (Repository) MarshalFields ¶
func (s Repository) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (Repository) String ¶
func (s Repository) String() string
String returns the string representation
func (*Repository) Validate ¶
func (s *Repository) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RepositoryAssociation ¶
type RepositoryAssociation struct { // The Amazon Resource Name (ARN) identifying the repository association. AssociationArn *string `min:"1" type:"string"` // The ID of the repository association. AssociationId *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) identifying the repository connection. ConnectionArn *string `type:"string"` // The time, in milliseconds since the epoch, when the repository association // was created. CreatedTimeStamp *time.Time `type:"timestamp"` // The time, in milliseconds since the epoch, when the repository association // was last updated. LastUpdatedTimeStamp *time.Time `type:"timestamp"` // The name of the repository. Name *string `min:"1" type:"string"` // The owner of the repository. Owner *string `min:"1" type:"string"` // The provider type of the repository association. ProviderType ProviderType `type:"string" enum:"true"` // The state of the repository association. State RepositoryAssociationState `type:"string" enum:"true"` // A description of why the repository association is in the current state. StateReason *string `type:"string"` // contains filtered or unexported fields }
Information about a repository association.
func (RepositoryAssociation) MarshalFields ¶
func (s RepositoryAssociation) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RepositoryAssociation) String ¶
func (s RepositoryAssociation) String() string
String returns the string representation
type RepositoryAssociationState ¶
type RepositoryAssociationState string
const ( RepositoryAssociationStateAssociated RepositoryAssociationState = "Associated" RepositoryAssociationStateAssociating RepositoryAssociationState = "Associating" RepositoryAssociationStateFailed RepositoryAssociationState = "Failed" RepositoryAssociationStateDisassociating RepositoryAssociationState = "Disassociating" )
Enum values for RepositoryAssociationState
func (RepositoryAssociationState) MarshalValue ¶
func (enum RepositoryAssociationState) MarshalValue() (string, error)
func (RepositoryAssociationState) MarshalValueBuf ¶
func (enum RepositoryAssociationState) MarshalValueBuf(b []byte) ([]byte, error)
type RepositoryAssociationSummary ¶
type RepositoryAssociationSummary struct { // The Amazon Resource Name (ARN) identifying the repository association. AssociationArn *string `min:"1" type:"string"` // The repository association ID. AssociationId *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) identifying the repository connection. ConnectionArn *string `type:"string"` // The time, in milliseconds since the epoch, since the repository association // was last updated. LastUpdatedTimeStamp *time.Time `type:"timestamp"` // The name of the repository association. Name *string `min:"1" type:"string"` // The owner of the repository association. Owner *string `min:"1" type:"string"` // The provider type of the repository association. ProviderType ProviderType `type:"string" enum:"true"` // The state of the repository association. // // Associated // // Amazon CodeGuru Reviewer is associated with the repository. // // Associating // // The association is in progress. // // Failed // // The association failed. // // Disassociating // // Amazon CodeGuru Reviewer is in the process of disassociating with the repository. State RepositoryAssociationState `type:"string" enum:"true"` // contains filtered or unexported fields }
Information about a repository association.
func (RepositoryAssociationSummary) MarshalFields ¶
func (s RepositoryAssociationSummary) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RepositoryAssociationSummary) String ¶
func (s RepositoryAssociationSummary) String() string
String returns the string representation
type SourceCodeType ¶
type SourceCodeType struct { // The commit diff for the pull request. CommitDiff *CommitDiffSourceCodeType `type:"structure"` // contains filtered or unexported fields }
Information about the source code type.
func (SourceCodeType) MarshalFields ¶
func (s SourceCodeType) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SourceCodeType) String ¶
func (s SourceCodeType) String() string
String returns the string representation
type ThirdPartySourceRepository ¶
type ThirdPartySourceRepository struct { // The Amazon Resource Name (ARN) identifying the repository connection. // // ConnectionArn is a required field ConnectionArn *string `type:"string" required:"true"` // The name of the third party source repository. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The username of the owner of the repository. // // Owner is a required field Owner *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Information about a third party source repository connected through CodeStar Connections.
func (ThirdPartySourceRepository) MarshalFields ¶
func (s ThirdPartySourceRepository) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ThirdPartySourceRepository) String ¶
func (s ThirdPartySourceRepository) String() string
String returns the string representation
func (*ThirdPartySourceRepository) Validate ¶
func (s *ThirdPartySourceRepository) Validate() error
Validate inspects the fields of the type to determine if they are valid.
Source Files ¶
- api_client.go
- api_doc.go
- api_enums.go
- api_errors.go
- api_op_AssociateRepository.go
- api_op_DescribeCodeReview.go
- api_op_DescribeRecommendationFeedback.go
- api_op_DescribeRepositoryAssociation.go
- api_op_DisassociateRepository.go
- api_op_ListCodeReviews.go
- api_op_ListRecommendationFeedback.go
- api_op_ListRecommendations.go
- api_op_ListRepositoryAssociations.go
- api_op_PutRecommendationFeedback.go
- api_types.go
Directories ¶
Path | Synopsis |
---|---|
Package codegururevieweriface provides an interface to enable mocking the Amazon CodeGuru Reviewer service client for testing your code.
|
Package codegururevieweriface provides an interface to enable mocking the Amazon CodeGuru Reviewer service client for testing your code. |