Documentation ¶
Index ¶
- Variables
- type Attachment
- type Client
- type ClientImpl
- func (client *ClientImpl) CreateBuildAttachmentInLogStore(ctx context.Context, args CreateBuildAttachmentInLogStoreArgs) error
- func (client *ClientImpl) CreateFailureType(ctx context.Context, args CreateFailureTypeArgs) (*test.TestFailureType, error)
- func (client *ClientImpl) CreateTestRunLogStoreAttachment(ctx context.Context, args CreateTestRunLogStoreAttachmentArgs) (*test.TestLogStoreAttachmentReference, error)
- func (client *ClientImpl) DeleteFailureType(ctx context.Context, args DeleteFailureTypeArgs) error
- func (client *ClientImpl) DeleteTestRunLogStoreAttachment(ctx context.Context, args DeleteTestRunLogStoreAttachmentArgs) error
- func (client *ClientImpl) GetFailureTypes(ctx context.Context, args GetFailureTypesArgs) (*[]test.TestFailureType, error)
- func (client *ClientImpl) GetTestLogStoreEndpointDetailsForResultLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForResultLogArgs) (*test.TestLogStoreEndpointDetails, error)
- func (client *ClientImpl) GetTestLogStoreEndpointDetailsForRunLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForRunLogArgs) (*test.TestLogStoreEndpointDetails, error)
- func (client *ClientImpl) GetTestLogStoreEndpointDetailsForSubResultLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForSubResultLogArgs) (*test.TestLogStoreEndpointDetails, error)
- func (client *ClientImpl) GetTestResultLogs(ctx context.Context, args GetTestResultLogsArgs) (*GetTestResultLogsResponseValue, error)
- func (client *ClientImpl) GetTestRunLogStoreAttachmentContent(ctx context.Context, args GetTestRunLogStoreAttachmentContentArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetTestRunLogStoreAttachmentZip(ctx context.Context, args GetTestRunLogStoreAttachmentZipArgs) (io.ReadCloser, error)
- func (client *ClientImpl) GetTestRunLogStoreAttachments(ctx context.Context, args GetTestRunLogStoreAttachmentsArgs) (*[]test.TestLogStoreAttachment, error)
- func (client *ClientImpl) GetTestRunLogs(ctx context.Context, args GetTestRunLogsArgs) (*GetTestRunLogsResponseValue, error)
- func (client *ClientImpl) GetTestSubResultLogs(ctx context.Context, args GetTestSubResultLogsArgs) (*GetTestSubResultLogsResponseValue, error)
- func (client *ClientImpl) QueryTestResultsMetaData(ctx context.Context, args QueryTestResultsMetaDataArgs) (*[]test.TestResultMetaData, error)
- func (client *ClientImpl) TestLogStoreEndpointDetailsForResult(ctx context.Context, args TestLogStoreEndpointDetailsForResultArgs) (*test.TestLogStoreEndpointDetails, error)
- func (client *ClientImpl) TestLogStoreEndpointDetailsForRun(ctx context.Context, args TestLogStoreEndpointDetailsForRunArgs) (*test.TestLogStoreEndpointDetails, error)
- func (client *ClientImpl) UpdateTestResultsMetaData(ctx context.Context, args UpdateTestResultsMetaDataArgs) (*test.TestResultMetaData, error)
- type CreateBuildAttachmentInLogStoreArgs
- type CreateFailureTypeArgs
- type CreateTestRunLogStoreAttachmentArgs
- type DeleteFailureTypeArgs
- type DeleteTestRunLogStoreAttachmentArgs
- type GetFailureTypesArgs
- type GetTestLogStoreEndpointDetailsForResultLogArgs
- type GetTestLogStoreEndpointDetailsForRunLogArgs
- type GetTestLogStoreEndpointDetailsForSubResultLogArgs
- type GetTestResultLogsArgs
- type GetTestResultLogsResponseValue
- type GetTestRunLogStoreAttachmentContentArgs
- type GetTestRunLogStoreAttachmentZipArgs
- type GetTestRunLogStoreAttachmentsArgs
- type GetTestRunLogsArgs
- type GetTestRunLogsResponseValue
- type GetTestSubResultLogsArgs
- type GetTestSubResultLogsResponseValue
- type QueryTestResultsMetaDataArgs
- type TestLogStoreEndpointDetailsForResultArgs
- type TestLogStoreEndpointDetailsForRunArgs
- type UpdateTestResultsMetaDataArgs
Constants ¶
This section is empty.
Variables ¶
var ResourceAreaId, _ = uuid.Parse("c83eaf52-edf3-4034-ae11-17d38f25404c")
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Client ¶
type Client interface { // [Preview API] Creates an attachment in the LogStore for the specified buildId. CreateBuildAttachmentInLogStore(context.Context, CreateBuildAttachmentInLogStoreArgs) error // [Preview API] Creates a new test failure type CreateFailureType(context.Context, CreateFailureTypeArgs) (*test.TestFailureType, error) // [Preview API] Creates an attachment in the LogStore for the specified runId. CreateTestRunLogStoreAttachment(context.Context, CreateTestRunLogStoreAttachmentArgs) (*test.TestLogStoreAttachmentReference, error) // [Preview API] Deletes a test failure type with specified failureTypeId DeleteFailureType(context.Context, DeleteFailureTypeArgs) error // [Preview API] Deletes the attachment with the specified filename for the specified runId from the LogStore. DeleteTestRunLogStoreAttachment(context.Context, DeleteTestRunLogStoreAttachmentArgs) error // [Preview API] Returns the list of test failure types. GetFailureTypes(context.Context, GetFailureTypesArgs) (*[]test.TestFailureType, error) // [Preview API] Get SAS Uri of a test results attachment GetTestLogStoreEndpointDetailsForResultLog(context.Context, GetTestLogStoreEndpointDetailsForResultLogArgs) (*test.TestLogStoreEndpointDetails, error) // [Preview API] Get SAS Uri of a test run attachment GetTestLogStoreEndpointDetailsForRunLog(context.Context, GetTestLogStoreEndpointDetailsForRunLogArgs) (*test.TestLogStoreEndpointDetails, error) // [Preview API] Get SAS Uri of a test subresults attachment GetTestLogStoreEndpointDetailsForSubResultLog(context.Context, GetTestLogStoreEndpointDetailsForSubResultLogArgs) (*test.TestLogStoreEndpointDetails, error) // [Preview API] Get list of test result attachments reference GetTestResultLogs(context.Context, GetTestResultLogsArgs) (*GetTestResultLogsResponseValue, error) // [Preview API] Get list of test run attachments reference GetTestRunLogs(context.Context, GetTestRunLogsArgs) (*GetTestRunLogsResponseValue, error) // [Preview API] Returns the attachment with the specified filename for the specified runId from the LogStore. GetTestRunLogStoreAttachmentContent(context.Context, GetTestRunLogStoreAttachmentContentArgs) (io.ReadCloser, error) // [Preview API] Returns a list of attachments for the specified runId from the LogStore. GetTestRunLogStoreAttachments(context.Context, GetTestRunLogStoreAttachmentsArgs) (*[]test.TestLogStoreAttachment, error) // [Preview API] Returns the attachment with the specified filename for the specified runId from the LogStore. GetTestRunLogStoreAttachmentZip(context.Context, GetTestRunLogStoreAttachmentZipArgs) (io.ReadCloser, error) // [Preview API] Get list of test subresult attachments reference GetTestSubResultLogs(context.Context, GetTestSubResultLogsArgs) (*GetTestSubResultLogsResponseValue, error) // [Preview API] Get list of test Result meta data details for corresponding testcasereferenceId QueryTestResultsMetaData(context.Context, QueryTestResultsMetaDataArgs) (*[]test.TestResultMetaData, error) // [Preview API] Create empty file for a result and Get Sas uri for the file TestLogStoreEndpointDetailsForResult(context.Context, TestLogStoreEndpointDetailsForResultArgs) (*test.TestLogStoreEndpointDetails, error) // [Preview API] Create empty file for a run and Get Sas uri for the file TestLogStoreEndpointDetailsForRun(context.Context, TestLogStoreEndpointDetailsForRunArgs) (*test.TestLogStoreEndpointDetails, error) // [Preview API] Update properties of test result meta data UpdateTestResultsMetaData(context.Context, UpdateTestResultsMetaDataArgs) (*test.TestResultMetaData, error) }
type ClientImpl ¶
type ClientImpl struct {
Client azuredevops.Client
}
func (*ClientImpl) CreateBuildAttachmentInLogStore ¶
func (client *ClientImpl) CreateBuildAttachmentInLogStore(ctx context.Context, args CreateBuildAttachmentInLogStoreArgs) error
[Preview API] Creates an attachment in the LogStore for the specified buildId.
func (*ClientImpl) CreateFailureType ¶
func (client *ClientImpl) CreateFailureType(ctx context.Context, args CreateFailureTypeArgs) (*test.TestFailureType, error)
[Preview API] Creates a new test failure type
func (*ClientImpl) CreateTestRunLogStoreAttachment ¶
func (client *ClientImpl) CreateTestRunLogStoreAttachment(ctx context.Context, args CreateTestRunLogStoreAttachmentArgs) (*test.TestLogStoreAttachmentReference, error)
[Preview API] Creates an attachment in the LogStore for the specified runId.
func (*ClientImpl) DeleteFailureType ¶
func (client *ClientImpl) DeleteFailureType(ctx context.Context, args DeleteFailureTypeArgs) error
[Preview API] Deletes a test failure type with specified failureTypeId
func (*ClientImpl) DeleteTestRunLogStoreAttachment ¶
func (client *ClientImpl) DeleteTestRunLogStoreAttachment(ctx context.Context, args DeleteTestRunLogStoreAttachmentArgs) error
[Preview API] Deletes the attachment with the specified filename for the specified runId from the LogStore.
func (*ClientImpl) GetFailureTypes ¶
func (client *ClientImpl) GetFailureTypes(ctx context.Context, args GetFailureTypesArgs) (*[]test.TestFailureType, error)
[Preview API] Returns the list of test failure types.
func (*ClientImpl) GetTestLogStoreEndpointDetailsForResultLog ¶
func (client *ClientImpl) GetTestLogStoreEndpointDetailsForResultLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForResultLogArgs) (*test.TestLogStoreEndpointDetails, error)
[Preview API] Get SAS Uri of a test results attachment
func (*ClientImpl) GetTestLogStoreEndpointDetailsForRunLog ¶
func (client *ClientImpl) GetTestLogStoreEndpointDetailsForRunLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForRunLogArgs) (*test.TestLogStoreEndpointDetails, error)
[Preview API] Get SAS Uri of a test run attachment
func (*ClientImpl) GetTestLogStoreEndpointDetailsForSubResultLog ¶
func (client *ClientImpl) GetTestLogStoreEndpointDetailsForSubResultLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForSubResultLogArgs) (*test.TestLogStoreEndpointDetails, error)
[Preview API] Get SAS Uri of a test subresults attachment
func (*ClientImpl) GetTestResultLogs ¶
func (client *ClientImpl) GetTestResultLogs(ctx context.Context, args GetTestResultLogsArgs) (*GetTestResultLogsResponseValue, error)
[Preview API] Get list of test result attachments reference
func (*ClientImpl) GetTestRunLogStoreAttachmentContent ¶
func (client *ClientImpl) GetTestRunLogStoreAttachmentContent(ctx context.Context, args GetTestRunLogStoreAttachmentContentArgs) (io.ReadCloser, error)
[Preview API] Returns the attachment with the specified filename for the specified runId from the LogStore.
func (*ClientImpl) GetTestRunLogStoreAttachmentZip ¶
func (client *ClientImpl) GetTestRunLogStoreAttachmentZip(ctx context.Context, args GetTestRunLogStoreAttachmentZipArgs) (io.ReadCloser, error)
[Preview API] Returns the attachment with the specified filename for the specified runId from the LogStore.
func (*ClientImpl) GetTestRunLogStoreAttachments ¶
func (client *ClientImpl) GetTestRunLogStoreAttachments(ctx context.Context, args GetTestRunLogStoreAttachmentsArgs) (*[]test.TestLogStoreAttachment, error)
[Preview API] Returns a list of attachments for the specified runId from the LogStore.
func (*ClientImpl) GetTestRunLogs ¶
func (client *ClientImpl) GetTestRunLogs(ctx context.Context, args GetTestRunLogsArgs) (*GetTestRunLogsResponseValue, error)
[Preview API] Get list of test run attachments reference
func (*ClientImpl) GetTestSubResultLogs ¶
func (client *ClientImpl) GetTestSubResultLogs(ctx context.Context, args GetTestSubResultLogsArgs) (*GetTestSubResultLogsResponseValue, error)
[Preview API] Get list of test subresult attachments reference
func (*ClientImpl) QueryTestResultsMetaData ¶
func (client *ClientImpl) QueryTestResultsMetaData(ctx context.Context, args QueryTestResultsMetaDataArgs) (*[]test.TestResultMetaData, error)
[Preview API] Get list of test Result meta data details for corresponding testcasereferenceId
func (*ClientImpl) TestLogStoreEndpointDetailsForResult ¶
func (client *ClientImpl) TestLogStoreEndpointDetailsForResult(ctx context.Context, args TestLogStoreEndpointDetailsForResultArgs) (*test.TestLogStoreEndpointDetails, error)
[Preview API] Create empty file for a result and Get Sas uri for the file
func (*ClientImpl) TestLogStoreEndpointDetailsForRun ¶
func (client *ClientImpl) TestLogStoreEndpointDetailsForRun(ctx context.Context, args TestLogStoreEndpointDetailsForRunArgs) (*test.TestLogStoreEndpointDetails, error)
[Preview API] Create empty file for a run and Get Sas uri for the file
func (*ClientImpl) UpdateTestResultsMetaData ¶
func (client *ClientImpl) UpdateTestResultsMetaData(ctx context.Context, args UpdateTestResultsMetaDataArgs) (*test.TestResultMetaData, error)
[Preview API] Update properties of test result meta data
type CreateBuildAttachmentInLogStoreArgs ¶
type CreateBuildAttachmentInLogStoreArgs struct { // (required) Contains attachment info like stream, filename, comment, attachmentType AttachmentRequestModel *test.TestAttachmentRequestModel // (required) Project ID or project name Project *string // (required) BuildId BuildId *int }
Arguments for the CreateBuildAttachmentInLogStore function
type CreateFailureTypeArgs ¶
type CreateFailureTypeArgs struct { // (required) TestResultFailureType *test.TestFailureType // (required) Project ID or project name Project *string }
Arguments for the CreateFailureType function
type CreateTestRunLogStoreAttachmentArgs ¶
type CreateTestRunLogStoreAttachmentArgs struct { // (required) Contains attachment info like stream, filename, comment, attachmentType AttachmentRequestModel *test.TestAttachmentRequestModel // (required) Project ID or project name Project *string // (required) Test RunId RunId *int }
Arguments for the CreateTestRunLogStoreAttachment function
type DeleteFailureTypeArgs ¶
type DeleteFailureTypeArgs struct { // (required) Project ID or project name Project *string // (required) FailureTypeId *int }
Arguments for the DeleteFailureType function
type DeleteTestRunLogStoreAttachmentArgs ¶
type DeleteTestRunLogStoreAttachmentArgs struct { // (required) Project ID or project name Project *string // (required) Test RunId RunId *int // (required) Attachment FileName Filename *string }
Arguments for the DeleteTestRunLogStoreAttachment function
type GetFailureTypesArgs ¶
type GetFailureTypesArgs struct { // (required) Project ID or project name Project *string }
Arguments for the GetFailureTypes function
type GetTestLogStoreEndpointDetailsForResultLogArgs ¶
type GetTestLogStoreEndpointDetailsForResultLogArgs struct { // (required) Project ID or project name Project *string // (required) Id of the test run that contains result RunId *int // (required) Id of the test result whose files need to be downloaded ResultId *int // (required) type of the file Type *test.TestLogType // (required) filePath for which sas uri is needed FilePath *string }
Arguments for the GetTestLogStoreEndpointDetailsForResultLog function
type GetTestLogStoreEndpointDetailsForRunLogArgs ¶
type GetTestLogStoreEndpointDetailsForRunLogArgs struct { // (required) Project ID or project name Project *string // (required) Id of the test run whose file has to be downloaded RunId *int // (required) type of the file Type *test.TestLogType // (required) filePath for which sas uri is needed FilePath *string }
Arguments for the GetTestLogStoreEndpointDetailsForRunLog function
type GetTestLogStoreEndpointDetailsForSubResultLogArgs ¶
type GetTestLogStoreEndpointDetailsForSubResultLogArgs struct { // (required) Project ID or project name Project *string // (required) Id of the test run that contains result RunId *int // (required) Id of the test result that contains subresult ResultId *int // (required) Id of the test subresult whose file sas uri is needed SubResultId *int // (required) type of the file Type *test.TestLogType // (required) filePath for which sas uri is needed FilePath *string }
Arguments for the GetTestLogStoreEndpointDetailsForSubResultLog function
type GetTestResultLogsArgs ¶
type GetTestResultLogsArgs struct { // (required) Project ID or project name Project *string // (required) Id of the test run that contains the result RunId *int // (required) Id of the test result ResultId *int // (required) type of attachments to get Type *test.TestLogType // (optional) directory path of attachments to get DirectoryPath *string // (optional) file name prefix to filter the list of attachment FileNamePrefix *string // (optional) Default is false, set if metadata is needed FetchMetaData *bool // (optional) Numbe of attachments reference to return Top *int // (optional) Header to pass the continuationToken ContinuationToken *string }
Arguments for the GetTestResultLogs function
type GetTestResultLogsResponseValue ¶
Return type for the GetTestResultLogs function
type GetTestRunLogStoreAttachmentContentArgs ¶
type GetTestRunLogStoreAttachmentContentArgs struct { // (required) Project ID or project name Project *string // (required) Test RunId RunId *int // (required) Attachment FileName Filename *string }
Arguments for the GetTestRunLogStoreAttachmentContent function
type GetTestRunLogStoreAttachmentZipArgs ¶
type GetTestRunLogStoreAttachmentZipArgs struct { // (required) Project ID or project name Project *string // (required) Test RunId RunId *int // (required) Attachment FileName Filename *string }
Arguments for the GetTestRunLogStoreAttachmentZip function
type GetTestRunLogStoreAttachmentsArgs ¶
type GetTestRunLogStoreAttachmentsArgs struct { // (required) Project ID or project name Project *string // (required) Test RunId RunId *int }
Arguments for the GetTestRunLogStoreAttachments function
type GetTestRunLogsArgs ¶
type GetTestRunLogsArgs struct { // (required) Project ID or project name Project *string // (required) Id of the test run RunId *int // (required) type of the attachments to get Type *test.TestLogType // (optional) directory path for which attachments are needed DirectoryPath *string // (optional) file name prefix to filter the list of attachment FileNamePrefix *string // (optional) Default is false, set if metadata is needed FetchMetaData *bool // (optional) Number of attachments reference to return Top *int // (optional) Header to pass the continuationToken ContinuationToken *string }
Arguments for the GetTestRunLogs function
type GetTestRunLogsResponseValue ¶
Return type for the GetTestRunLogs function
type GetTestSubResultLogsArgs ¶
type GetTestSubResultLogsArgs struct { // (required) Project ID or project name Project *string // (required) Id of the test run that contains the results RunId *int // (required) Id of the test result that contains subresult ResultId *int // (required) Id of the test subresult SubResultId *int // (required) type of the attachments to get Type *test.TestLogType // (optional) directory path of the attachment to get DirectoryPath *string // (optional) file name prefix to filter the list of attachments FileNamePrefix *string // (optional) Default is false, set if metadata is needed FetchMetaData *bool // (optional) Number of attachments reference to return Top *int // (optional) Header to pass the continuationToken ContinuationToken *string }
Arguments for the GetTestSubResultLogs function
type GetTestSubResultLogsResponseValue ¶
Return type for the GetTestSubResultLogs function
type QueryTestResultsMetaDataArgs ¶
type QueryTestResultsMetaDataArgs struct { // (required) TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200). TestCaseReferenceIds *[]string // (required) Project ID or project name Project *string // (optional) Details to include with test results metadata. Default is None. Other values are FlakyIdentifiers. DetailsToInclude *test.ResultMetaDataDetails }
Arguments for the QueryTestResultsMetaData function
type TestLogStoreEndpointDetailsForResultArgs ¶
type TestLogStoreEndpointDetailsForResultArgs struct { // (required) Project ID or project name Project *string // (required) Id of the test run that contains the result RunId *int // (required) Id of the test results that contains sub result ResultId *int // (required) Id of the test sub result whose file sas uri is needed SubResultId *int // (required) file path inside the sub result for which sas uri is needed FilePath *string // (required) Type of the file for download Type *test.TestLogType }
Arguments for the TestLogStoreEndpointDetailsForResult function
type TestLogStoreEndpointDetailsForRunArgs ¶
type TestLogStoreEndpointDetailsForRunArgs struct { // (required) Project ID or project name Project *string // (required) Id of the run to get endpoint details RunId *int // (required) Type of operation to perform using sas uri TestLogStoreOperationType *test.TestLogStoreOperationType // (optional) file path to create an empty file FilePath *string // (optional) Default is GeneralAttachment, type of empty file to be created Type *test.TestLogType }
Arguments for the TestLogStoreEndpointDetailsForRun function
type UpdateTestResultsMetaDataArgs ¶
type UpdateTestResultsMetaDataArgs struct { // (required) TestResultMetaData update input TestResultMetaDataUpdateInput TestResultMetaDataUpdateInput *test.TestResultMetaDataUpdateInput // (required) Project ID or project name Project *string // (required) TestCaseReference Id of Test Result to be updated. TestCaseReferenceId *int }
Arguments for the UpdateTestResultsMetaData function