Documentation ¶
Overview ¶
Package codecommit provides a client for AWS CodeCommit.
Index ¶
- Constants
- type BatchGetRepositoriesInput
- type BatchGetRepositoriesOutput
- func (s BatchGetRepositoriesOutput) GoString() string
- func (s *BatchGetRepositoriesOutput) SetRepositories(v []*RepositoryMetadata) *BatchGetRepositoriesOutput
- func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *BatchGetRepositoriesOutput
- func (s BatchGetRepositoriesOutput) String() string
- type BranchInfo
- type CodeCommit
- func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error)
- func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInput) (req *request.Request, output *BatchGetRepositoriesOutput)
- func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error)
- func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput)
- func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error)
- func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput)
- func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error)
- func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput)
- func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error)
- func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput)
- func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error)
- func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput)
- func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error)
- func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput)
- func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error)
- func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput)
- func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error)
- func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, ...) error
- func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput)
- func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error)
- func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, ...) error
- func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput)
- func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error)
- func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput)
- func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error)
- func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput)
- func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error)
- func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) (req *request.Request, output *UpdateDefaultBranchOutput)
- func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error)
- func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryDescriptionInput) (req *request.Request, output *UpdateRepositoryDescriptionOutput)
- func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error)
- func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInput) (req *request.Request, output *UpdateRepositoryNameOutput)
- type Commit
- func (s Commit) GoString() string
- func (s *Commit) SetAdditionalData(v string) *Commit
- func (s *Commit) SetAuthor(v *UserInfo) *Commit
- func (s *Commit) SetCommitter(v *UserInfo) *Commit
- func (s *Commit) SetMessage(v string) *Commit
- func (s *Commit) SetParents(v []*string) *Commit
- func (s *Commit) SetTreeId(v string) *Commit
- func (s Commit) String() string
- type CreateBranchInput
- func (s CreateBranchInput) GoString() string
- func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput
- func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput
- func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput
- func (s CreateBranchInput) String() string
- func (s *CreateBranchInput) Validate() error
- type CreateBranchOutput
- type CreateRepositoryInput
- func (s CreateRepositoryInput) GoString() string
- func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput
- func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput
- func (s CreateRepositoryInput) String() string
- func (s *CreateRepositoryInput) Validate() error
- type CreateRepositoryOutput
- type DeleteRepositoryInput
- type DeleteRepositoryOutput
- type GetBranchInput
- type GetBranchOutput
- type GetCommitInput
- type GetCommitOutput
- type GetRepositoryInput
- type GetRepositoryOutput
- type GetRepositoryTriggersInput
- type GetRepositoryTriggersOutput
- func (s GetRepositoryTriggersOutput) GoString() string
- func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput
- func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput
- func (s GetRepositoryTriggersOutput) String() string
- type ListBranchesInput
- type ListBranchesOutput
- type ListRepositoriesInput
- func (s ListRepositoriesInput) GoString() string
- func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput
- func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput
- func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput
- func (s ListRepositoriesInput) String() string
- type ListRepositoriesOutput
- type PutRepositoryTriggersInput
- func (s PutRepositoryTriggersInput) GoString() string
- func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput
- func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput
- func (s PutRepositoryTriggersInput) String() string
- func (s *PutRepositoryTriggersInput) Validate() error
- type PutRepositoryTriggersOutput
- type RepositoryMetadata
- func (s RepositoryMetadata) GoString() string
- func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata
- func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata
- func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata
- func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata
- func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata
- func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata
- func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata
- func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata
- func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata
- func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata
- func (s RepositoryMetadata) String() string
- type RepositoryNameIdPair
- type RepositoryTrigger
- func (s RepositoryTrigger) GoString() string
- func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger
- func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger
- func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger
- func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger
- func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger
- func (s RepositoryTrigger) String() string
- type RepositoryTriggerExecutionFailure
- func (s RepositoryTriggerExecutionFailure) GoString() string
- func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure
- func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure
- func (s RepositoryTriggerExecutionFailure) String() string
- type TestRepositoryTriggersInput
- func (s TestRepositoryTriggersInput) GoString() string
- func (s *TestRepositoryTriggersInput) SetRepositoryName(v string) *TestRepositoryTriggersInput
- func (s *TestRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *TestRepositoryTriggersInput
- func (s TestRepositoryTriggersInput) String() string
- func (s *TestRepositoryTriggersInput) Validate() error
- type TestRepositoryTriggersOutput
- func (s TestRepositoryTriggersOutput) GoString() string
- func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput
- func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput
- func (s TestRepositoryTriggersOutput) String() string
- type UpdateDefaultBranchInput
- func (s UpdateDefaultBranchInput) GoString() string
- func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput
- func (s *UpdateDefaultBranchInput) SetRepositoryName(v string) *UpdateDefaultBranchInput
- func (s UpdateDefaultBranchInput) String() string
- func (s *UpdateDefaultBranchInput) Validate() error
- type UpdateDefaultBranchOutput
- type UpdateRepositoryDescriptionInput
- func (s UpdateRepositoryDescriptionInput) GoString() string
- func (s *UpdateRepositoryDescriptionInput) SetRepositoryDescription(v string) *UpdateRepositoryDescriptionInput
- func (s *UpdateRepositoryDescriptionInput) SetRepositoryName(v string) *UpdateRepositoryDescriptionInput
- func (s UpdateRepositoryDescriptionInput) String() string
- func (s *UpdateRepositoryDescriptionInput) Validate() error
- type UpdateRepositoryDescriptionOutput
- type UpdateRepositoryNameInput
- func (s UpdateRepositoryNameInput) GoString() string
- func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput
- func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput
- func (s UpdateRepositoryNameInput) String() string
- func (s *UpdateRepositoryNameInput) Validate() error
- type UpdateRepositoryNameOutput
- type UserInfo
Examples ¶
- CodeCommit.BatchGetRepositories
- CodeCommit.CreateBranch
- CodeCommit.CreateRepository
- CodeCommit.DeleteRepository
- CodeCommit.GetBranch
- CodeCommit.GetCommit
- CodeCommit.GetRepository
- CodeCommit.GetRepositoryTriggers
- CodeCommit.ListBranches
- CodeCommit.ListRepositories
- CodeCommit.PutRepositoryTriggers
- CodeCommit.TestRepositoryTriggers
- CodeCommit.UpdateDefaultBranch
- CodeCommit.UpdateRepositoryDescription
- CodeCommit.UpdateRepositoryName
Constants ¶
const ( // OrderEnumAscending is a OrderEnum enum value OrderEnumAscending = "ascending" // OrderEnumDescending is a OrderEnum enum value OrderEnumDescending = "descending" )
const ( // RepositoryTriggerEventEnumAll is a RepositoryTriggerEventEnum enum value RepositoryTriggerEventEnumAll = "all" // RepositoryTriggerEventEnumUpdateReference is a RepositoryTriggerEventEnum enum value RepositoryTriggerEventEnumUpdateReference = "updateReference" // RepositoryTriggerEventEnumCreateReference is a RepositoryTriggerEventEnum enum value RepositoryTriggerEventEnumCreateReference = "createReference" // RepositoryTriggerEventEnumDeleteReference is a RepositoryTriggerEventEnum enum value RepositoryTriggerEventEnumDeleteReference = "deleteReference" )
const ( // SortByEnumRepositoryName is a SortByEnum enum value SortByEnumRepositoryName = "repositoryName" // SortByEnumLastModifiedDate is a SortByEnum enum value SortByEnumLastModifiedDate = "lastModifiedDate" )
const ServiceName = "codecommit"
A ServiceName is the name of the service the client will make API calls to.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchGetRepositoriesInput ¶
type BatchGetRepositoriesInput struct { // The names of the repositories to get information about. // // RepositoryNames is a required field RepositoryNames []*string `locationName:"repositoryNames" type:"list" required:"true"` // contains filtered or unexported fields }
Represents the input of a batch get repositories operation.
func (BatchGetRepositoriesInput) GoString ¶
func (s BatchGetRepositoriesInput) GoString() string
GoString returns the string representation
func (*BatchGetRepositoriesInput) SetRepositoryNames ¶ added in v1.5.1
func (s *BatchGetRepositoriesInput) SetRepositoryNames(v []*string) *BatchGetRepositoriesInput
SetRepositoryNames sets the RepositoryNames field's value.
func (BatchGetRepositoriesInput) String ¶
func (s BatchGetRepositoriesInput) String() string
String returns the string representation
func (*BatchGetRepositoriesInput) Validate ¶ added in v1.1.24
func (s *BatchGetRepositoriesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BatchGetRepositoriesOutput ¶
type BatchGetRepositoriesOutput struct { // A list of repositories returned by the batch get repositories operation. Repositories []*RepositoryMetadata `locationName:"repositories" type:"list"` // Returns a list of repository names for which information could not be found. RepositoriesNotFound []*string `locationName:"repositoriesNotFound" type:"list"` // contains filtered or unexported fields }
Represents the output of a batch get repositories operation.
func (BatchGetRepositoriesOutput) GoString ¶
func (s BatchGetRepositoriesOutput) GoString() string
GoString returns the string representation
func (*BatchGetRepositoriesOutput) SetRepositories ¶ added in v1.5.1
func (s *BatchGetRepositoriesOutput) SetRepositories(v []*RepositoryMetadata) *BatchGetRepositoriesOutput
SetRepositories sets the Repositories field's value.
func (*BatchGetRepositoriesOutput) SetRepositoriesNotFound ¶ added in v1.5.1
func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *BatchGetRepositoriesOutput
SetRepositoriesNotFound sets the RepositoriesNotFound field's value.
func (BatchGetRepositoriesOutput) String ¶
func (s BatchGetRepositoriesOutput) String() string
String returns the string representation
type BranchInfo ¶
type BranchInfo struct { // The name of the branch. BranchName *string `locationName:"branchName" min:"1" type:"string"` // The ID of the last commit made to the branch. CommitId *string `locationName:"commitId" type:"string"` // contains filtered or unexported fields }
Returns information about a branch.
func (BranchInfo) GoString ¶
func (s BranchInfo) GoString() string
GoString returns the string representation
func (*BranchInfo) SetBranchName ¶ added in v1.5.1
func (s *BranchInfo) SetBranchName(v string) *BranchInfo
SetBranchName sets the BranchName field's value.
func (*BranchInfo) SetCommitId ¶ added in v1.5.1
func (s *BranchInfo) SetCommitId(v string) *BranchInfo
SetCommitId sets the CommitId field's value.
func (BranchInfo) String ¶
func (s BranchInfo) String() string
String returns the string representation
type CodeCommit ¶
This is the AWS CodeCommit API Reference. This reference provides descriptions of the operations and data types for AWS CodeCommit API.
You can use the AWS CodeCommit API to work with the following objects:
- Repositories, by calling the following: BatchGetRepositories, which returns information about one or more repositories associated with your AWS account
CreateRepository, which creates an AWS CodeCommit repository DeleteRepository, which deletes an AWS CodeCommit repository GetRepository, which returns information about a specified repository ListRepositories, which lists all AWS CodeCommit repositories associated
with your AWS account
UpdateRepositoryDescription, which sets or updates the description of the
repository
UpdateRepositoryName, which changes the name of the repository. If you change
the name of a repository, no other users of that repository will be able to access it until you send them the new HTTPS or SSH URL to use. * Branches, by calling the following: CreateBranch, which creates a new branch in a specified repository
GetBranch, which returns information about a specified branch ListBranches, which lists all branches for a specified repository UpdateDefaultBranch, which changes the default branch for a repository
Information about committed code in a repository, by calling the following: GetCommit, which returns information about a commit, including commit messages and committer information.
Triggers, by calling the following: GetRepositoryTriggers, which returns information about triggers configured for a repository
PutRepositoryTriggers, which replaces all triggers for a repository and can
be used to create or delete triggers
TestRepositoryTriggers, which tests the functionality of a repository trigger
by sending data to the trigger target
For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html). The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeCommit
New creates a new instance of the CodeCommit 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:
// Create a CodeCommit client from just a session. svc := codecommit.New(mySession) // Create a CodeCommit client with additional configuration svc := codecommit.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*CodeCommit) BatchGetRepositories ¶
func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*BatchGetRepositoriesOutput, error)
BatchGetRepositories API operation for AWS CodeCommit.
Returns information about one or more repositories.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
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 AWS CodeCommit's API operation BatchGetRepositories for usage and error information.
Returned Error Codes:
RepositoryNamesRequiredException A repository names object is required but was not specified.
MaximumRepositoryNamesExceededException The maximum number of allowed repository names was exceeded. Currently, this number is 25.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.BatchGetRepositoriesInput{ RepositoryNames: []*string{ // Required aws.String("RepositoryName"), // Required // More values... }, } resp, err := svc.BatchGetRepositories(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) BatchGetRepositoriesRequest ¶
func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInput) (req *request.Request, output *BatchGetRepositoriesOutput)
BatchGetRepositoriesRequest generates a "aws/request.Request" representing the client's request for the BatchGetRepositories operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See BatchGetRepositories for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the BatchGetRepositories method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the BatchGetRepositoriesRequest method. req, resp := client.BatchGetRepositoriesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) CreateBranch ¶
func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error)
CreateBranch API operation for AWS CodeCommit.
Creates a new branch in a repository and points the branch to a commit.
Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.
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 AWS CodeCommit's API operation CreateBranch for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException The specified repository does not exist.
BranchNameRequiredException A branch name is required but was not specified.
BranchNameExistsException The specified branch name already exists.
InvalidBranchNameException The specified branch name is not valid.
CommitIdRequiredException A commit ID was not specified.
CommitDoesNotExistException The specified commit does not exist or no commit was specified, and the specified repository has no default branch.
InvalidCommitIdException The specified commit ID is not valid.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.CreateBranchInput{ BranchName: aws.String("BranchName"), // Required CommitId: aws.String("CommitId"), // Required RepositoryName: aws.String("RepositoryName"), // Required } resp, err := svc.CreateBranch(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) CreateBranchRequest ¶
func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput)
CreateBranchRequest generates a "aws/request.Request" representing the client's request for the CreateBranch operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateBranch for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateBranch method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateBranchRequest method. req, resp := client.CreateBranchRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) CreateRepository ¶
func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error)
CreateRepository API operation for AWS CodeCommit.
Creates a new, empty 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 AWS CodeCommit's API operation CreateRepository for usage and error information.
Returned Error Codes:
RepositoryNameExistsException The specified repository name already exists.
RepositoryNameRequiredException A repository name is required but was not specified.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
InvalidRepositoryDescriptionException The specified repository description is not valid.
RepositoryLimitExceededException A repository resource limit was exceeded.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.CreateRepositoryInput{ RepositoryName: aws.String("RepositoryName"), // Required RepositoryDescription: aws.String("RepositoryDescription"), } resp, err := svc.CreateRepository(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) CreateRepositoryRequest ¶
func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput)
CreateRepositoryRequest generates a "aws/request.Request" representing the client's request for the CreateRepository operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateRepository for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateRepository method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the CreateRepositoryRequest method. req, resp := client.CreateRepositoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) DeleteRepository ¶
func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error)
DeleteRepository API operation for AWS CodeCommit.
Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
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 AWS CodeCommit's API operation DeleteRepository for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.DeleteRepositoryInput{ RepositoryName: aws.String("RepositoryName"), // Required } resp, err := svc.DeleteRepository(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) DeleteRepositoryRequest ¶
func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput)
DeleteRepositoryRequest generates a "aws/request.Request" representing the client's request for the DeleteRepository operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteRepository for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteRepository method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the DeleteRepositoryRequest method. req, resp := client.DeleteRepositoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) GetBranch ¶
func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error)
GetBranch API operation for AWS CodeCommit.
Returns information about a repository branch, including its name and the last commit ID.
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 AWS CodeCommit's API operation GetBranch for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
RepositoryDoesNotExistException The specified repository does not exist.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
BranchNameRequiredException A branch name is required but was not specified.
InvalidBranchNameException The specified branch name is not valid.
BranchDoesNotExistException The specified branch does not exist.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.GetBranchInput{ BranchName: aws.String("BranchName"), RepositoryName: aws.String("RepositoryName"), } resp, err := svc.GetBranch(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) GetBranchRequest ¶
func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput)
GetBranchRequest generates a "aws/request.Request" representing the client's request for the GetBranch operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetBranch for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetBranch method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetBranchRequest method. req, resp := client.GetBranchRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) GetCommit ¶ added in v1.1.16
func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error)
GetCommit API operation for AWS CodeCommit.
Returns information about a commit, including commit message and committer information.
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 AWS CodeCommit's API operation GetCommit for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException The specified repository does not exist.
CommitIdRequiredException A commit ID was not specified.
InvalidCommitIdException The specified commit ID is not valid.
CommitIdDoesNotExistException The specified commit ID does not exist.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.GetCommitInput{ CommitId: aws.String("ObjectId"), // Required RepositoryName: aws.String("RepositoryName"), // Required } resp, err := svc.GetCommit(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) GetCommitRequest ¶ added in v1.1.16
func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput)
GetCommitRequest generates a "aws/request.Request" representing the client's request for the GetCommit operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetCommit for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetCommit method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetCommitRequest method. req, resp := client.GetCommitRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) GetRepository ¶
func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error)
GetRepository API operation for AWS CodeCommit.
Returns information about a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
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 AWS CodeCommit's API operation GetRepository for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
RepositoryDoesNotExistException The specified repository does not exist.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.GetRepositoryInput{ RepositoryName: aws.String("RepositoryName"), // Required } resp, err := svc.GetRepository(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) GetRepositoryRequest ¶
func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput)
GetRepositoryRequest generates a "aws/request.Request" representing the client's request for the GetRepository operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetRepository for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetRepository method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetRepositoryRequest method. req, resp := client.GetRepositoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) GetRepositoryTriggers ¶ added in v1.1.16
func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*GetRepositoryTriggersOutput, error)
GetRepositoryTriggers API operation for AWS CodeCommit.
Gets information about triggers configured for 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 AWS CodeCommit's API operation GetRepositoryTriggers for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryDoesNotExistException The specified repository does not exist.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.GetRepositoryTriggersInput{ RepositoryName: aws.String("RepositoryName"), } resp, err := svc.GetRepositoryTriggers(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) GetRepositoryTriggersRequest ¶ added in v1.1.16
func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput)
GetRepositoryTriggersRequest generates a "aws/request.Request" representing the client's request for the GetRepositoryTriggers operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetRepositoryTriggers for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetRepositoryTriggers method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the GetRepositoryTriggersRequest method. req, resp := client.GetRepositoryTriggersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) ListBranches ¶
func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error)
ListBranches API operation for AWS CodeCommit.
Gets information about one or more branches in 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 AWS CodeCommit's API operation ListBranches for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
RepositoryDoesNotExistException The specified repository does not exist.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
InvalidContinuationTokenException The specified continuation token is not valid.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.ListBranchesInput{ RepositoryName: aws.String("RepositoryName"), // Required NextToken: aws.String("NextToken"), } resp, err := svc.ListBranches(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) ListBranchesPages ¶ added in v1.1.16
func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, fn func(p *ListBranchesOutput, lastPage bool) (shouldContinue bool)) error
ListBranchesPages iterates over the pages of a ListBranches operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListBranches 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 ListBranches operation. pageNum := 0 err := client.ListBranchesPages(params, func(page *ListBranchesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*CodeCommit) ListBranchesRequest ¶
func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput)
ListBranchesRequest generates a "aws/request.Request" representing the client's request for the ListBranches operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ListBranches for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListBranches method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the ListBranchesRequest method. req, resp := client.ListBranchesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) ListRepositories ¶
func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error)
ListRepositories API operation for AWS CodeCommit.
Gets information about one or more repositories.
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 AWS CodeCommit's API operation ListRepositories for usage and error information.
Returned Error Codes:
InvalidSortByException The specified sort by value is not valid.
InvalidOrderException The specified sort order is not valid.
InvalidContinuationTokenException The specified continuation token is not valid.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.ListRepositoriesInput{ NextToken: aws.String("NextToken"), Order: aws.String("OrderEnum"), SortBy: aws.String("SortByEnum"), } resp, err := svc.ListRepositories(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) ListRepositoriesPages ¶ added in v1.1.16
func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, fn func(p *ListRepositoriesOutput, lastPage bool) (shouldContinue bool)) error
ListRepositoriesPages iterates over the pages of a ListRepositories operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListRepositories 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 ListRepositories operation. pageNum := 0 err := client.ListRepositoriesPages(params, func(page *ListRepositoriesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*CodeCommit) ListRepositoriesRequest ¶
func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput)
ListRepositoriesRequest generates a "aws/request.Request" representing the client's request for the ListRepositories operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ListRepositories for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListRepositories method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the ListRepositoriesRequest method. req, resp := client.ListRepositoriesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) PutRepositoryTriggers ¶ added in v1.1.16
func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*PutRepositoryTriggersOutput, error)
PutRepositoryTriggers API operation for AWS CodeCommit.
Replaces all triggers for a repository. This can be used to create or delete triggers.
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 AWS CodeCommit's API operation PutRepositoryTriggers for usage and error information.
Returned Error Codes:
RepositoryDoesNotExistException The specified repository does not exist.
RepositoryNameRequiredException A repository name is required but was not specified.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryTriggersListRequiredException The list of triggers for the repository is required but was not specified.
MaximumRepositoryTriggersExceededException The number of triggers allowed for the repository was exceeded.
InvalidRepositoryTriggerNameException The name of the trigger is not valid.
InvalidRepositoryTriggerDestinationArnException The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most common reason for this error is that the ARN does not meet the requirements for the service type.
InvalidRepositoryTriggerRegionException The region for the trigger target does not match the region for the repository. Triggers must be created in the same region as the target for the trigger.
InvalidRepositoryTriggerCustomDataException The custom data provided for the trigger is not valid.
MaximumBranchesExceededException The number of branches for the trigger was exceeded.
InvalidRepositoryTriggerBranchNameException One or more branch names specified for the trigger is not valid.
InvalidRepositoryTriggerEventsException One or more events specified for the trigger is not valid. Check to make sure that all events specified match the requirements for allowed events.
RepositoryTriggerNameRequiredException A name for the trigger is required but was not specified.
RepositoryTriggerDestinationArnRequiredException A destination ARN for the target service for the trigger is required but was not specified.
RepositoryTriggerBranchNameListRequiredException At least one branch name is required but was not specified in the trigger configuration.
RepositoryTriggerEventsListRequiredException At least one event for the trigger is required but was not specified.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.PutRepositoryTriggersInput{ RepositoryName: aws.String("RepositoryName"), Triggers: []*codecommit.RepositoryTrigger{ { // Required Branches: []*string{ aws.String("BranchName"), // Required // More values... }, CustomData: aws.String("RepositoryTriggerCustomData"), DestinationArn: aws.String("Arn"), Events: []*string{ aws.String("RepositoryTriggerEventEnum"), // Required // More values... }, Name: aws.String("RepositoryTriggerName"), }, // More values... }, } resp, err := svc.PutRepositoryTriggers(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) PutRepositoryTriggersRequest ¶ added in v1.1.16
func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput)
PutRepositoryTriggersRequest generates a "aws/request.Request" representing the client's request for the PutRepositoryTriggers operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See PutRepositoryTriggers for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the PutRepositoryTriggers method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the PutRepositoryTriggersRequest method. req, resp := client.PutRepositoryTriggersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) TestRepositoryTriggers ¶ added in v1.1.16
func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput) (*TestRepositoryTriggersOutput, error)
TestRepositoryTriggers API operation for AWS CodeCommit.
Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.
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 AWS CodeCommit's API operation TestRepositoryTriggers for usage and error information.
Returned Error Codes:
RepositoryDoesNotExistException The specified repository does not exist.
RepositoryNameRequiredException A repository name is required but was not specified.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
RepositoryTriggersListRequiredException The list of triggers for the repository is required but was not specified.
MaximumRepositoryTriggersExceededException The number of triggers allowed for the repository was exceeded.
InvalidRepositoryTriggerNameException The name of the trigger is not valid.
InvalidRepositoryTriggerDestinationArnException The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most common reason for this error is that the ARN does not meet the requirements for the service type.
InvalidRepositoryTriggerRegionException The region for the trigger target does not match the region for the repository. Triggers must be created in the same region as the target for the trigger.
InvalidRepositoryTriggerCustomDataException The custom data provided for the trigger is not valid.
MaximumBranchesExceededException The number of branches for the trigger was exceeded.
InvalidRepositoryTriggerBranchNameException One or more branch names specified for the trigger is not valid.
InvalidRepositoryTriggerEventsException One or more events specified for the trigger is not valid. Check to make sure that all events specified match the requirements for allowed events.
RepositoryTriggerNameRequiredException A name for the trigger is required but was not specified.
RepositoryTriggerDestinationArnRequiredException A destination ARN for the target service for the trigger is required but was not specified.
RepositoryTriggerBranchNameListRequiredException At least one branch name is required but was not specified in the trigger configuration.
RepositoryTriggerEventsListRequiredException At least one event for the trigger is required but was not specified.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.TestRepositoryTriggersInput{ RepositoryName: aws.String("RepositoryName"), Triggers: []*codecommit.RepositoryTrigger{ { // Required Branches: []*string{ aws.String("BranchName"), // Required // More values... }, CustomData: aws.String("RepositoryTriggerCustomData"), DestinationArn: aws.String("Arn"), Events: []*string{ aws.String("RepositoryTriggerEventEnum"), // Required // More values... }, Name: aws.String("RepositoryTriggerName"), }, // More values... }, } resp, err := svc.TestRepositoryTriggers(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) TestRepositoryTriggersRequest ¶ added in v1.1.16
func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput)
TestRepositoryTriggersRequest generates a "aws/request.Request" representing the client's request for the TestRepositoryTriggers operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See TestRepositoryTriggers for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the TestRepositoryTriggers method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the TestRepositoryTriggersRequest method. req, resp := client.TestRepositoryTriggersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) UpdateDefaultBranch ¶
func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*UpdateDefaultBranchOutput, error)
UpdateDefaultBranch API operation for AWS CodeCommit.
Sets or changes the default branch name for the specified repository.
If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
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 AWS CodeCommit's API operation UpdateDefaultBranch for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
RepositoryDoesNotExistException The specified repository does not exist.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
BranchNameRequiredException A branch name is required but was not specified.
InvalidBranchNameException The specified branch name is not valid.
BranchDoesNotExistException The specified branch does not exist.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.UpdateDefaultBranchInput{ DefaultBranchName: aws.String("BranchName"), // Required RepositoryName: aws.String("RepositoryName"), // Required } resp, err := svc.UpdateDefaultBranch(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) UpdateDefaultBranchRequest ¶
func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) (req *request.Request, output *UpdateDefaultBranchOutput)
UpdateDefaultBranchRequest generates a "aws/request.Request" representing the client's request for the UpdateDefaultBranch operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateDefaultBranch for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateDefaultBranch method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the UpdateDefaultBranchRequest method. req, resp := client.UpdateDefaultBranchRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) UpdateRepositoryDescription ¶
func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescriptionInput) (*UpdateRepositoryDescriptionOutput, error)
UpdateRepositoryDescription API operation for AWS CodeCommit.
Sets or changes the comment or description for a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
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 AWS CodeCommit's API operation UpdateRepositoryDescription for usage and error information.
Returned Error Codes:
RepositoryNameRequiredException A repository name is required but was not specified.
RepositoryDoesNotExistException The specified repository does not exist.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
InvalidRepositoryDescriptionException The specified repository description is not valid.
EncryptionIntegrityChecksFailedException An encryption integrity check failed.
EncryptionKeyAccessDeniedException An encryption key could not be accessed.
EncryptionKeyDisabledException The encryption key is disabled.
EncryptionKeyNotFoundException No encryption key was found.
EncryptionKeyUnavailableException The encryption key is not available.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.UpdateRepositoryDescriptionInput{ RepositoryName: aws.String("RepositoryName"), // Required RepositoryDescription: aws.String("RepositoryDescription"), } resp, err := svc.UpdateRepositoryDescription(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) UpdateRepositoryDescriptionRequest ¶
func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryDescriptionInput) (req *request.Request, output *UpdateRepositoryDescriptionOutput)
UpdateRepositoryDescriptionRequest generates a "aws/request.Request" representing the client's request for the UpdateRepositoryDescription operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateRepositoryDescription for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateRepositoryDescription method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the UpdateRepositoryDescriptionRequest method. req, resp := client.UpdateRepositoryDescriptionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CodeCommit) UpdateRepositoryName ¶
func (c *CodeCommit) UpdateRepositoryName(input *UpdateRepositoryNameInput) (*UpdateRepositoryNameOutput, error)
UpdateRepositoryName API operation for AWS CodeCommit.
Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) in the AWS CodeCommit User Guide.
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 AWS CodeCommit's API operation UpdateRepositoryName for usage and error information.
Returned Error Codes:
RepositoryDoesNotExistException The specified repository does not exist.
RepositoryNameExistsException The specified repository name already exists.
RepositoryNameRequiredException A repository name is required but was not specified.
InvalidRepositoryNameException At least one specified repository name is not valid.
This exception only occurs when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/codecommit" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := codecommit.New(sess) params := &codecommit.UpdateRepositoryNameInput{ NewName: aws.String("RepositoryName"), // Required OldName: aws.String("RepositoryName"), // Required } resp, err := svc.UpdateRepositoryName(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*CodeCommit) UpdateRepositoryNameRequest ¶
func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInput) (req *request.Request, output *UpdateRepositoryNameOutput)
UpdateRepositoryNameRequest generates a "aws/request.Request" representing the client's request for the UpdateRepositoryName operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateRepositoryName for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateRepositoryName method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// Example sending a request using the UpdateRepositoryNameRequest method. req, resp := client.UpdateRepositoryNameRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
type Commit ¶ added in v1.1.16
type Commit struct { // Any additional data associated with the specified commit. AdditionalData *string `locationName:"additionalData" type:"string"` // Information about the author of the specified commit. Author *UserInfo `locationName:"author" type:"structure"` // Information about the person who committed the specified commit, also known // as the committer. For more information about the difference between an author // and a committer in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html) // in Pro Git by Scott Chacon and Ben Straub. Committer *UserInfo `locationName:"committer" type:"structure"` // The message associated with the specified commit. Message *string `locationName:"message" type:"string"` // The parent list for the specified commit. Parents []*string `locationName:"parents" type:"list"` // Tree information for the specified commit. TreeId *string `locationName:"treeId" type:"string"` // contains filtered or unexported fields }
Returns information about a specific commit.
func (*Commit) SetAdditionalData ¶ added in v1.5.1
SetAdditionalData sets the AdditionalData field's value.
func (*Commit) SetCommitter ¶ added in v1.5.1
SetCommitter sets the Committer field's value.
func (*Commit) SetMessage ¶ added in v1.5.1
SetMessage sets the Message field's value.
func (*Commit) SetParents ¶ added in v1.5.1
SetParents sets the Parents field's value.
type CreateBranchInput ¶
type CreateBranchInput struct { // The name of the new branch to create. // // BranchName is a required field BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` // The ID of the commit to point the new branch to. // // CommitId is a required field CommitId *string `locationName:"commitId" type:"string" required:"true"` // The name of the repository in which you want to create the new branch. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a create branch operation.
func (CreateBranchInput) GoString ¶
func (s CreateBranchInput) GoString() string
GoString returns the string representation
func (*CreateBranchInput) SetBranchName ¶ added in v1.5.1
func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput
SetBranchName sets the BranchName field's value.
func (*CreateBranchInput) SetCommitId ¶ added in v1.5.1
func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput
SetCommitId sets the CommitId field's value.
func (*CreateBranchInput) SetRepositoryName ¶ added in v1.5.1
func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput
SetRepositoryName sets the RepositoryName field's value.
func (CreateBranchInput) String ¶
func (s CreateBranchInput) String() string
String returns the string representation
func (*CreateBranchInput) Validate ¶ added in v1.1.24
func (s *CreateBranchInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateBranchOutput ¶
type CreateBranchOutput struct {
// contains filtered or unexported fields
}
func (CreateBranchOutput) GoString ¶
func (s CreateBranchOutput) GoString() string
GoString returns the string representation
func (CreateBranchOutput) String ¶
func (s CreateBranchOutput) String() string
String returns the string representation
type CreateRepositoryInput ¶
type CreateRepositoryInput struct { // A comment or description about the new repository. // // The description field for a repository accepts all HTML characters and all // valid Unicode characters. Applications that do not HTML-encode the description // and display it in a web page could expose users to potentially malicious // code. Make sure that you HTML-encode the description field in any application // that uses this API to display the repository description on a web page. RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` // The name of the new repository to be created. // // The repository name must be unique across the calling AWS account. In addition, // repository names are limited to 100 alphanumeric, dash, and underscore characters, // and cannot include certain characters. For a full description of the limits // on repository names, see Limits (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) // in the AWS CodeCommit User Guide. The suffix ".git" is prohibited. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a create repository operation.
func (CreateRepositoryInput) GoString ¶
func (s CreateRepositoryInput) GoString() string
GoString returns the string representation
func (*CreateRepositoryInput) SetRepositoryDescription ¶ added in v1.5.1
func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput
SetRepositoryDescription sets the RepositoryDescription field's value.
func (*CreateRepositoryInput) SetRepositoryName ¶ added in v1.5.1
func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput
SetRepositoryName sets the RepositoryName field's value.
func (CreateRepositoryInput) String ¶
func (s CreateRepositoryInput) String() string
String returns the string representation
func (*CreateRepositoryInput) Validate ¶ added in v1.1.24
func (s *CreateRepositoryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateRepositoryOutput ¶
type CreateRepositoryOutput struct { // Information about the newly created repository. RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"` // contains filtered or unexported fields }
Represents the output of a create repository operation.
func (CreateRepositoryOutput) GoString ¶
func (s CreateRepositoryOutput) GoString() string
GoString returns the string representation
func (*CreateRepositoryOutput) SetRepositoryMetadata ¶ added in v1.5.1
func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *CreateRepositoryOutput
SetRepositoryMetadata sets the RepositoryMetadata field's value.
func (CreateRepositoryOutput) String ¶
func (s CreateRepositoryOutput) String() string
String returns the string representation
type DeleteRepositoryInput ¶
type DeleteRepositoryInput struct { // The name of the repository to delete. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a delete repository operation.
func (DeleteRepositoryInput) GoString ¶
func (s DeleteRepositoryInput) GoString() string
GoString returns the string representation
func (*DeleteRepositoryInput) SetRepositoryName ¶ added in v1.5.1
func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput
SetRepositoryName sets the RepositoryName field's value.
func (DeleteRepositoryInput) String ¶
func (s DeleteRepositoryInput) String() string
String returns the string representation
func (*DeleteRepositoryInput) Validate ¶ added in v1.1.24
func (s *DeleteRepositoryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteRepositoryOutput ¶
type DeleteRepositoryOutput struct { // The ID of the repository that was deleted. RepositoryId *string `locationName:"repositoryId" type:"string"` // contains filtered or unexported fields }
Represents the output of a delete repository operation.
func (DeleteRepositoryOutput) GoString ¶
func (s DeleteRepositoryOutput) GoString() string
GoString returns the string representation
func (*DeleteRepositoryOutput) SetRepositoryId ¶ added in v1.5.1
func (s *DeleteRepositoryOutput) SetRepositoryId(v string) *DeleteRepositoryOutput
SetRepositoryId sets the RepositoryId field's value.
func (DeleteRepositoryOutput) String ¶
func (s DeleteRepositoryOutput) String() string
String returns the string representation
type GetBranchInput ¶
type GetBranchInput struct { // The name of the branch for which you want to retrieve information. BranchName *string `locationName:"branchName" min:"1" type:"string"` // The name of the repository that contains the branch for which you want to // retrieve information. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` // contains filtered or unexported fields }
Represents the input of a get branch operation.
func (GetBranchInput) GoString ¶
func (s GetBranchInput) GoString() string
GoString returns the string representation
func (*GetBranchInput) SetBranchName ¶ added in v1.5.1
func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput
SetBranchName sets the BranchName field's value.
func (*GetBranchInput) SetRepositoryName ¶ added in v1.5.1
func (s *GetBranchInput) SetRepositoryName(v string) *GetBranchInput
SetRepositoryName sets the RepositoryName field's value.
func (GetBranchInput) String ¶
func (s GetBranchInput) String() string
String returns the string representation
func (*GetBranchInput) Validate ¶ added in v1.1.24
func (s *GetBranchInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBranchOutput ¶
type GetBranchOutput struct { // The name of the branch. Branch *BranchInfo `locationName:"branch" type:"structure"` // contains filtered or unexported fields }
Represents the output of a get branch operation.
func (GetBranchOutput) GoString ¶
func (s GetBranchOutput) GoString() string
GoString returns the string representation
func (*GetBranchOutput) SetBranch ¶ added in v1.5.1
func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput
SetBranch sets the Branch field's value.
func (GetBranchOutput) String ¶
func (s GetBranchOutput) String() string
String returns the string representation
type GetCommitInput ¶ added in v1.1.16
type GetCommitInput struct { // The commit ID. // // CommitId is a required field CommitId *string `locationName:"commitId" type:"string" required:"true"` // The name of the repository to which the commit was made. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a get commit operation.
func (GetCommitInput) GoString ¶ added in v1.1.16
func (s GetCommitInput) GoString() string
GoString returns the string representation
func (*GetCommitInput) SetCommitId ¶ added in v1.5.1
func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput
SetCommitId sets the CommitId field's value.
func (*GetCommitInput) SetRepositoryName ¶ added in v1.5.1
func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput
SetRepositoryName sets the RepositoryName field's value.
func (GetCommitInput) String ¶ added in v1.1.16
func (s GetCommitInput) String() string
String returns the string representation
func (*GetCommitInput) Validate ¶ added in v1.1.24
func (s *GetCommitInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetCommitOutput ¶ added in v1.1.16
type GetCommitOutput struct { // Information about the specified commit. // // Commit is a required field Commit *Commit `locationName:"commit" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a get commit operation.
func (GetCommitOutput) GoString ¶ added in v1.1.16
func (s GetCommitOutput) GoString() string
GoString returns the string representation
func (*GetCommitOutput) SetCommit ¶ added in v1.5.1
func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput
SetCommit sets the Commit field's value.
func (GetCommitOutput) String ¶ added in v1.1.16
func (s GetCommitOutput) String() string
String returns the string representation
type GetRepositoryInput ¶
type GetRepositoryInput struct { // The name of the repository to get information about. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a get repository operation.
func (GetRepositoryInput) GoString ¶
func (s GetRepositoryInput) GoString() string
GoString returns the string representation
func (*GetRepositoryInput) SetRepositoryName ¶ added in v1.5.1
func (s *GetRepositoryInput) SetRepositoryName(v string) *GetRepositoryInput
SetRepositoryName sets the RepositoryName field's value.
func (GetRepositoryInput) String ¶
func (s GetRepositoryInput) String() string
String returns the string representation
func (*GetRepositoryInput) Validate ¶ added in v1.1.24
func (s *GetRepositoryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetRepositoryOutput ¶
type GetRepositoryOutput struct { // Information about the repository. RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"` // contains filtered or unexported fields }
Represents the output of a get repository operation.
func (GetRepositoryOutput) GoString ¶
func (s GetRepositoryOutput) GoString() string
GoString returns the string representation
func (*GetRepositoryOutput) SetRepositoryMetadata ¶ added in v1.5.1
func (s *GetRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *GetRepositoryOutput
SetRepositoryMetadata sets the RepositoryMetadata field's value.
func (GetRepositoryOutput) String ¶
func (s GetRepositoryOutput) String() string
String returns the string representation
type GetRepositoryTriggersInput ¶ added in v1.1.16
type GetRepositoryTriggersInput struct { // The name of the repository for which the trigger is configured. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` // contains filtered or unexported fields }
Represents the input of a get repository triggers operation.
func (GetRepositoryTriggersInput) GoString ¶ added in v1.1.16
func (s GetRepositoryTriggersInput) GoString() string
GoString returns the string representation
func (*GetRepositoryTriggersInput) SetRepositoryName ¶ added in v1.5.1
func (s *GetRepositoryTriggersInput) SetRepositoryName(v string) *GetRepositoryTriggersInput
SetRepositoryName sets the RepositoryName field's value.
func (GetRepositoryTriggersInput) String ¶ added in v1.1.16
func (s GetRepositoryTriggersInput) String() string
String returns the string representation
func (*GetRepositoryTriggersInput) Validate ¶ added in v1.1.24
func (s *GetRepositoryTriggersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetRepositoryTriggersOutput ¶ added in v1.1.16
type GetRepositoryTriggersOutput struct { // The system-generated unique ID for the trigger. ConfigurationId *string `locationName:"configurationId" type:"string"` // The JSON block of configuration information for each trigger. Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` // contains filtered or unexported fields }
Represents the output of a get repository triggers operation.
func (GetRepositoryTriggersOutput) GoString ¶ added in v1.1.16
func (s GetRepositoryTriggersOutput) GoString() string
GoString returns the string representation
func (*GetRepositoryTriggersOutput) SetConfigurationId ¶ added in v1.5.1
func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput
SetConfigurationId sets the ConfigurationId field's value.
func (*GetRepositoryTriggersOutput) SetTriggers ¶ added in v1.5.1
func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput
SetTriggers sets the Triggers field's value.
func (GetRepositoryTriggersOutput) String ¶ added in v1.1.16
func (s GetRepositoryTriggersOutput) String() string
String returns the string representation
type ListBranchesInput ¶
type ListBranchesInput struct { // An enumeration token that allows the operation to batch the results. NextToken *string `locationName:"nextToken" type:"string"` // The name of the repository that contains the branches. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a list branches operation.
func (ListBranchesInput) GoString ¶
func (s ListBranchesInput) GoString() string
GoString returns the string representation
func (*ListBranchesInput) SetNextToken ¶ added in v1.5.1
func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput
SetNextToken sets the NextToken field's value.
func (*ListBranchesInput) SetRepositoryName ¶ added in v1.5.1
func (s *ListBranchesInput) SetRepositoryName(v string) *ListBranchesInput
SetRepositoryName sets the RepositoryName field's value.
func (ListBranchesInput) String ¶
func (s ListBranchesInput) String() string
String returns the string representation
func (*ListBranchesInput) Validate ¶ added in v1.1.24
func (s *ListBranchesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBranchesOutput ¶
type ListBranchesOutput struct { // The list of branch names. Branches []*string `locationName:"branches" type:"list"` // An enumeration token that returns the batch of the results. NextToken *string `locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
Represents the output of a list branches operation.
func (ListBranchesOutput) GoString ¶
func (s ListBranchesOutput) GoString() string
GoString returns the string representation
func (*ListBranchesOutput) SetBranches ¶ added in v1.5.1
func (s *ListBranchesOutput) SetBranches(v []*string) *ListBranchesOutput
SetBranches sets the Branches field's value.
func (*ListBranchesOutput) SetNextToken ¶ added in v1.5.1
func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput
SetNextToken sets the NextToken field's value.
func (ListBranchesOutput) String ¶
func (s ListBranchesOutput) String() string
String returns the string representation
type ListRepositoriesInput ¶
type ListRepositoriesInput struct { // An enumeration token that allows the operation to batch the results of the // operation. Batch sizes are 1,000 for list repository operations. When the // client sends the token back to AWS CodeCommit, another page of 1,000 records // is retrieved. NextToken *string `locationName:"nextToken" type:"string"` // The order in which to sort the results of a list repositories operation. Order *string `locationName:"order" type:"string" enum:"OrderEnum"` // The criteria used to sort the results of a list repositories operation. SortBy *string `locationName:"sortBy" type:"string" enum:"SortByEnum"` // contains filtered or unexported fields }
Represents the input of a list repositories operation.
func (ListRepositoriesInput) GoString ¶
func (s ListRepositoriesInput) GoString() string
GoString returns the string representation
func (*ListRepositoriesInput) SetNextToken ¶ added in v1.5.1
func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput
SetNextToken sets the NextToken field's value.
func (*ListRepositoriesInput) SetOrder ¶ added in v1.5.1
func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput
SetOrder sets the Order field's value.
func (*ListRepositoriesInput) SetSortBy ¶ added in v1.5.1
func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput
SetSortBy sets the SortBy field's value.
func (ListRepositoriesInput) String ¶
func (s ListRepositoriesInput) String() string
String returns the string representation
type ListRepositoriesOutput ¶
type ListRepositoriesOutput struct { // An enumeration token that allows the operation to batch the results of the // operation. Batch sizes are 1,000 for list repository operations. When the // client sends the token back to AWS CodeCommit, another page of 1,000 records // is retrieved. NextToken *string `locationName:"nextToken" type:"string"` // Lists the repositories called by the list repositories operation. Repositories []*RepositoryNameIdPair `locationName:"repositories" type:"list"` // contains filtered or unexported fields }
Represents the output of a list repositories operation.
func (ListRepositoriesOutput) GoString ¶
func (s ListRepositoriesOutput) GoString() string
GoString returns the string representation
func (*ListRepositoriesOutput) SetNextToken ¶ added in v1.5.1
func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput
SetNextToken sets the NextToken field's value.
func (*ListRepositoriesOutput) SetRepositories ¶ added in v1.5.1
func (s *ListRepositoriesOutput) SetRepositories(v []*RepositoryNameIdPair) *ListRepositoriesOutput
SetRepositories sets the Repositories field's value.
func (ListRepositoriesOutput) String ¶
func (s ListRepositoriesOutput) String() string
String returns the string representation
type PutRepositoryTriggersInput ¶ added in v1.1.16
type PutRepositoryTriggersInput struct { // The name of the repository where you want to create or update the trigger. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` // The JSON block of configuration information for each trigger. Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` // contains filtered or unexported fields }
Represents the input ofa put repository triggers operation.
func (PutRepositoryTriggersInput) GoString ¶ added in v1.1.16
func (s PutRepositoryTriggersInput) GoString() string
GoString returns the string representation
func (*PutRepositoryTriggersInput) SetRepositoryName ¶ added in v1.5.1
func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput
SetRepositoryName sets the RepositoryName field's value.
func (*PutRepositoryTriggersInput) SetTriggers ¶ added in v1.5.1
func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput
SetTriggers sets the Triggers field's value.
func (PutRepositoryTriggersInput) String ¶ added in v1.1.16
func (s PutRepositoryTriggersInput) String() string
String returns the string representation
func (*PutRepositoryTriggersInput) Validate ¶ added in v1.1.24
func (s *PutRepositoryTriggersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutRepositoryTriggersOutput ¶ added in v1.1.16
type PutRepositoryTriggersOutput struct { // The system-generated unique ID for the create or update operation. ConfigurationId *string `locationName:"configurationId" type:"string"` // contains filtered or unexported fields }
Represents the output of a put repository triggers operation.
func (PutRepositoryTriggersOutput) GoString ¶ added in v1.1.16
func (s PutRepositoryTriggersOutput) GoString() string
GoString returns the string representation
func (*PutRepositoryTriggersOutput) SetConfigurationId ¶ added in v1.5.1
func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositoryTriggersOutput
SetConfigurationId sets the ConfigurationId field's value.
func (PutRepositoryTriggersOutput) String ¶ added in v1.1.16
func (s PutRepositoryTriggersOutput) String() string
String returns the string representation
type RepositoryMetadata ¶
type RepositoryMetadata struct { // The ID of the AWS account associated with the repository. AccountId *string `locationName:"accountId" type:"string"` // The Amazon Resource Name (ARN) of the repository. Arn *string `type:"string"` // The URL to use for cloning the repository over HTTPS. CloneUrlHttp *string `locationName:"cloneUrlHttp" type:"string"` // The URL to use for cloning the repository over SSH. CloneUrlSsh *string `locationName:"cloneUrlSsh" type:"string"` // The date and time the repository was created, in timestamp format. CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix"` // The repository's default branch name. DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"` // The date and time the repository was last modified, in timestamp format. LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp" timestampFormat:"unix"` // A comment or description about the repository. RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` // The ID of the repository. RepositoryId *string `locationName:"repositoryId" type:"string"` // The repository's name. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` // contains filtered or unexported fields }
Information about a repository.
func (RepositoryMetadata) GoString ¶
func (s RepositoryMetadata) GoString() string
GoString returns the string representation
func (*RepositoryMetadata) SetAccountId ¶ added in v1.5.1
func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata
SetAccountId sets the AccountId field's value.
func (*RepositoryMetadata) SetArn ¶ added in v1.5.1
func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata
SetArn sets the Arn field's value.
func (*RepositoryMetadata) SetCloneUrlHttp ¶ added in v1.5.1
func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata
SetCloneUrlHttp sets the CloneUrlHttp field's value.
func (*RepositoryMetadata) SetCloneUrlSsh ¶ added in v1.5.1
func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata
SetCloneUrlSsh sets the CloneUrlSsh field's value.
func (*RepositoryMetadata) SetCreationDate ¶ added in v1.5.1
func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata
SetCreationDate sets the CreationDate field's value.
func (*RepositoryMetadata) SetDefaultBranch ¶ added in v1.5.1
func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata
SetDefaultBranch sets the DefaultBranch field's value.
func (*RepositoryMetadata) SetLastModifiedDate ¶ added in v1.5.1
func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata
SetLastModifiedDate sets the LastModifiedDate field's value.
func (*RepositoryMetadata) SetRepositoryDescription ¶ added in v1.5.1
func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata
SetRepositoryDescription sets the RepositoryDescription field's value.
func (*RepositoryMetadata) SetRepositoryId ¶ added in v1.5.1
func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata
SetRepositoryId sets the RepositoryId field's value.
func (*RepositoryMetadata) SetRepositoryName ¶ added in v1.5.1
func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata
SetRepositoryName sets the RepositoryName field's value.
func (RepositoryMetadata) String ¶
func (s RepositoryMetadata) String() string
String returns the string representation
type RepositoryNameIdPair ¶ added in v0.9.9
type RepositoryNameIdPair struct { // The ID associated with the repository. RepositoryId *string `locationName:"repositoryId" type:"string"` // The name associated with the repository. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` // contains filtered or unexported fields }
Information about a repository name and ID.
func (RepositoryNameIdPair) GoString ¶ added in v0.9.9
func (s RepositoryNameIdPair) GoString() string
GoString returns the string representation
func (*RepositoryNameIdPair) SetRepositoryId ¶ added in v1.5.1
func (s *RepositoryNameIdPair) SetRepositoryId(v string) *RepositoryNameIdPair
SetRepositoryId sets the RepositoryId field's value.
func (*RepositoryNameIdPair) SetRepositoryName ¶ added in v1.5.1
func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair
SetRepositoryName sets the RepositoryName field's value.
func (RepositoryNameIdPair) String ¶ added in v0.9.9
func (s RepositoryNameIdPair) String() string
String returns the string representation
type RepositoryTrigger ¶ added in v1.1.16
type RepositoryTrigger struct { // The branches that will be included in the trigger configuration. If no branches // are specified, the trigger will apply to all branches. Branches []*string `locationName:"branches" type:"list"` // Any custom data associated with the trigger that will be included in the // information sent to the target of the trigger. CustomData *string `locationName:"customData" type:"string"` // The ARN of the resource that is the target for a trigger. For example, the // ARN of a topic in Amazon Simple Notification Service (SNS). DestinationArn *string `locationName:"destinationArn" type:"string"` // The repository events that will cause the trigger to run actions in another // service, such as sending a notification through Amazon Simple Notification // Service (SNS). If no events are specified, the trigger will run for all repository // events. Events []*string `locationName:"events" type:"list"` // The name of the trigger. Name *string `locationName:"name" type:"string"` // contains filtered or unexported fields }
Information about a trigger for a repository.
func (RepositoryTrigger) GoString ¶ added in v1.1.16
func (s RepositoryTrigger) GoString() string
GoString returns the string representation
func (*RepositoryTrigger) SetBranches ¶ added in v1.5.1
func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger
SetBranches sets the Branches field's value.
func (*RepositoryTrigger) SetCustomData ¶ added in v1.5.1
func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger
SetCustomData sets the CustomData field's value.
func (*RepositoryTrigger) SetDestinationArn ¶ added in v1.5.1
func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger
SetDestinationArn sets the DestinationArn field's value.
func (*RepositoryTrigger) SetEvents ¶ added in v1.5.1
func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger
SetEvents sets the Events field's value.
func (*RepositoryTrigger) SetName ¶ added in v1.5.1
func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger
SetName sets the Name field's value.
func (RepositoryTrigger) String ¶ added in v1.1.16
func (s RepositoryTrigger) String() string
String returns the string representation
type RepositoryTriggerExecutionFailure ¶ added in v1.1.16
type RepositoryTriggerExecutionFailure struct { // Additional message information about the trigger that did not run. FailureMessage *string `locationName:"failureMessage" type:"string"` // The name of the trigger that did not run. Trigger *string `locationName:"trigger" type:"string"` // contains filtered or unexported fields }
A trigger failed to run.
func (RepositoryTriggerExecutionFailure) GoString ¶ added in v1.1.16
func (s RepositoryTriggerExecutionFailure) GoString() string
GoString returns the string representation
func (*RepositoryTriggerExecutionFailure) SetFailureMessage ¶ added in v1.5.1
func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure
SetFailureMessage sets the FailureMessage field's value.
func (*RepositoryTriggerExecutionFailure) SetTrigger ¶ added in v1.5.1
func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure
SetTrigger sets the Trigger field's value.
func (RepositoryTriggerExecutionFailure) String ¶ added in v1.1.16
func (s RepositoryTriggerExecutionFailure) String() string
String returns the string representation
type TestRepositoryTriggersInput ¶ added in v1.1.16
type TestRepositoryTriggersInput struct { // The name of the repository in which to test the triggers. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` // The list of triggers to test. Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` // contains filtered or unexported fields }
Represents the input of a test repository triggers operation.
func (TestRepositoryTriggersInput) GoString ¶ added in v1.1.16
func (s TestRepositoryTriggersInput) GoString() string
GoString returns the string representation
func (*TestRepositoryTriggersInput) SetRepositoryName ¶ added in v1.5.1
func (s *TestRepositoryTriggersInput) SetRepositoryName(v string) *TestRepositoryTriggersInput
SetRepositoryName sets the RepositoryName field's value.
func (*TestRepositoryTriggersInput) SetTriggers ¶ added in v1.5.1
func (s *TestRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *TestRepositoryTriggersInput
SetTriggers sets the Triggers field's value.
func (TestRepositoryTriggersInput) String ¶ added in v1.1.16
func (s TestRepositoryTriggersInput) String() string
String returns the string representation
func (*TestRepositoryTriggersInput) Validate ¶ added in v1.1.24
func (s *TestRepositoryTriggersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TestRepositoryTriggersOutput ¶ added in v1.1.16
type TestRepositoryTriggersOutput struct { // The list of triggers that were not able to be tested. This list provides // the names of the triggers that could not be tested, separated by commas. FailedExecutions []*RepositoryTriggerExecutionFailure `locationName:"failedExecutions" type:"list"` // The list of triggers that were successfully tested. This list provides the // names of the triggers that were successfully tested, separated by commas. SuccessfulExecutions []*string `locationName:"successfulExecutions" type:"list"` // contains filtered or unexported fields }
Represents the output of a test repository triggers operation.
func (TestRepositoryTriggersOutput) GoString ¶ added in v1.1.16
func (s TestRepositoryTriggersOutput) GoString() string
GoString returns the string representation
func (*TestRepositoryTriggersOutput) SetFailedExecutions ¶ added in v1.5.1
func (s *TestRepositoryTriggersOutput) SetFailedExecutions(v []*RepositoryTriggerExecutionFailure) *TestRepositoryTriggersOutput
SetFailedExecutions sets the FailedExecutions field's value.
func (*TestRepositoryTriggersOutput) SetSuccessfulExecutions ¶ added in v1.5.1
func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *TestRepositoryTriggersOutput
SetSuccessfulExecutions sets the SuccessfulExecutions field's value.
func (TestRepositoryTriggersOutput) String ¶ added in v1.1.16
func (s TestRepositoryTriggersOutput) String() string
String returns the string representation
type UpdateDefaultBranchInput ¶
type UpdateDefaultBranchInput struct { // The name of the branch to set as the default. // // DefaultBranchName is a required field DefaultBranchName *string `locationName:"defaultBranchName" min:"1" type:"string" required:"true"` // The name of the repository to set or change the default branch for. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of an update default branch operation.
func (UpdateDefaultBranchInput) GoString ¶
func (s UpdateDefaultBranchInput) GoString() string
GoString returns the string representation
func (*UpdateDefaultBranchInput) SetDefaultBranchName ¶ added in v1.5.1
func (s *UpdateDefaultBranchInput) SetDefaultBranchName(v string) *UpdateDefaultBranchInput
SetDefaultBranchName sets the DefaultBranchName field's value.
func (*UpdateDefaultBranchInput) SetRepositoryName ¶ added in v1.5.1
func (s *UpdateDefaultBranchInput) SetRepositoryName(v string) *UpdateDefaultBranchInput
SetRepositoryName sets the RepositoryName field's value.
func (UpdateDefaultBranchInput) String ¶
func (s UpdateDefaultBranchInput) String() string
String returns the string representation
func (*UpdateDefaultBranchInput) Validate ¶ added in v1.1.24
func (s *UpdateDefaultBranchInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateDefaultBranchOutput ¶
type UpdateDefaultBranchOutput struct {
// contains filtered or unexported fields
}
func (UpdateDefaultBranchOutput) GoString ¶
func (s UpdateDefaultBranchOutput) GoString() string
GoString returns the string representation
func (UpdateDefaultBranchOutput) String ¶
func (s UpdateDefaultBranchOutput) String() string
String returns the string representation
type UpdateRepositoryDescriptionInput ¶
type UpdateRepositoryDescriptionInput struct { // The new comment or description for the specified repository. Repository descriptions // are limited to 1,000 characters. RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` // The name of the repository to set or change the comment or description for. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of an update repository description operation.
func (UpdateRepositoryDescriptionInput) GoString ¶
func (s UpdateRepositoryDescriptionInput) GoString() string
GoString returns the string representation
func (*UpdateRepositoryDescriptionInput) SetRepositoryDescription ¶ added in v1.5.1
func (s *UpdateRepositoryDescriptionInput) SetRepositoryDescription(v string) *UpdateRepositoryDescriptionInput
SetRepositoryDescription sets the RepositoryDescription field's value.
func (*UpdateRepositoryDescriptionInput) SetRepositoryName ¶ added in v1.5.1
func (s *UpdateRepositoryDescriptionInput) SetRepositoryName(v string) *UpdateRepositoryDescriptionInput
SetRepositoryName sets the RepositoryName field's value.
func (UpdateRepositoryDescriptionInput) String ¶
func (s UpdateRepositoryDescriptionInput) String() string
String returns the string representation
func (*UpdateRepositoryDescriptionInput) Validate ¶ added in v1.1.24
func (s *UpdateRepositoryDescriptionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateRepositoryDescriptionOutput ¶
type UpdateRepositoryDescriptionOutput struct {
// contains filtered or unexported fields
}
func (UpdateRepositoryDescriptionOutput) GoString ¶
func (s UpdateRepositoryDescriptionOutput) GoString() string
GoString returns the string representation
func (UpdateRepositoryDescriptionOutput) String ¶
func (s UpdateRepositoryDescriptionOutput) String() string
String returns the string representation
type UpdateRepositoryNameInput ¶
type UpdateRepositoryNameInput struct { // The new name for the repository. // // NewName is a required field NewName *string `locationName:"newName" min:"1" type:"string" required:"true"` // The existing name of the repository. // // OldName is a required field OldName *string `locationName:"oldName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of an update repository description operation.
func (UpdateRepositoryNameInput) GoString ¶
func (s UpdateRepositoryNameInput) GoString() string
GoString returns the string representation
func (*UpdateRepositoryNameInput) SetNewName ¶ added in v1.5.1
func (s *UpdateRepositoryNameInput) SetNewName(v string) *UpdateRepositoryNameInput
SetNewName sets the NewName field's value.
func (*UpdateRepositoryNameInput) SetOldName ¶ added in v1.5.1
func (s *UpdateRepositoryNameInput) SetOldName(v string) *UpdateRepositoryNameInput
SetOldName sets the OldName field's value.
func (UpdateRepositoryNameInput) String ¶
func (s UpdateRepositoryNameInput) String() string
String returns the string representation
func (*UpdateRepositoryNameInput) Validate ¶ added in v1.1.24
func (s *UpdateRepositoryNameInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateRepositoryNameOutput ¶
type UpdateRepositoryNameOutput struct {
// contains filtered or unexported fields
}
func (UpdateRepositoryNameOutput) GoString ¶
func (s UpdateRepositoryNameOutput) GoString() string
GoString returns the string representation
func (UpdateRepositoryNameOutput) String ¶
func (s UpdateRepositoryNameOutput) String() string
String returns the string representation
type UserInfo ¶ added in v1.1.16
type UserInfo struct { // The date when the specified commit was pushed to the repository. Date *string `locationName:"date" type:"string"` // The email address associated with the user who made the commit, if any. Email *string `locationName:"email" type:"string"` // The name of the user who made the specified commit. Name *string `locationName:"name" type:"string"` // contains filtered or unexported fields }
Information about the user who made a specified commit.
Directories ¶
Path | Synopsis |
---|---|
Package codecommitiface provides an interface to enable mocking the AWS CodeCommit service client for testing your code.
|
Package codecommitiface provides an interface to enable mocking the AWS CodeCommit service client for testing your code. |