AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Commit

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

type Commit struct { AdditionalData *string `locationName:"additionalData" type:"string"` Author *UserInfo `locationName:"author" type:"structure"` CommitId *string `locationName:"commitId" type:"string"` Committer *UserInfo `locationName:"committer" type:"structure"` Message *string `locationName:"message" type:"string"` Parents []*string `locationName:"parents" type:"list"` TreeId *string `locationName:"treeId" type:"string"` }

Returns information about a specific commit.

AdditionalData

Type: *string

Any additional data associated with the specified commit.

Author

Information about the user who made a specified commit.

CommitId

Type: *string

The full SHA of the specified commit.

Committer

Information about the user who made a specified commit.

Message

Type: *string

The commit message associated with the specified commit.

Parents

Type: []*string

A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.

TreeId

Type: *string

Tree information for the specified commit.

Method

GoString

func (s Commit) GoString() string

GoString returns the string representation

SetAdditionalData

func (s *Commit) SetAdditionalData(v string) *Commit

SetAdditionalData sets the AdditionalData field's value.

SetAuthor

func (s *Commit) SetAuthor(v *UserInfo) *Commit

SetAuthor sets the Author field's value.

SetCommitId

func (s *Commit) SetCommitId(v string) *Commit

SetCommitId sets the CommitId field's value.

SetCommitter

func (s *Commit) SetCommitter(v *UserInfo) *Commit

SetCommitter sets the Committer field's value.

SetMessage

func (s *Commit) SetMessage(v string) *Commit

SetMessage sets the Message field's value.

SetParents

func (s *Commit) SetParents(v []*string) *Commit

SetParents sets the Parents field's value.

SetTreeId

func (s *Commit) SetTreeId(v string) *Commit

SetTreeId sets the TreeId field's value.

String

func (s Commit) String() string

String returns the string representation

On this page: