Documentation ¶
Index ¶
- Variables
- type AddCheckConfigurationArgs
- type CheckConfiguration
- type CheckConfigurationExpandParameter
- type CheckConfigurationRef
- type CheckIssue
- type CheckIssueType
- type CheckRun
- type CheckRunResult
- type CheckRunStatus
- type CheckSuite
- type CheckSuiteExpandParameter
- type CheckSuiteRequest
- type CheckType
- type Client
- type ClientImpl
- func (client *ClientImpl) AddCheckConfiguration(ctx context.Context, args AddCheckConfigurationArgs) (*CheckConfiguration, error)
- func (client *ClientImpl) DeleteCheckConfiguration(ctx context.Context, args DeleteCheckConfigurationArgs) error
- func (client *ClientImpl) EvaluateCheckSuite(ctx context.Context, args EvaluateCheckSuiteArgs) (*CheckSuite, error)
- func (client *ClientImpl) GetCheckConfiguration(ctx context.Context, args GetCheckConfigurationArgs) (*CheckConfiguration, error)
- func (client *ClientImpl) GetCheckConfigurationsOnResource(ctx context.Context, args GetCheckConfigurationsOnResourceArgs) (*[]CheckConfiguration, error)
- func (client *ClientImpl) GetCheckSuite(ctx context.Context, args GetCheckSuiteArgs) (*CheckSuite, error)
- func (client *ClientImpl) QueryCheckConfigurationsOnResources(ctx context.Context, args QueryCheckConfigurationsOnResourcesArgs) (*[]CheckConfiguration, error)
- func (client *ClientImpl) UpdateCheckConfiguration(ctx context.Context, args UpdateCheckConfigurationArgs) (*CheckConfiguration, error)
- type DeleteCheckConfigurationArgs
- type EvaluateCheckSuiteArgs
- type GetCheckConfigurationArgs
- type GetCheckConfigurationsOnResourceArgs
- type GetCheckSuiteArgs
- type QueryCheckConfigurationsOnResourcesArgs
- type Resource
- type UpdateCheckConfigurationArgs
Constants ¶
This section is empty.
Variables ¶
var CheckConfigurationExpandParameterValues = checkConfigurationExpandParameterValuesType{
None: "none",
Settings: "settings",
}
var CheckIssueTypeValues = checkIssueTypeValuesType{
Error: "error",
Warning: "warning",
}
var CheckRunStatusValues = checkRunStatusValuesType{
None: "none",
Queued: "queued",
Running: "running",
Approved: "approved",
Rejected: "rejected",
Canceled: "canceled",
TimedOut: "timedOut",
Failed: "failed",
Completed: "completed",
All: "all",
}
var CheckSuiteExpandParameterValues = checkSuiteExpandParameterValuesType{
None: "none",
Resources: "resources",
}
var ResourceAreaId, _ = uuid.Parse("4a933897-0488-45af-bd82-6fd3ad33f46a")
Functions ¶
This section is empty.
Types ¶
type AddCheckConfigurationArgs ¶
type AddCheckConfigurationArgs struct { // (required) Configuration *CheckConfiguration // (required) Project ID or project name Project *string }
Arguments for the AddCheckConfiguration function
type CheckConfiguration ¶
type CheckConfiguration struct { // Check configuration id. Id *int `json:"id,omitempty"` // Resource on which check get configured. Resource *Resource `json:"resource,omitempty"` // Check configuration type Type *CheckType `json:"type,omitempty"` // The URL from which one can fetch the configured check. Url *string `json:"url,omitempty"` // Reference links. Links interface{} `json:"_links,omitempty"` // Identity of person who configured check. CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"` // Time when check got configured. CreatedOn *azuredevops.Time `json:"createdOn,omitempty"` // Issue connected to check configuration. Issue *CheckIssue `json:"issue,omitempty"` // Identity of person who modified the configured check. ModifiedBy *webapi.IdentityRef `json:"modifiedBy,omitempty"` // Time when configured check was modified. ModifiedOn *azuredevops.Time `json:"modifiedOn,omitempty"` // Settings for the check configuration. Settings interface{} `json:"settings,omitempty"` // Timeout in minutes for the check. Timeout *int `json:"timeout,omitempty"` }
type CheckConfigurationExpandParameter ¶
type CheckConfigurationExpandParameter string
type CheckConfigurationRef ¶
type CheckConfigurationRef struct { // Check configuration id. Id *int `json:"id,omitempty"` // Resource on which check get configured. Resource *Resource `json:"resource,omitempty"` // Check configuration type Type *CheckType `json:"type,omitempty"` // The URL from which one can fetch the configured check. Url *string `json:"url,omitempty"` }
type CheckIssue ¶
type CheckIssue struct { // A more detailed description of issue. DetailedMessage *string `json:"detailedMessage,omitempty"` // A description of issue. Message *string `json:"message,omitempty"` // The type (error, warning) of the issue. Type *CheckIssueType `json:"type,omitempty"` }
An issue (error, warning) associated with a check configuration.
type CheckRun ¶
type CheckRun struct { ResultMessage *string `json:"resultMessage,omitempty"` Status *CheckRunStatus `json:"status,omitempty"` CompletedDate *azuredevops.Time `json:"completedDate,omitempty"` CreatedDate *azuredevops.Time `json:"createdDate,omitempty"` CheckConfigurationRef *CheckConfigurationRef `json:"checkConfigurationRef,omitempty"` Id *uuid.UUID `json:"id,omitempty"` }
type CheckRunResult ¶
type CheckRunResult struct { ResultMessage *string `json:"resultMessage,omitempty"` Status *CheckRunStatus `json:"status,omitempty"` }
type CheckSuite ¶
type CheckSuite struct { // Reference links. Links interface{} `json:"_links,omitempty"` // List of check runs associated with the given check suite request. CheckRuns *[]CheckRun `json:"checkRuns,omitempty"` // Completed date of the given check suite request CompletedDate *azuredevops.Time `json:"completedDate,omitempty"` // Evaluation context for the check suite request Context interface{} `json:"context,omitempty"` // Unique suite id generated by the pipeline orchestrator for the pipeline check runs request on the list of resources Pipeline orchestrator will used this identifier to map the check requests on a stage Id *uuid.UUID `json:"id,omitempty"` // Optional message for the given check suite request Message *string `json:"message,omitempty"` // Overall check runs status for the given suite request. This is check suite status Status *CheckRunStatus `json:"status,omitempty"` }
type CheckSuiteExpandParameter ¶
type CheckSuiteExpandParameter string
type CheckSuiteRequest ¶
type Client ¶
type Client interface { // [Preview API] Add a check configuration AddCheckConfiguration(context.Context, AddCheckConfigurationArgs) (*CheckConfiguration, error) // [Preview API] Delete check configuration by id DeleteCheckConfiguration(context.Context, DeleteCheckConfigurationArgs) error // [Preview API] Initiate an evaluation for a check in a pipeline EvaluateCheckSuite(context.Context, EvaluateCheckSuiteArgs) (*CheckSuite, error) // [Preview API] Get Check configuration by Id GetCheckConfiguration(context.Context, GetCheckConfigurationArgs) (*CheckConfiguration, error) // [Preview API] Get Check configuration by resource type and id GetCheckConfigurationsOnResource(context.Context, GetCheckConfigurationsOnResourceArgs) (*[]CheckConfiguration, error) // [Preview API] Get details for a specific check evaluation GetCheckSuite(context.Context, GetCheckSuiteArgs) (*CheckSuite, error) // [Preview API] Get check configurations for multiple resources by resource type and id. QueryCheckConfigurationsOnResources(context.Context, QueryCheckConfigurationsOnResourcesArgs) (*[]CheckConfiguration, error) // [Preview API] Update check configuration UpdateCheckConfiguration(context.Context, UpdateCheckConfigurationArgs) (*CheckConfiguration, error) }
type ClientImpl ¶
type ClientImpl struct {
Client azuredevops.Client
}
func (*ClientImpl) AddCheckConfiguration ¶
func (client *ClientImpl) AddCheckConfiguration(ctx context.Context, args AddCheckConfigurationArgs) (*CheckConfiguration, error)
[Preview API] Add a check configuration
func (*ClientImpl) DeleteCheckConfiguration ¶
func (client *ClientImpl) DeleteCheckConfiguration(ctx context.Context, args DeleteCheckConfigurationArgs) error
[Preview API]
func (*ClientImpl) EvaluateCheckSuite ¶
func (client *ClientImpl) EvaluateCheckSuite(ctx context.Context, args EvaluateCheckSuiteArgs) (*CheckSuite, error)
[Preview API]
func (*ClientImpl) GetCheckConfiguration ¶
func (client *ClientImpl) GetCheckConfiguration(ctx context.Context, args GetCheckConfigurationArgs) (*CheckConfiguration, error)
[Preview API] Get Check configuration by Id
func (*ClientImpl) GetCheckConfigurationsOnResource ¶
func (client *ClientImpl) GetCheckConfigurationsOnResource(ctx context.Context, args GetCheckConfigurationsOnResourceArgs) (*[]CheckConfiguration, error)
[Preview API] Get Check configuration by resource type and id
func (*ClientImpl) GetCheckSuite ¶
func (client *ClientImpl) GetCheckSuite(ctx context.Context, args GetCheckSuiteArgs) (*CheckSuite, error)
[Preview API]
func (*ClientImpl) QueryCheckConfigurationsOnResources ¶
func (client *ClientImpl) QueryCheckConfigurationsOnResources(ctx context.Context, args QueryCheckConfigurationsOnResourcesArgs) (*[]CheckConfiguration, error)
[Preview API] Get check configurations for multiple resources by resource type and id.
func (*ClientImpl) UpdateCheckConfiguration ¶
func (client *ClientImpl) UpdateCheckConfiguration(ctx context.Context, args UpdateCheckConfigurationArgs) (*CheckConfiguration, error)
[Preview API] Update check configuration
type DeleteCheckConfigurationArgs ¶
type DeleteCheckConfigurationArgs struct { // (required) Project ID or project name Project *string // (required) check configuration id Id *int }
Arguments for the DeleteCheckConfiguration function
type EvaluateCheckSuiteArgs ¶
type EvaluateCheckSuiteArgs struct { // (required) Request *CheckSuiteRequest // (required) Project ID or project name Project *string // (optional) Expand *CheckSuiteExpandParameter }
Arguments for the EvaluateCheckSuite function
type GetCheckConfigurationArgs ¶
type GetCheckConfigurationArgs struct { // (required) Project ID or project name Project *string // (required) Id *int // (optional) Expand *CheckConfigurationExpandParameter }
Arguments for the GetCheckConfiguration function
type GetCheckConfigurationsOnResourceArgs ¶
type GetCheckConfigurationsOnResourceArgs struct { // (required) Project ID or project name Project *string // (optional) resource type ResourceType *string // (optional) resource id ResourceId *string // (optional) Expand *CheckConfigurationExpandParameter }
Arguments for the GetCheckConfigurationsOnResource function
type GetCheckSuiteArgs ¶
type GetCheckSuiteArgs struct { // (required) Project ID or project name Project *string // (required) CheckSuiteId *uuid.UUID // (optional) Expand *CheckSuiteExpandParameter }
Arguments for the GetCheckSuite function
type QueryCheckConfigurationsOnResourcesArgs ¶
type QueryCheckConfigurationsOnResourcesArgs struct { // (required) List of resources. Resources *[]Resource // (required) Project ID or project name Project *string // (optional) The properties that should be expanded in the list of check configurations. Expand *CheckConfigurationExpandParameter }
Arguments for the QueryCheckConfigurationsOnResources function
type UpdateCheckConfigurationArgs ¶
type UpdateCheckConfigurationArgs struct { // (required) check configuration Configuration *CheckConfiguration // (required) Project ID or project name Project *string // (required) check configuration id Id *int }
Arguments for the UpdateCheckConfiguration function