Documentation ¶
Index ¶
- Variables
- type AddCheckConfigurationArgs
- type CheckConfiguration
- type CheckConfigurationRef
- type CheckRun
- type CheckRunResult
- type CheckRunStatus
- type CheckSuite
- 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) UpdateCheckConfiguration(ctx context.Context, args UpdateCheckConfigurationArgs) (*CheckConfiguration, error)
- type DeleteCheckConfigurationArgs
- type EvaluateCheckSuiteArgs
- type GetCheckConfigurationArgs
- type GetCheckConfigurationsOnResourceArgs
- type GetCheckSuiteArgs
- type Resource
- type UpdateCheckConfigurationArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckRunStatusValues = checkRunStatusValuesType{
None: "none",
Queued: "queued",
Running: "running",
Approved: "approved",
Rejected: "rejected",
Canceled: "canceled",
}
View Source
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"` // 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"` }
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 CheckRun ¶
type CheckRun struct { ResultMessage *string `json:"resultMessage,omitempty"` Status *CheckRunStatus `json:"status,omitempty"` CheckConfigurationRef *CheckConfigurationRef `json:"checkConfigurationRef,omitempty"` CompletedDate *azuredevops.Time `json:"completedDate,omitempty"` CreatedDate *azuredevops.Time `json:"createdDate,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 CheckSuiteRequest ¶
type Client ¶
type Client interface { // [Preview API] Add a check configuration AddCheckConfiguration(context.Context, AddCheckConfigurationArgs) (*CheckConfiguration, error) // [Preview API] DeleteCheckConfiguration(context.Context, DeleteCheckConfigurationArgs) error // [Preview API] 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] GetCheckSuite(context.Context, GetCheckSuiteArgs) (*CheckSuite, error) // [Preview API] Update check configuration UpdateCheckConfiguration(context.Context, UpdateCheckConfigurationArgs) (*CheckConfiguration, error) }
func NewClient ¶
func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, 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) 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) Id *int }
Arguments for the DeleteCheckConfiguration function
type EvaluateCheckSuiteArgs ¶
type EvaluateCheckSuiteArgs struct { // (required) Request *CheckSuiteRequest // (required) Project ID or project name Project *string }
Arguments for the EvaluateCheckSuite function
type GetCheckConfigurationArgs ¶
type GetCheckConfigurationArgs struct { // (required) Project ID or project name Project *string // (required) Id *int }
Arguments for the GetCheckConfiguration function
type GetCheckConfigurationsOnResourceArgs ¶
type GetCheckConfigurationsOnResourceArgs struct { // (required) Project ID or project name Project *string // (required) resource type ResourceType *string // (required) resource id ResourceId *string }
Arguments for the GetCheckConfigurationsOnResource function
type GetCheckSuiteArgs ¶
type GetCheckSuiteArgs struct { // (required) Project ID or project name Project *string // (required) CheckSuiteId *uuid.UUID }
Arguments for the GetCheckSuite 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
Click to show internal directories.
Click to hide internal directories.