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.

GetFileOutput

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

type GetFileOutput struct { BlobId *string `locationName:"blobId" type:"string" required:"true"` CommitId *string `locationName:"commitId" type:"string" required:"true"` FileContent []byte `locationName:"fileContent" type:"blob" required:"true"` FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"` FilePath *string `locationName:"filePath" type:"string" required:"true"` FileSize *int64 `locationName:"fileSize" type:"long" required:"true"` }

BlobId

Type: *string

The blob ID of the object that represents the file content.

BlobId is a required field

CommitId

Type: *string

The full commit ID of the commit that contains the content returned by GetFile.

CommitId is a required field

FileContent

Type: []byte

The base-64 encoded binary data object that represents the content of the file.

FileContent is automatically base64 encoded/decoded by the SDK.

FileContent is a required field

FileMode

Type: *string

The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.

The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See below for a full list of supported return values.

FileMode is a required field

FilePath

Type: *string

The fully qualified path to the specified file. This returns the name and extension of the file.

FilePath is a required field

FileSize

Type: *int64

The size of the contents of the file, in bytes.

FileSize is a required field

Method

GoString

func (s GetFileOutput) GoString() string

GoString returns the string representation

SetBlobId

func (s *GetFileOutput) SetBlobId(v string) *GetFileOutput

SetBlobId sets the BlobId field's value.

SetCommitId

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

SetCommitId sets the CommitId field's value.

SetFileContent

func (s *GetFileOutput) SetFileContent(v []byte) *GetFileOutput

SetFileContent sets the FileContent field's value.

SetFileMode

func (s *GetFileOutput) SetFileMode(v string) *GetFileOutput

SetFileMode sets the FileMode field's value.

SetFilePath

func (s *GetFileOutput) SetFilePath(v string) *GetFileOutput

SetFilePath sets the FilePath field's value.

SetFileSize

func (s *GetFileOutput) SetFileSize(v int64) *GetFileOutput

SetFileSize sets the FileSize field's value.

String

func (s GetFileOutput) String() string

String returns the string representation

On this page: