Documentation
¶
Index ¶
- type AuthenticatedTransport
- type BranchMapping
- type BuildMapping
- type Client
- func (c *Client) CreateCodeChangeSource(input CreateCodeChangeSourceMutationInput) (*CodeChangeSource, error)
- func (c *Client) CreateEnvironment(input CreateEnvironmentMutationInput) (*Environment, error)
- func (c *Client) CreateErrorImpactSource(input CreateErrorImpactSourceMutationInput) (*ErrorImpactSource, error)
- func (c *Client) CreateMetricImpactSource(input CreateMetricImpactSourceMutationInput) (*MetricImpactSource, error)
- func (c *Client) CreateProject(input CreateProjectMutationInput) (*Project, error)
- func (c *Client) DeleteChangeSource(projectSlug *string, slug *string) error
- func (c *Client) DeleteEnvironment(projectSlug *string, slug *string) error
- func (c *Client) DeleteImpactSource(projectSlug *string, slug *string) error
- func (c *Client) DeleteProject(slug *string) error
- func (c *Client) GetCodeChangeSource(ctx context.Context, projectSlug *string, slug *string) (*CodeChangeSource, error)
- func (c *Client) GetEnvironment(projectSlug *string, slug *string) (*Environment, error)
- func (c *Client) GetEnvironmentByName(projectSlug *string, name *string) (*Environment, error)
- func (c *Client) GetErrorImpactSource(projectSlug *string, slug *string) (*ErrorImpactSource, error)
- func (c *Client) GetMetricImpactSource(projectSlug *string, slug *string) (*MetricImpactSource, error)
- func (c *Client) GetProject(slug *string) (*Project, error)
- func (c *Client) UpdateCodeChangeSource(input UpdateCodeChangeSourceMutationInput) (*CodeChangeSource, error)
- func (c *Client) UpdateEnvironment(input UpdateEnvironmentMutationInput) (*Environment, error)
- func (c *Client) UpdateErrorImpactSource(input UpdateErrorImpactSourceMutationInput) (*ErrorImpactSource, error)
- func (c *Client) UpdateMetricImpactSource(input UpdateMetricImpactSourceMutationInput) (*MetricImpactSource, error)
- func (c *Client) UpdateProject(slug *string, input UpdateProjectMutationInput) (*Project, error)
- type CodeChangeSource
- type CreateCodeChangeSourceMutationInput
- type CreateEnvironmentMutationInput
- type CreateErrorImpactSourceMutationInput
- type CreateMetricImpactSourceMutationInput
- type CreateProjectMutationInput
- type DeleteChangeSourceMutationInput
- type DeleteEnvironmentMutationInput
- type DeleteImpactSourceMutationInput
- type DeleteProjectMutationInput
- type DeployTrackingBuildMapping
- type Environment
- type ErrorImpactSource
- type ErrorsType
- type MetricImpactSource
- type MutableCodeChangeSource
- type MutableEnvironment
- type MutableErrorImpactSource
- type MutableMetricImpactSource
- type MutableProject
- type MutableRepository
- type Project
- type Repository
- type UpdateCodeChangeSourceMutationInput
- type UpdateEnvironmentMutationInput
- type UpdateErrorImpactSourceMutationInput
- type UpdateMetricImpactSourceMutationInput
- type UpdateProjectMutationInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatedTransport ¶
type AuthenticatedTransport struct {
T http.RoundTripper
ApiKey string
}
type BranchMapping ¶
type BuildMapping ¶ added in v0.3.4
type BuildMapping struct {
EnvironmentSlug string `json:"environmentSlug"`
Provider string `json:"provider"`
BuildName string `json:"buildName"`
JobName string `json:"jobName,omitempty"`
BuildProjectKey string `json:"buildProjectKey,omitempty"`
IntegrationSlug string `json:"integrationSlug"`
BuildBranch string `json:"buildBranch"`
MatchBranchToEnvironment bool `json:"matchBranchToEnvironment,omitempty"`
}
This represents a build mapping for creation or mutation
type Client ¶
type Client struct {
Baseurl string
HTTPClient *http.Client
GQLClient *graphql.Client
ApiKey string
OrgSlug string
}
Client -
func (*Client) CreateCodeChangeSource ¶
func (c *Client) CreateCodeChangeSource(input CreateCodeChangeSourceMutationInput) (*CodeChangeSource, error)
func (*Client) CreateEnvironment ¶
func (c *Client) CreateEnvironment(input CreateEnvironmentMutationInput) (*Environment, error)
CreateEnvironment - Creates a environment
func (*Client) CreateErrorImpactSource ¶
func (c *Client) CreateErrorImpactSource(input CreateErrorImpactSourceMutationInput) (*ErrorImpactSource, error)
CreateErrorImpactSource - Creates a environment
func (*Client) CreateMetricImpactSource ¶
func (c *Client) CreateMetricImpactSource(input CreateMetricImpactSourceMutationInput) (*MetricImpactSource, error)
CreateMetricImpactSource - Creates a environment
func (*Client) CreateProject ¶
func (c *Client) CreateProject(input CreateProjectMutationInput) (*Project, error)
CreateProject - Creates a project
func (*Client) DeleteChangeSource ¶
DeleteChangeSource - Deletes a change source
func (*Client) DeleteEnvironment ¶
DeleteEnvironment - Deletes a environment
func (*Client) DeleteImpactSource ¶
DeleteImpactSource - Deletes a impact source
func (*Client) DeleteProject ¶
DeleteProject - Deletes a project
func (*Client) GetCodeChangeSource ¶
func (*Client) GetEnvironment ¶
func (c *Client) GetEnvironment(projectSlug *string, slug *string) (*Environment, error)
GetEnvironment - Returns environment
func (*Client) GetEnvironmentByName ¶
func (c *Client) GetEnvironmentByName(projectSlug *string, name *string) (*Environment, error)
func (*Client) GetErrorImpactSource ¶
func (c *Client) GetErrorImpactSource(projectSlug *string, slug *string) (*ErrorImpactSource, error)
GetErrorImpactSource - Returns error impact source
func (*Client) GetMetricImpactSource ¶
func (c *Client) GetMetricImpactSource(projectSlug *string, slug *string) (*MetricImpactSource, error)
GetMetricImpactSource - Returns error impact source
func (*Client) GetProject ¶
GetProject - Returns project
func (*Client) UpdateCodeChangeSource ¶
func (c *Client) UpdateCodeChangeSource(input UpdateCodeChangeSourceMutationInput) (*CodeChangeSource, error)
func (*Client) UpdateEnvironment ¶
func (c *Client) UpdateEnvironment(input UpdateEnvironmentMutationInput) (*Environment, error)
UpdateEnvironment - Updates a environment
func (*Client) UpdateErrorImpactSource ¶
func (c *Client) UpdateErrorImpactSource(input UpdateErrorImpactSourceMutationInput) (*ErrorImpactSource, error)
UpdateErrorImpactSource - Updates a environment
func (*Client) UpdateMetricImpactSource ¶
func (c *Client) UpdateMetricImpactSource(input UpdateMetricImpactSourceMutationInput) (*MetricImpactSource, error)
UpdateMetricImpactSource - Updates a environment
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(slug *string, input UpdateProjectMutationInput) (*Project, error)
UpdateProject - Updates a project
type CodeChangeSource ¶
type CodeChangeSource struct {
Slug string `json:"slug"`
Name string `json:"name"`
Repository Repository `json:"repository"`
DeployTrackingType string `json:"deployTrackingType"`
CollectImpact bool `json:"collectImpact"`
PathPrefix string `json:"pathPrefix"`
NotifyInSlack bool `json:"notifyInSlack"`
IncludeInDashboard bool `json:"includeInDashboard"`
AutoTrackingDelay int `json:"autoTrackingDelay"`
EnvironmentMappings []BranchMapping `json:"environmentMappings"`
DeployTrackingBuildMappings []DeployTrackingBuildMapping `json:"deployTrackingBuildMappings"`
}
type CreateCodeChangeSourceMutationInput ¶
type CreateCodeChangeSourceMutationInput struct {
ProjectSlug string `json:"projectSlug"`
InitializeChanges bool `json:"initializeChanges"`
*MutableCodeChangeSource
}
type CreateEnvironmentMutationInput ¶
type CreateEnvironmentMutationInput struct {
ProjectSlug string `json:"projectSlug"`
*MutableEnvironment
}
type CreateErrorImpactSourceMutationInput ¶
type CreateErrorImpactSourceMutationInput struct {
ProjectSlug string `json:"projectSlug"`
*MutableErrorImpactSource
}
type CreateMetricImpactSourceMutationInput ¶
type CreateMetricImpactSourceMutationInput struct {
ProjectSlug string `json:"projectSlug"`
*MutableMetricImpactSource
}
type CreateProjectMutationInput ¶
type CreateProjectMutationInput struct {
*MutableProject
}
type DeleteProjectMutationInput ¶
type DeleteProjectMutationInput struct {
Slug string `json:"slug"`
}
type DeployTrackingBuildMapping ¶ added in v0.3.4
type DeployTrackingBuildMapping struct {
Environment Environment `json:"environment"`
Provider string `json:"provider"`
BuildName string `json:"buildName"`
JobName string `json:"jobName,omitempty"`
BuildProjectKey string `json:"buildProjectKey"`
MatchBranchToEnvironment bool `json:"matchBranchToEnvironment"`
}
This represents the build mapping as retrieved from a query
type Environment ¶
type ErrorImpactSource ¶
type ErrorImpactSource struct {
Slug string `json:"slug"`
Environment Environment `json:"environment"`
Name string `json:"name"`
Provider string `json:"provider"`
ErrorOrgKey string `json:"errorOrgKey"`
ErrorProjectKey string `json:"errorProjectKey"`
ErrorEnvironment string `json:"errorEnvironment"`
ManuallySetHealthThreshold float64 `json:"manuallySetHealthThreshold,omitempty"`
}
type ErrorsType ¶
type MetricImpactSource ¶
type MetricImpactSource struct {
Slug string `json:"slug"`
Environment Environment `json:"environment"`
Name string `json:"name"`
Provider string `json:"provider,omitempty"`
Query string `json:"query,omitempty"`
LessIsBetter bool `json:"lessIsBetter,omitempty"`
ManuallySetHealthThreshold float64 `json:"manuallySetHealthThreshold,omitempty"`
}
type MutableCodeChangeSource ¶
type MutableCodeChangeSource struct {
Name string `json:"name"`
Repository MutableRepository `json:"repository"`
DeployTrackingType string `json:"deployTrackingType"`
CollectImpact bool `json:"collectImpact"`
PathPrefix string `json:"pathPrefix"`
NotifyInSlack bool `json:"notifyInSlack"`
IncludeInDashboard bool `json:"includeInDashboard"`
AutoTrackingDelay int `json:"autoTrackingDelay"`
EnvironmentMappings []BranchMapping `json:"environmentMappings"`
BuildMappings []BuildMapping `json:"buildMappings"`
}
type MutableEnvironment ¶
type MutableErrorImpactSource ¶
type MutableErrorImpactSource struct {
EnvironmentSlug string `json:"environment"`
Name string `json:"name"`
Provider string `json:"provider"`
ErrorOrgKey string `json:"errorOrgKey"`
ErrorProjectKey string `json:"errorProjectKey"`
ErrorEnvironment string `json:"errorEnvironment"`
ManuallySetHealthThreshold float64 `json:"manuallySetHealthThreshold,omitempty"`
}
type MutableMetricImpactSource ¶
type MutableMetricImpactSource struct {
EnvironmentSlug string `json:"environment"`
Name string `json:"name"`
Provider string `json:"provider"`
Query string `json:"query,omitempty"`
IntegrationSlug string `json:"auth,omitempty"`
LessIsBetter bool `json:"lessIsBetter,omitempty"`
ManuallySetHealthThreshold float64 `json:"manuallySetHealthThreshold,omitempty"`
}
type MutableProject ¶
type MutableProject struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
IssueTrackerProvider string `json:"issueTrackerProvider,omitempty"`
BuildProvider string `json:"buildProvider,omitempty"`
ChangeFailureRateBoundary string `json:"changeFailureRateBoundary,omitempty"`
ImpactSensitivity string `json:"impactSensitivity,omitempty"`
FailureSensitivity int `json:"failureSensitivity,omitempty"`
}
type MutableRepository ¶ added in v0.3.10
type MutableRepository struct {
Repository
IntegrationSlug string `json:"integrationSlug,omitempty"`
}
type Project ¶
type Project struct {
Slug string `json:"slug"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
IssueTrackerProvider string `json:"issueTrackerProvider,omitempty"`
BuildProvider string `json:"buildProvider,omitempty"`
ChangeFailureRateBoundary string `json:"changeFailureRateBoundary,omitempty"`
ImpactSensitivity string `json:"impactSensitivity,omitempty"`
FailureSensitivity int `json:"failureSensitivity,omitempty"`
}
type Repository ¶
type UpdateCodeChangeSourceMutationInput ¶
type UpdateCodeChangeSourceMutationInput struct {
ProjectSlug string `json:"projectSlug"`
Slug string `json:"slug"`
*MutableCodeChangeSource
}
type UpdateEnvironmentMutationInput ¶
type UpdateEnvironmentMutationInput struct {
ProjectSlug string `json:"projectSlug"`
Slug string `json:"slug"`
*MutableEnvironment
}
type UpdateErrorImpactSourceMutationInput ¶
type UpdateErrorImpactSourceMutationInput struct {
ProjectSlug string `json:"projectSlug"`
Slug string `json:"slug"`
*MutableErrorImpactSource
}
type UpdateMetricImpactSourceMutationInput ¶
type UpdateMetricImpactSourceMutationInput struct {
ProjectSlug string `json:"projectSlug"`
Slug string `json:"slug"`
*MutableMetricImpactSource
}
type UpdateProjectMutationInput ¶
type UpdateProjectMutationInput struct {
Slug string `json:"slug"`
*MutableProject
}