Documentation
¶
Index ¶
- type Error
- type Project
- type Projects
- type Remediation
- type RemediationAction
- type Remediations
- type Resource
- type Resources
- type Service
- type ServiceIndicator
- type ServiceIndicatorQueryObject
- type ServiceIndicators
- type ServiceObjective
- type ServiceObjectives
- type Services
- type Shipyard
- type Stage
- type Stages
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// Error code
Code int64 `json:"code,omitempty"`
// Error message
// Required: true
Message *string `json:"message"`
}
Error error swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Project ¶
type Project struct {
// Git remote URI
GitRemoteURI string `json:"gitRemoteURI,omitempty"`
// Git token
GitToken string `json:"gitToken,omitempty"`
// Git User
GitUser string `json:"gitUser,omitempty"`
// Project name
ProjectName string `json:"projectName,omitempty"`
}
Project project swagger:model Project
func (*Project) MarshalBinary ¶
MarshalBinary interface implementation
func (*Project) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Projects ¶
type Projects struct {
// Pointer to next page, base64 encoded
NextPageKey string `json:"nextPageKey,omitempty"`
// Size of returned page
PageSize float64 `json:"pageSize,omitempty"`
// projects
Projects []*Project `json:"projects"`
// Total number of projects
TotalCount float64 `json:"totalCount,omitempty"`
}
Projects projects swagger:model Projects
func (*Projects) MarshalBinary ¶
MarshalBinary interface implementation
func (*Projects) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Remediation ¶
type Remediation struct {
Name string `json:"name" yaml:"name"`
Actions []*RemediationAction `json:"actions" yaml:"actions"`
}
Remediation represents a remediation
type RemediationAction ¶
type RemediationAction struct {
Action string `json:"action" yaml:"action"`
Value string `json:"value" yaml:"value"`
}
RemediationAction represents a remediation action
type Remediations ¶
type Remediations struct {
Remediations []*Remediation `json:"remediations" yaml:"remediations"`
}
Remediations contains remediation definitions for a service
type Resource ¶
type Resource struct {
// Resource content
ResourceContent string `json:"resourceContent,omitempty"`
// Resource URI
// Required: true
ResourceURI *string `json:"resourceURI"`
}
Resource resource swagger:model Resource
func (*Resource) MarshalBinary ¶
MarshalBinary interface implementation
func (*Resource) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Resources ¶
type Resources struct {
// Pointer to next page, base64 encoded
NextPageKey string `json:"nextPageKey,omitempty"`
// Size of returned page
PageSize float64 `json:"pageSize,omitempty"`
// resources
Resources []*Resource `json:"resources"`
// Total number of resources
TotalCount float64 `json:"totalCount,omitempty"`
}
Resources resources swagger:model Resources
func (*Resources) MarshalBinary ¶
MarshalBinary interface implementation
func (*Resources) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Service ¶
type Service struct {
// Service name
ServiceName string `json:"serviceName,omitempty"`
}
Service service swagger:model Service
func (*Service) MarshalBinary ¶
MarshalBinary interface implementation
func (*Service) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServiceIndicator ¶
type ServiceIndicator struct {
Metric string `json:"metric" yaml:"metric"`
Source string `json:"source" yaml:"source"`
Query string `json:"query" yaml:"query"`
QueryObject []*ServiceIndicatorQueryObject `json:"queryObject" yaml:"queryObject"`
}
ServiceIndicator describes a service indicator
type ServiceIndicators ¶
type ServiceIndicators struct {
Indicators []*ServiceIndicator `json:"indicators" yaml:"indicators"`
}
ServiceIndicators contains the definition of service indicators
type ServiceObjective ¶
type ServiceObjective struct {
Metric string `json:"metric" yaml:"metric"`
Threshold float32 `json:"threshold" yaml:"threshold"`
Timeframe string `json:"timeframe" yaml:"timeframe"`
Score float32 `json:"score" yaml:"score"`
}
ServiceObjective describes a service objective
type ServiceObjectives ¶
type ServiceObjectives struct {
Pass int `json:"pass" yaml:"pass"`
Warning int `json:"warning" yaml:"warning"`
Objectives []*ServiceObjective `json:"objectives" yaml:"objectives"`
}
ServiceObjectives describes objectives for a service
type Services ¶
type Services struct {
// Pointer to next page, base64 encoded
NextPageKey string `json:"nextPageKey,omitempty"`
// Size of returned page
PageSize float64 `json:"pageSize,omitempty"`
// services
Services []*Service `json:"services"`
// Total number of services
TotalCount float64 `json:"totalCount,omitempty"`
}
Services services swagger:model Services
func (*Services) MarshalBinary ¶
MarshalBinary interface implementation
func (*Services) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Shipyard ¶
type Shipyard struct {
Stages []struct {
Name string `json:"name" yaml:"name"`
DeploymentStrategy string `json:"deployment_strategy" yaml:"deployment_strategy"`
TestStrategy string `json:"test_strategy,omitempty" yaml:"test_strategy"`
RemediationStrategy string `json:"remediation_strategy,omitempty" yaml:"remediation_strategy"`
} `json:"stages" yaml:"stages"`
}
Shipyard defines the name, deployment strategy and test strategy of each stage
type Stage ¶
type Stage struct {
// Stage name
StageName string `json:"stageName,omitempty"`
}
Stage stage swagger:model Stage
func (*Stage) MarshalBinary ¶
MarshalBinary interface implementation
func (*Stage) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Stages ¶
type Stages struct {
// Pointer to next page, base64 encoded
NextPageKey string `json:"nextPageKey,omitempty"`
// Size of returned page
PageSize float64 `json:"pageSize,omitempty"`
// stages
Stages []*Stage `json:"stages"`
// Total number of stages
TotalCount float64 `json:"totalCount,omitempty"`
}
Stages stages swagger:model Stages
func (*Stages) MarshalBinary ¶
MarshalBinary interface implementation
func (*Stages) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Version ¶
type Version struct {
// Version identifier
Version string `json:"version,omitempty"`
}
Version version swagger:model Version
func (*Version) MarshalBinary ¶
MarshalBinary interface implementation
func (*Version) UnmarshalBinary ¶
UnmarshalBinary interface implementation