Documentation ¶
Index ¶
- Constants
- func APIErrorChecker(urlPath string, resp *http.Response, wantedResponseCode int, slingError error, ...) error
- type APIError
- type ConnectivityCheck
- type ConnectivityPolicy
- type GuidedFailureMode
- type NamedReferenceItem
- type PropertyValue
- type RetentionPeriod
- type SensitiveValue
- type SkipMachineBehavior
- type SkipTakeQuery
- type TenantedDeploymentMode
- type WorkItemLink
Constants ¶
View Source
const ( TenantedDeploymentModeTenanted = TenantedDeploymentMode("Tenanted") TenantedDeploymentModeTenantedOrUntenanted = TenantedDeploymentMode("TenantedOrUntenanted") TenantedDeploymentModeUntenanted = TenantedDeploymentMode("Untenanted") )
View Source
const ( GuidedFailureModeEnvironmentDefault = GuidedFailureMode("EnvironmentDefault") GuidedFailureModeOff = GuidedFailureMode("Off") GuidedFailureModeOn = GuidedFailureMode("On") )
View Source
const ( SkipMachineBehaviorNone = SkipMachineBehavior("None") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type APIError struct { ErrorMessage string `json:"ErrorMessage,omitempty"` Errors []string `json:"Errors,omitempty"` FullException string `json:"FullException,omitempty"` HelpLink string `json:"HelpLink,omitempty"` HelpText string `json:"HelpText,omitempty"` ParsedHelpLinks []string `json:"ParsedHelpLinks,omitempty"` StatusCode int }
APIError is a generic structure for containing errors for API operations.
type ConnectivityCheck ¶
type ConnectivityCheck struct { DependsOnPropertyNames []string `json:"DependsOnPropertyNames"` Title string `json:"Title,omitempty"` URL string `json:"Url,omitempty"` }
func NewConnectivityCheck ¶
func NewConnectivityCheck() *ConnectivityCheck
type ConnectivityPolicy ¶
type ConnectivityPolicy struct { AllowDeploymentsToNoTargets bool `json:"AllowDeploymentsToNoTargets,omitempty"` ExcludeUnhealthyTargets bool `json:"ExcludeUnhealthyTargets,omitempty"` SkipMachineBehavior SkipMachineBehavior `json:"SkipMachineBehavior,omitempty"` TargetRoles []string `json:"TargetRoles,omitempty"` }
func NewConnectivityPolicy ¶
func NewConnectivityPolicy() *ConnectivityPolicy
type GuidedFailureMode ¶ added in v2.4.0
type GuidedFailureMode string
type NamedReferenceItem ¶
type NamedReferenceItem struct { DisplayIDAndName bool `json:"DisplayIdAndName,omitempty"` DisplayName string `json:"DisplayName,omitempty"` ID string `json:"Id,omitempty"` }
func NewNamedReferenceItem ¶
func NewNamedReferenceItem() *NamedReferenceItem
type PropertyValue ¶
type PropertyValue struct { IsSensitive bool `json:"IsSensitive,omitempty"` SensitiveValue *SensitiveValue `json:"SensitiveValue,omitempty"` Value string `json:"Value,omitempty"` }
func NewPropertyValue ¶
func NewPropertyValue(value string, isSensitive bool) PropertyValue
func (PropertyValue) MarshalJSON ¶
func (p PropertyValue) MarshalJSON() ([]byte, error)
func (*PropertyValue) UnmarshalJSON ¶
func (d *PropertyValue) UnmarshalJSON(data []byte) error
UnmarshalJSON sets this property value to its representation in JSON.
type RetentionPeriod ¶
type RetentionPeriod struct { QuantityToKeep int32 `json:"QuantityToKeep"` ShouldKeepForever bool `json:"ShouldKeepForever"` Unit string `json:"Unit"` }
func NewRetentionPeriod ¶
func NewRetentionPeriod(quantityToKeep int32, unit string, shouldKeepForever bool) RetentionPeriod
type SensitiveValue ¶
func NewSensitiveValue ¶
func NewSensitiveValue(newValue string) *SensitiveValue
NewSensitiveValue creates and initializes a sensitive value.
type SkipMachineBehavior ¶
type SkipMachineBehavior string
type SkipTakeQuery ¶
type TenantedDeploymentMode ¶
type TenantedDeploymentMode string
type WorkItemLink ¶
type WorkItemLink struct { Description string `json:"Description,omitempty"` ID string `json:"Id,omitempty"` LinkURL string `json:"LinkUrl,omitempty"` Source string `json:"Source,omitempty"` }
func NewWorkItemLink ¶
func NewWorkItemLink() *WorkItemLink
Click to show internal directories.
Click to hide internal directories.