aws-sdk-go: github.com/aws/aws-sdk-go/service/codegurureviewer Index | Files | Directories

package codegurureviewer

import "github.com/aws/aws-sdk-go/service/codegurureviewer"

Package codegurureviewer provides the client and types for making API requests to Amazon CodeGuru Reviewer.

This section provides documentation for the Amazon CodeGuru Reviewer API operations.

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 contact Amazon CodeGuru Reviewer 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 Amazon CodeGuru Reviewer client CodeGuruReviewer for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/codegurureviewer/#New

Index

Package Files

api.go doc.go errors.go service.go

Constants

const (
    // ProviderTypeCodeCommit is a ProviderType enum value
    ProviderTypeCodeCommit = "CodeCommit"

    // ProviderTypeGitHub is a ProviderType enum value
    ProviderTypeGitHub = "GitHub"
)
const (
    // RepositoryAssociationStateAssociated is a RepositoryAssociationState enum value
    RepositoryAssociationStateAssociated = "Associated"

    // RepositoryAssociationStateAssociating is a RepositoryAssociationState enum value
    RepositoryAssociationStateAssociating = "Associating"

    // RepositoryAssociationStateFailed is a RepositoryAssociationState enum value
    RepositoryAssociationStateFailed = "Failed"

    // RepositoryAssociationStateDisassociating is a RepositoryAssociationState enum value
    RepositoryAssociationStateDisassociating = "Disassociating"
)
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"

    // 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"
)
const (
    ServiceName = "CodeGuru Reviewer" // Name of service.
    EndpointsID = "codeguru-reviewer" // ID to lookup a service endpoint with.
    ServiceID   = "CodeGuru Reviewer" // ServiceID is a unique identifier of a specific service.
)

Service information constants

type AccessDeniedException Uses

type AccessDeniedException struct {
    RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

    Message_ *string `locationName:"Message" type:"string"`
    // contains filtered or unexported fields
}

You do not have sufficient access to perform this action.

func (*AccessDeniedException) Code Uses

func (s *AccessDeniedException) Code() string

Code returns the exception type name.

func (*AccessDeniedException) Error Uses

func (s *AccessDeniedException) Error() string

func (AccessDeniedException) GoString Uses

func (s AccessDeniedException) GoString() string

GoString returns the string representation

func (*AccessDeniedException) Message Uses

func (s *AccessDeniedException) Message() string

Message returns the exception's message.

func (*AccessDeniedException) OrigErr Uses

func (s *AccessDeniedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*AccessDeniedException) RequestID Uses

func (s *AccessDeniedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*AccessDeniedException) StatusCode Uses

func (s *AccessDeniedException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (AccessDeniedException) String Uses

func (s AccessDeniedException) String() string

String returns the string representation

type AssociateRepositoryInput Uses

type AssociateRepositoryInput struct {

    // Unique, case-sensitive identifier that you provide to ensure the idempotency
    // of the request.
    //
    // If you want 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 SDK to call this operation, then
    // 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, then
    // you must generate a ClientRequestToken yourself for new versions and include
    // that value in the request.
    //
    // You typically only need to 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) GoString Uses

func (s AssociateRepositoryInput) GoString() string

GoString returns the string representation

func (*AssociateRepositoryInput) SetClientRequestToken Uses

func (s *AssociateRepositoryInput) SetClientRequestToken(v string) *AssociateRepositoryInput

SetClientRequestToken sets the ClientRequestToken field's value.

func (*AssociateRepositoryInput) SetRepository Uses

func (s *AssociateRepositoryInput) SetRepository(v *Repository) *AssociateRepositoryInput

SetRepository sets the Repository field's value.

func (AssociateRepositoryInput) String Uses

func (s AssociateRepositoryInput) String() string

String returns the string representation

func (*AssociateRepositoryInput) Validate Uses

func (s *AssociateRepositoryInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AssociateRepositoryOutput Uses

type AssociateRepositoryOutput struct {

    // Information about the repository association.
    RepositoryAssociation *RepositoryAssociation `type:"structure"`
    // contains filtered or unexported fields
}

func (AssociateRepositoryOutput) GoString Uses

func (s AssociateRepositoryOutput) GoString() string

GoString returns the string representation

func (*AssociateRepositoryOutput) SetRepositoryAssociation Uses

func (s *AssociateRepositoryOutput) SetRepositoryAssociation(v *RepositoryAssociation) *AssociateRepositoryOutput

SetRepositoryAssociation sets the RepositoryAssociation field's value.

func (AssociateRepositoryOutput) String Uses

func (s AssociateRepositoryOutput) String() string

String returns the string representation

type CodeCommitRepository Uses

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) GoString Uses

func (s CodeCommitRepository) GoString() string

GoString returns the string representation

func (*CodeCommitRepository) SetName Uses

func (s *CodeCommitRepository) SetName(v string) *CodeCommitRepository

SetName sets the Name field's value.

func (CodeCommitRepository) String Uses

func (s CodeCommitRepository) String() string

String returns the string representation

func (*CodeCommitRepository) Validate Uses

func (s *CodeCommitRepository) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CodeGuruReviewer Uses

type CodeGuruReviewer struct {
    *client.Client
}

CodeGuruReviewer provides the API operation methods for making requests to Amazon CodeGuru Reviewer. See this package's package overview docs for details on the service.

CodeGuruReviewer methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New Uses

func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeGuruReviewer

New creates a new instance of the CodeGuruReviewer client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a CodeGuruReviewer client from just a session.
svc := codegurureviewer.New(mySession)

// Create a CodeGuruReviewer client with additional configuration
svc := codegurureviewer.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*CodeGuruReviewer) AssociateRepository Uses

func (c *CodeGuruReviewer) AssociateRepository(input *AssociateRepositoryInput) (*AssociateRepositoryOutput, error)

AssociateRepository 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. You can view recommendations in the AWS CodeCommit repository.

You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CodeGuru Reviewer's API operation AssociateRepository for usage and error information.

Returned Error Types:

* InternalServerException
The server encountered an internal error and is unable to complete the request.

* ValidationException
The input fails to satisfy the specified constraints.

* AccessDeniedException
You do not have sufficient access to perform this action.

* 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.

* ThrottlingException
The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository

func (*CodeGuruReviewer) AssociateRepositoryRequest Uses

func (c *CodeGuruReviewer) AssociateRepositoryRequest(input *AssociateRepositoryInput) (req *request.Request, output *AssociateRepositoryOutput)

AssociateRepositoryRequest generates a "aws/request.Request" representing the client's request for the AssociateRepository operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AssociateRepository for more information on using the AssociateRepository API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AssociateRepositoryRequest method.
req, resp := client.AssociateRepositoryRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository

func (*CodeGuruReviewer) AssociateRepositoryWithContext Uses

func (c *CodeGuruReviewer) AssociateRepositoryWithContext(ctx aws.Context, input *AssociateRepositoryInput, opts ...request.Option) (*AssociateRepositoryOutput, error)

AssociateRepositoryWithContext is the same as AssociateRepository with the addition of the ability to pass a context and additional request options.

See AssociateRepository for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CodeGuruReviewer) DescribeRepositoryAssociation Uses

func (c *CodeGuruReviewer) DescribeRepositoryAssociation(input *DescribeRepositoryAssociationInput) (*DescribeRepositoryAssociationOutput, error)

DescribeRepositoryAssociation API operation for Amazon CodeGuru Reviewer.

Describes a repository association.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CodeGuru Reviewer's API operation DescribeRepositoryAssociation for usage and error information.

Returned Error Types:

* NotFoundException
The resource specified in the request was not found.

* InternalServerException
The server encountered an internal error and is unable to complete the request.

* ValidationException
The input fails to satisfy the specified constraints.

* AccessDeniedException
You do not have sufficient access to perform this action.

* ThrottlingException
The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation

func (*CodeGuruReviewer) DescribeRepositoryAssociationRequest Uses

func (c *CodeGuruReviewer) DescribeRepositoryAssociationRequest(input *DescribeRepositoryAssociationInput) (req *request.Request, output *DescribeRepositoryAssociationOutput)

DescribeRepositoryAssociationRequest generates a "aws/request.Request" representing the client's request for the DescribeRepositoryAssociation operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeRepositoryAssociation for more information on using the DescribeRepositoryAssociation API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeRepositoryAssociationRequest method.
req, resp := client.DescribeRepositoryAssociationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation

func (*CodeGuruReviewer) DescribeRepositoryAssociationWithContext Uses

func (c *CodeGuruReviewer) DescribeRepositoryAssociationWithContext(ctx aws.Context, input *DescribeRepositoryAssociationInput, opts ...request.Option) (*DescribeRepositoryAssociationOutput, error)

DescribeRepositoryAssociationWithContext is the same as DescribeRepositoryAssociation with the addition of the ability to pass a context and additional request options.

See DescribeRepositoryAssociation for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CodeGuruReviewer) DisassociateRepository Uses

func (c *CodeGuruReviewer) DisassociateRepository(input *DisassociateRepositoryInput) (*DisassociateRepositoryOutput, error)

DisassociateRepository API operation for Amazon CodeGuru Reviewer.

Removes the association between Amazon CodeGuru Reviewer and a repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CodeGuru Reviewer's API operation DisassociateRepository for usage and error information.

Returned Error Types:

* NotFoundException
The resource specified in the request was not found.

* InternalServerException
The server encountered an internal error and is unable to complete the request.

* ValidationException
The input fails to satisfy the specified constraints.

* AccessDeniedException
You do not have sufficient access to perform this action.

* 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.

* ThrottlingException
The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository

func (*CodeGuruReviewer) DisassociateRepositoryRequest Uses

func (c *CodeGuruReviewer) DisassociateRepositoryRequest(input *DisassociateRepositoryInput) (req *request.Request, output *DisassociateRepositoryOutput)

DisassociateRepositoryRequest generates a "aws/request.Request" representing the client's request for the DisassociateRepository operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisassociateRepository for more information on using the DisassociateRepository API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisassociateRepositoryRequest method.
req, resp := client.DisassociateRepositoryRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository

func (*CodeGuruReviewer) DisassociateRepositoryWithContext Uses

func (c *CodeGuruReviewer) DisassociateRepositoryWithContext(ctx aws.Context, input *DisassociateRepositoryInput, opts ...request.Option) (*DisassociateRepositoryOutput, error)

DisassociateRepositoryWithContext is the same as DisassociateRepository with the addition of the ability to pass a context and additional request options.

See DisassociateRepository for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CodeGuruReviewer) ListRepositoryAssociations Uses

func (c *CodeGuruReviewer) ListRepositoryAssociations(input *ListRepositoryAssociationsInput) (*ListRepositoryAssociationsOutput, error)

ListRepositoryAssociations 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon CodeGuru Reviewer's API operation ListRepositoryAssociations for usage and error information.

Returned Error Types:

* InternalServerException
The server encountered an internal error and is unable to complete the request.

* ValidationException
The input fails to satisfy the specified constraints.

* ThrottlingException
The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations

func (*CodeGuruReviewer) ListRepositoryAssociationsPages Uses

func (c *CodeGuruReviewer) ListRepositoryAssociationsPages(input *ListRepositoryAssociationsInput, fn func(*ListRepositoryAssociationsOutput, bool) bool) error

ListRepositoryAssociationsPages iterates over the pages of a ListRepositoryAssociations operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListRepositoryAssociations method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListRepositoryAssociations operation.
pageNum := 0
err := client.ListRepositoryAssociationsPages(params,
    func(page *codegurureviewer.ListRepositoryAssociationsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CodeGuruReviewer) ListRepositoryAssociationsPagesWithContext Uses

func (c *CodeGuruReviewer) ListRepositoryAssociationsPagesWithContext(ctx aws.Context, input *ListRepositoryAssociationsInput, fn func(*ListRepositoryAssociationsOutput, bool) bool, opts ...request.Option) error

ListRepositoryAssociationsPagesWithContext same as ListRepositoryAssociationsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CodeGuruReviewer) ListRepositoryAssociationsRequest Uses

func (c *CodeGuruReviewer) ListRepositoryAssociationsRequest(input *ListRepositoryAssociationsInput) (req *request.Request, output *ListRepositoryAssociationsOutput)

ListRepositoryAssociationsRequest generates a "aws/request.Request" representing the client's request for the ListRepositoryAssociations operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListRepositoryAssociations for more information on using the ListRepositoryAssociations API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListRepositoryAssociationsRequest method.
req, resp := client.ListRepositoryAssociationsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations

func (*CodeGuruReviewer) ListRepositoryAssociationsWithContext Uses

func (c *CodeGuruReviewer) ListRepositoryAssociationsWithContext(ctx aws.Context, input *ListRepositoryAssociationsInput, opts ...request.Option) (*ListRepositoryAssociationsOutput, error)

ListRepositoryAssociationsWithContext is the same as ListRepositoryAssociations with the addition of the ability to pass a context and additional request options.

See ListRepositoryAssociations for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type ConflictException Uses

type ConflictException struct {
    RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

    Message_ *string `locationName:"Message" type:"string"`
    // contains filtered or unexported fields
}

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.

func (*ConflictException) Code Uses

func (s *ConflictException) Code() string

Code returns the exception type name.

func (*ConflictException) Error Uses

func (s *ConflictException) Error() string

func (ConflictException) GoString Uses

func (s ConflictException) GoString() string

GoString returns the string representation

func (*ConflictException) Message Uses

func (s *ConflictException) Message() string

Message returns the exception's message.

func (*ConflictException) OrigErr Uses

func (s *ConflictException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ConflictException) RequestID Uses

func (s *ConflictException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ConflictException) StatusCode Uses

func (s *ConflictException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ConflictException) String Uses

func (s ConflictException) String() string

String returns the string representation

type DescribeRepositoryAssociationInput Uses

type DescribeRepositoryAssociationInput 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 (DescribeRepositoryAssociationInput) GoString Uses

func (s DescribeRepositoryAssociationInput) GoString() string

GoString returns the string representation

func (*DescribeRepositoryAssociationInput) SetAssociationArn Uses

func (s *DescribeRepositoryAssociationInput) SetAssociationArn(v string) *DescribeRepositoryAssociationInput

SetAssociationArn sets the AssociationArn field's value.

func (DescribeRepositoryAssociationInput) String Uses

func (s DescribeRepositoryAssociationInput) String() string

String returns the string representation

func (*DescribeRepositoryAssociationInput) Validate Uses

func (s *DescribeRepositoryAssociationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeRepositoryAssociationOutput Uses

type DescribeRepositoryAssociationOutput struct {

    // Information about the repository association.
    RepositoryAssociation *RepositoryAssociation `type:"structure"`
    // contains filtered or unexported fields
}

func (DescribeRepositoryAssociationOutput) GoString Uses

func (s DescribeRepositoryAssociationOutput) GoString() string

GoString returns the string representation

func (*DescribeRepositoryAssociationOutput) SetRepositoryAssociation Uses

func (s *DescribeRepositoryAssociationOutput) SetRepositoryAssociation(v *RepositoryAssociation) *DescribeRepositoryAssociationOutput

SetRepositoryAssociation sets the RepositoryAssociation field's value.

func (DescribeRepositoryAssociationOutput) String Uses

func (s DescribeRepositoryAssociationOutput) String() string

String returns the string representation

type DisassociateRepositoryInput Uses

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) GoString Uses

func (s DisassociateRepositoryInput) GoString() string

GoString returns the string representation

func (*DisassociateRepositoryInput) SetAssociationArn Uses

func (s *DisassociateRepositoryInput) SetAssociationArn(v string) *DisassociateRepositoryInput

SetAssociationArn sets the AssociationArn field's value.

func (DisassociateRepositoryInput) String Uses

func (s DisassociateRepositoryInput) String() string

String returns the string representation

func (*DisassociateRepositoryInput) Validate Uses

func (s *DisassociateRepositoryInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DisassociateRepositoryOutput Uses

type DisassociateRepositoryOutput struct {

    // Information about the disassociated repository.
    RepositoryAssociation *RepositoryAssociation `type:"structure"`
    // contains filtered or unexported fields
}

func (DisassociateRepositoryOutput) GoString Uses

func (s DisassociateRepositoryOutput) GoString() string

GoString returns the string representation

func (*DisassociateRepositoryOutput) SetRepositoryAssociation Uses

func (s *DisassociateRepositoryOutput) SetRepositoryAssociation(v *RepositoryAssociation) *DisassociateRepositoryOutput

SetRepositoryAssociation sets the RepositoryAssociation field's value.

func (DisassociateRepositoryOutput) String Uses

func (s DisassociateRepositoryOutput) String() string

String returns the string representation

type InternalServerException Uses

type InternalServerException struct {
    RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

    Message_ *string `locationName:"Message" type:"string"`
    // contains filtered or unexported fields
}

The server encountered an internal error and is unable to complete the request.

func (*InternalServerException) Code Uses

func (s *InternalServerException) Code() string

Code returns the exception type name.

func (*InternalServerException) Error Uses

func (s *InternalServerException) Error() string

func (InternalServerException) GoString Uses

func (s InternalServerException) GoString() string

GoString returns the string representation

func (*InternalServerException) Message Uses

func (s *InternalServerException) Message() string

Message returns the exception's message.

func (*InternalServerException) OrigErr Uses

func (s *InternalServerException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InternalServerException) RequestID Uses

func (s *InternalServerException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InternalServerException) StatusCode Uses

func (s *InternalServerException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (InternalServerException) String Uses

func (s InternalServerException) String() string

String returns the string representation

type ListRepositoryAssociationsInput Uses

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 along 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 100. If this parameter is not used, then
    // ListRepositoryAssociations returns up to 100 results and a nextToken value
    // if applicable.
    MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`

    // List of 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.
    //
    // This token should be treated 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 AWS CodeCommit, the owner is the AWS
    // account id. For GitHub, it is the GitHub account name.
    Owners []*string `location:"querystring" locationName:"Owner" min:"1" type:"list"`

    // List of provider types to use as a filter.
    ProviderTypes []*string `location:"querystring" locationName:"ProviderType" min:"1" type:"list"`

    // List of states to use as a filter.
    States []*string `location:"querystring" locationName:"State" min:"1" type:"list"`
    // contains filtered or unexported fields
}

func (ListRepositoryAssociationsInput) GoString Uses

func (s ListRepositoryAssociationsInput) GoString() string

GoString returns the string representation

func (*ListRepositoryAssociationsInput) SetMaxResults Uses

func (s *ListRepositoryAssociationsInput) SetMaxResults(v int64) *ListRepositoryAssociationsInput

SetMaxResults sets the MaxResults field's value.

func (*ListRepositoryAssociationsInput) SetNames Uses

func (s *ListRepositoryAssociationsInput) SetNames(v []*string) *ListRepositoryAssociationsInput

SetNames sets the Names field's value.

func (*ListRepositoryAssociationsInput) SetNextToken Uses

func (s *ListRepositoryAssociationsInput) SetNextToken(v string) *ListRepositoryAssociationsInput

SetNextToken sets the NextToken field's value.

func (*ListRepositoryAssociationsInput) SetOwners Uses

func (s *ListRepositoryAssociationsInput) SetOwners(v []*string) *ListRepositoryAssociationsInput

SetOwners sets the Owners field's value.

func (*ListRepositoryAssociationsInput) SetProviderTypes Uses

func (s *ListRepositoryAssociationsInput) SetProviderTypes(v []*string) *ListRepositoryAssociationsInput

SetProviderTypes sets the ProviderTypes field's value.

func (*ListRepositoryAssociationsInput) SetStates Uses

func (s *ListRepositoryAssociationsInput) SetStates(v []*string) *ListRepositoryAssociationsInput

SetStates sets the States field's value.

func (ListRepositoryAssociationsInput) String Uses

func (s ListRepositoryAssociationsInput) String() string

String returns the string representation

func (*ListRepositoryAssociationsInput) Validate Uses

func (s *ListRepositoryAssociationsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListRepositoryAssociationsOutput Uses

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) GoString Uses

func (s ListRepositoryAssociationsOutput) GoString() string

GoString returns the string representation

func (*ListRepositoryAssociationsOutput) SetNextToken Uses

func (s *ListRepositoryAssociationsOutput) SetNextToken(v string) *ListRepositoryAssociationsOutput

SetNextToken sets the NextToken field's value.

func (*ListRepositoryAssociationsOutput) SetRepositoryAssociationSummaries Uses

func (s *ListRepositoryAssociationsOutput) SetRepositoryAssociationSummaries(v []*RepositoryAssociationSummary) *ListRepositoryAssociationsOutput

SetRepositoryAssociationSummaries sets the RepositoryAssociationSummaries field's value.

func (ListRepositoryAssociationsOutput) String Uses

func (s ListRepositoryAssociationsOutput) String() string

String returns the string representation

type NotFoundException Uses

type NotFoundException struct {
    RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

    Message_ *string `locationName:"Message" type:"string"`
    // contains filtered or unexported fields
}

The resource specified in the request was not found.

func (*NotFoundException) Code Uses

func (s *NotFoundException) Code() string

Code returns the exception type name.

func (*NotFoundException) Error Uses

func (s *NotFoundException) Error() string

func (NotFoundException) GoString Uses

func (s NotFoundException) GoString() string

GoString returns the string representation

func (*NotFoundException) Message Uses

func (s *NotFoundException) Message() string

Message returns the exception's message.

func (*NotFoundException) OrigErr Uses

func (s *NotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*NotFoundException) RequestID Uses

func (s *NotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*NotFoundException) StatusCode Uses

func (s *NotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (NotFoundException) String Uses

func (s NotFoundException) String() string

String returns the string representation

type Repository Uses

type Repository struct {

    // Information about an AWS CodeCommit repository.
    CodeCommit *CodeCommitRepository `type:"structure"`
    // contains filtered or unexported fields
}

Information about a repository.

func (Repository) GoString Uses

func (s Repository) GoString() string

GoString returns the string representation

func (*Repository) SetCodeCommit Uses

func (s *Repository) SetCodeCommit(v *CodeCommitRepository) *Repository

SetCodeCommit sets the CodeCommit field's value.

func (Repository) String Uses

func (s Repository) String() string

String returns the string representation

func (*Repository) Validate Uses

func (s *Repository) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RepositoryAssociation Uses

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 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 *string `type:"string" enum:"ProviderType"`

    // The state of the repository association.
    State *string `type:"string" enum:"RepositoryAssociationState"`

    // 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) GoString Uses

func (s RepositoryAssociation) GoString() string

GoString returns the string representation

func (*RepositoryAssociation) SetAssociationArn Uses

func (s *RepositoryAssociation) SetAssociationArn(v string) *RepositoryAssociation

SetAssociationArn sets the AssociationArn field's value.

func (*RepositoryAssociation) SetAssociationId Uses

func (s *RepositoryAssociation) SetAssociationId(v string) *RepositoryAssociation

SetAssociationId sets the AssociationId field's value.

func (*RepositoryAssociation) SetCreatedTimeStamp Uses

func (s *RepositoryAssociation) SetCreatedTimeStamp(v time.Time) *RepositoryAssociation

SetCreatedTimeStamp sets the CreatedTimeStamp field's value.

func (*RepositoryAssociation) SetLastUpdatedTimeStamp Uses

func (s *RepositoryAssociation) SetLastUpdatedTimeStamp(v time.Time) *RepositoryAssociation

SetLastUpdatedTimeStamp sets the LastUpdatedTimeStamp field's value.

func (*RepositoryAssociation) SetName Uses

func (s *RepositoryAssociation) SetName(v string) *RepositoryAssociation

SetName sets the Name field's value.

func (*RepositoryAssociation) SetOwner Uses

func (s *RepositoryAssociation) SetOwner(v string) *RepositoryAssociation

SetOwner sets the Owner field's value.

func (*RepositoryAssociation) SetProviderType Uses

func (s *RepositoryAssociation) SetProviderType(v string) *RepositoryAssociation

SetProviderType sets the ProviderType field's value.

func (*RepositoryAssociation) SetState Uses

func (s *RepositoryAssociation) SetState(v string) *RepositoryAssociation

SetState sets the State field's value.

func (*RepositoryAssociation) SetStateReason Uses

func (s *RepositoryAssociation) SetStateReason(v string) *RepositoryAssociation

SetStateReason sets the StateReason field's value.

func (RepositoryAssociation) String Uses

func (s RepositoryAssociation) String() string

String returns the string representation

type RepositoryAssociationSummary Uses

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 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 *string `type:"string" enum:"ProviderType"`

    // 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. For more information about troubleshooting (or why
    // it failed), see [troubleshooting topic].
    //
    // Disassociating
    //
    // Amazon CodeGuru Reviewer is in the process of disassociating with the repository.
    State *string `type:"string" enum:"RepositoryAssociationState"`
    // contains filtered or unexported fields
}

Information about a repository association.

func (RepositoryAssociationSummary) GoString Uses

func (s RepositoryAssociationSummary) GoString() string

GoString returns the string representation

func (*RepositoryAssociationSummary) SetAssociationArn Uses

func (s *RepositoryAssociationSummary) SetAssociationArn(v string) *RepositoryAssociationSummary

SetAssociationArn sets the AssociationArn field's value.

func (*RepositoryAssociationSummary) SetAssociationId Uses

func (s *RepositoryAssociationSummary) SetAssociationId(v string) *RepositoryAssociationSummary

SetAssociationId sets the AssociationId field's value.

func (*RepositoryAssociationSummary) SetLastUpdatedTimeStamp Uses

func (s *RepositoryAssociationSummary) SetLastUpdatedTimeStamp(v time.Time) *RepositoryAssociationSummary

SetLastUpdatedTimeStamp sets the LastUpdatedTimeStamp field's value.

func (*RepositoryAssociationSummary) SetName Uses

func (s *RepositoryAssociationSummary) SetName(v string) *RepositoryAssociationSummary

SetName sets the Name field's value.

func (*RepositoryAssociationSummary) SetOwner Uses

func (s *RepositoryAssociationSummary) SetOwner(v string) *RepositoryAssociationSummary

SetOwner sets the Owner field's value.

func (*RepositoryAssociationSummary) SetProviderType Uses

func (s *RepositoryAssociationSummary) SetProviderType(v string) *RepositoryAssociationSummary

SetProviderType sets the ProviderType field's value.

func (*RepositoryAssociationSummary) SetState Uses

func (s *RepositoryAssociationSummary) SetState(v string) *RepositoryAssociationSummary

SetState sets the State field's value.

func (RepositoryAssociationSummary) String Uses

func (s RepositoryAssociationSummary) String() string

String returns the string representation

type ThrottlingException Uses

type ThrottlingException struct {
    RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

    Message_ *string `locationName:"Message" type:"string"`
    // contains filtered or unexported fields
}

The request was denied due to request throttling.

func (*ThrottlingException) Code Uses

func (s *ThrottlingException) Code() string

Code returns the exception type name.

func (*ThrottlingException) Error Uses

func (s *ThrottlingException) Error() string

func (ThrottlingException) GoString Uses

func (s ThrottlingException) GoString() string

GoString returns the string representation

func (*ThrottlingException) Message Uses

func (s *ThrottlingException) Message() string

Message returns the exception's message.

func (*ThrottlingException) OrigErr Uses

func (s *ThrottlingException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ThrottlingException) RequestID Uses

func (s *ThrottlingException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ThrottlingException) StatusCode Uses

func (s *ThrottlingException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ThrottlingException) String Uses

func (s ThrottlingException) String() string

String returns the string representation

type ValidationException Uses

type ValidationException struct {
    RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

    Message_ *string `locationName:"Message" type:"string"`
    // contains filtered or unexported fields
}

The input fails to satisfy the specified constraints.

func (*ValidationException) Code Uses

func (s *ValidationException) Code() string

Code returns the exception type name.

func (*ValidationException) Error Uses

func (s *ValidationException) Error() string

func (ValidationException) GoString Uses

func (s ValidationException) GoString() string

GoString returns the string representation

func (*ValidationException) Message Uses

func (s *ValidationException) Message() string

Message returns the exception's message.

func (*ValidationException) OrigErr Uses

func (s *ValidationException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ValidationException) RequestID Uses

func (s *ValidationException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ValidationException) StatusCode Uses

func (s *ValidationException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ValidationException) String Uses

func (s ValidationException) String() string

String returns the string representation

Directories

PathSynopsis
codegurureviewerifacePackage codegururevieweriface provides an interface to enable mocking the Amazon CodeGuru Reviewer service client for testing your code.

Package codegurureviewer imports 10 packages (graph) and is imported by 6 packages. Updated 2020-04-06. Refresh now. Tools for package owners.