Documentation
¶
Index ¶
- func PossibleValuesForExperimentActionType() []string
- func PossibleValuesForFilterType() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForSelectorType() []string
- func PossibleValuesForTargetReferenceType() []string
- func ValidateExperimentID(input interface{}, key string) (warnings []string, errors []error)
- type BaseChaosExperimentActionImpl
- type BaseChaosTargetFilterImpl
- type BaseChaosTargetSelectorImpl
- type CancelOperationResponse
- type ChaosExperimentAction
- type ChaosExperimentBranch
- type ChaosExperimentStep
- type ChaosTargetFilter
- type ChaosTargetListSelector
- type ChaosTargetQuerySelector
- type ChaosTargetSelector
- type ChaosTargetSimpleFilter
- type ChaosTargetSimpleFilterParameters
- type ContinuousAction
- type CreateOrUpdateOperationResponse
- type DelayAction
- type DeleteOperationResponse
- type DiscreteAction
- type Experiment
- type ExperimentActionType
- type ExperimentId
- type ExperimentOperationPredicate
- type ExperimentProperties
- type ExperimentUpdate
- type ExperimentsClient
- func (c ExperimentsClient) Cancel(ctx context.Context, id ExperimentId) (result CancelOperationResponse, err error)
- func (c ExperimentsClient) CancelThenPoll(ctx context.Context, id ExperimentId) error
- func (c ExperimentsClient) CreateOrUpdate(ctx context.Context, id ExperimentId, input Experiment) (result CreateOrUpdateOperationResponse, err error)
- func (c ExperimentsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExperimentId, input Experiment) error
- func (c ExperimentsClient) Delete(ctx context.Context, id ExperimentId) (result DeleteOperationResponse, err error)
- func (c ExperimentsClient) DeleteThenPoll(ctx context.Context, id ExperimentId) error
- func (c ExperimentsClient) Get(ctx context.Context, id ExperimentId) (result GetOperationResponse, err error)
- func (c ExperimentsClient) List(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListOperationResponse, err error)
- func (c ExperimentsClient) ListAll(ctx context.Context, id commonids.SubscriptionId, ...) (result ListAllOperationResponse, err error)
- func (c ExperimentsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId, ...) (ListAllCompleteResult, error)
- func (c ExperimentsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListAllCompleteResult, err error)
- func (c ExperimentsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListCompleteResult, error)
- func (c ExperimentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListCompleteResult, err error)
- func (c ExperimentsClient) Start(ctx context.Context, id ExperimentId) (result StartOperationResponse, err error)
- func (c ExperimentsClient) StartThenPoll(ctx context.Context, id ExperimentId) error
- func (c ExperimentsClient) Update(ctx context.Context, id ExperimentId, input ExperimentUpdate) (result UpdateOperationResponse, err error)
- func (c ExperimentsClient) UpdateThenPoll(ctx context.Context, id ExperimentId, input ExperimentUpdate) error
- type FilterType
- type GetOperationResponse
- type KeyValuePair
- type ListAllCompleteResult
- type ListAllCustomPager
- type ListAllOperationOptions
- type ListAllOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type ProvisioningState
- type RawChaosExperimentActionImpl
- type RawChaosTargetFilterImpl
- type RawChaosTargetSelectorImpl
- type SelectorType
- type StartOperationResponse
- type TargetReference
- type TargetReferenceType
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForExperimentActionType ¶
func PossibleValuesForExperimentActionType() []string
func PossibleValuesForFilterType ¶
func PossibleValuesForFilterType() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForSelectorType ¶
func PossibleValuesForSelectorType() []string
func PossibleValuesForTargetReferenceType ¶
func PossibleValuesForTargetReferenceType() []string
func ValidateExperimentID ¶
ValidateExperimentID checks that 'input' can be parsed as a Experiment ID
Types ¶
type BaseChaosExperimentActionImpl ¶
type BaseChaosExperimentActionImpl struct { Name string `json:"name"` Type ExperimentActionType `json:"type"` }
func (BaseChaosExperimentActionImpl) ChaosExperimentAction ¶
func (s BaseChaosExperimentActionImpl) ChaosExperimentAction() BaseChaosExperimentActionImpl
type BaseChaosTargetFilterImpl ¶
type BaseChaosTargetFilterImpl struct {
Type FilterType `json:"type"`
}
func (BaseChaosTargetFilterImpl) ChaosTargetFilter ¶
func (s BaseChaosTargetFilterImpl) ChaosTargetFilter() BaseChaosTargetFilterImpl
type BaseChaosTargetSelectorImpl ¶
type BaseChaosTargetSelectorImpl struct { Filter ChaosTargetFilter `json:"filter"` Id string `json:"id"` Type SelectorType `json:"type"` }
func (BaseChaosTargetSelectorImpl) ChaosTargetSelector ¶
func (s BaseChaosTargetSelectorImpl) ChaosTargetSelector() BaseChaosTargetSelectorImpl
func (*BaseChaosTargetSelectorImpl) UnmarshalJSON ¶
func (s *BaseChaosTargetSelectorImpl) UnmarshalJSON(bytes []byte) error
type CancelOperationResponse ¶
type ChaosExperimentAction ¶
type ChaosExperimentAction interface {
ChaosExperimentAction() BaseChaosExperimentActionImpl
}
func UnmarshalChaosExperimentActionImplementation ¶
func UnmarshalChaosExperimentActionImplementation(input []byte) (ChaosExperimentAction, error)
type ChaosExperimentBranch ¶
type ChaosExperimentBranch struct { Actions []ChaosExperimentAction `json:"actions"` Name string `json:"name"` }
func (*ChaosExperimentBranch) UnmarshalJSON ¶
func (s *ChaosExperimentBranch) UnmarshalJSON(bytes []byte) error
type ChaosExperimentStep ¶
type ChaosExperimentStep struct { Branches []ChaosExperimentBranch `json:"branches"` Name string `json:"name"` }
type ChaosTargetFilter ¶
type ChaosTargetFilter interface {
ChaosTargetFilter() BaseChaosTargetFilterImpl
}
func UnmarshalChaosTargetFilterImplementation ¶
func UnmarshalChaosTargetFilterImplementation(input []byte) (ChaosTargetFilter, error)
type ChaosTargetListSelector ¶
type ChaosTargetListSelector struct { Targets []TargetReference `json:"targets"` Filter ChaosTargetFilter `json:"filter"` Id string `json:"id"` Type SelectorType `json:"type"` }
func (ChaosTargetListSelector) ChaosTargetSelector ¶
func (s ChaosTargetListSelector) ChaosTargetSelector() BaseChaosTargetSelectorImpl
func (ChaosTargetListSelector) MarshalJSON ¶
func (s ChaosTargetListSelector) MarshalJSON() ([]byte, error)
func (*ChaosTargetListSelector) UnmarshalJSON ¶
func (s *ChaosTargetListSelector) UnmarshalJSON(bytes []byte) error
type ChaosTargetQuerySelector ¶
type ChaosTargetQuerySelector struct { QueryString string `json:"queryString"` SubscriptionIds []string `json:"subscriptionIds"` Filter ChaosTargetFilter `json:"filter"` Id string `json:"id"` Type SelectorType `json:"type"` }
func (ChaosTargetQuerySelector) ChaosTargetSelector ¶
func (s ChaosTargetQuerySelector) ChaosTargetSelector() BaseChaosTargetSelectorImpl
func (ChaosTargetQuerySelector) MarshalJSON ¶
func (s ChaosTargetQuerySelector) MarshalJSON() ([]byte, error)
func (*ChaosTargetQuerySelector) UnmarshalJSON ¶
func (s *ChaosTargetQuerySelector) UnmarshalJSON(bytes []byte) error
type ChaosTargetSelector ¶
type ChaosTargetSelector interface {
ChaosTargetSelector() BaseChaosTargetSelectorImpl
}
func UnmarshalChaosTargetSelectorImplementation ¶
func UnmarshalChaosTargetSelectorImplementation(input []byte) (ChaosTargetSelector, error)
type ChaosTargetSimpleFilter ¶
type ChaosTargetSimpleFilter struct { Parameters *ChaosTargetSimpleFilterParameters `json:"parameters,omitempty"` Type FilterType `json:"type"` }
func (ChaosTargetSimpleFilter) ChaosTargetFilter ¶
func (s ChaosTargetSimpleFilter) ChaosTargetFilter() BaseChaosTargetFilterImpl
func (ChaosTargetSimpleFilter) MarshalJSON ¶
func (s ChaosTargetSimpleFilter) MarshalJSON() ([]byte, error)
type ContinuousAction ¶
type ContinuousAction struct { Duration string `json:"duration"` Parameters []KeyValuePair `json:"parameters"` SelectorId string `json:"selectorId"` Name string `json:"name"` Type ExperimentActionType `json:"type"` }
func (ContinuousAction) ChaosExperimentAction ¶
func (s ContinuousAction) ChaosExperimentAction() BaseChaosExperimentActionImpl
func (ContinuousAction) MarshalJSON ¶
func (s ContinuousAction) MarshalJSON() ([]byte, error)
type DelayAction ¶
type DelayAction struct { Duration string `json:"duration"` Name string `json:"name"` Type ExperimentActionType `json:"type"` }
func (DelayAction) ChaosExperimentAction ¶
func (s DelayAction) ChaosExperimentAction() BaseChaosExperimentActionImpl
func (DelayAction) MarshalJSON ¶
func (s DelayAction) MarshalJSON() ([]byte, error)
type DeleteOperationResponse ¶
type DiscreteAction ¶
type DiscreteAction struct { Parameters []KeyValuePair `json:"parameters"` SelectorId string `json:"selectorId"` Name string `json:"name"` Type ExperimentActionType `json:"type"` }
func (DiscreteAction) ChaosExperimentAction ¶
func (s DiscreteAction) ChaosExperimentAction() BaseChaosExperimentActionImpl
func (DiscreteAction) MarshalJSON ¶
func (s DiscreteAction) MarshalJSON() ([]byte, error)
type Experiment ¶
type Experiment struct { Id *string `json:"id,omitempty"` Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties ExperimentProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ExperimentActionType ¶
type ExperimentActionType string
const ( ExperimentActionTypeContinuous ExperimentActionType = "continuous" ExperimentActionTypeDelay ExperimentActionType = "delay" ExperimentActionTypeDiscrete ExperimentActionType = "discrete" )
func (*ExperimentActionType) UnmarshalJSON ¶
func (s *ExperimentActionType) UnmarshalJSON(bytes []byte) error
type ExperimentId ¶
ExperimentId is a struct representing the Resource ID for a Experiment
func NewExperimentID ¶
func NewExperimentID(subscriptionId string, resourceGroupName string, experimentName string) ExperimentId
NewExperimentID returns a new ExperimentId struct
func ParseExperimentID ¶
func ParseExperimentID(input string) (*ExperimentId, error)
ParseExperimentID parses 'input' into a ExperimentId
func ParseExperimentIDInsensitively ¶
func ParseExperimentIDInsensitively(input string) (*ExperimentId, error)
ParseExperimentIDInsensitively parses 'input' case-insensitively into a ExperimentId note: this method should only be used for API response data and not user input
func (*ExperimentId) FromParseResult ¶
func (id *ExperimentId) FromParseResult(input resourceids.ParseResult) error
func (ExperimentId) Segments ¶
func (id ExperimentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Experiment ID
func (ExperimentId) String ¶
func (id ExperimentId) String() string
String returns a human-readable description of this Experiment ID
type ExperimentOperationPredicate ¶
func (ExperimentOperationPredicate) Matches ¶
func (p ExperimentOperationPredicate) Matches(input Experiment) bool
type ExperimentProperties ¶
type ExperimentProperties struct { ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Selectors []ChaosTargetSelector `json:"selectors"` Steps []ChaosExperimentStep `json:"steps"` }
func (*ExperimentProperties) UnmarshalJSON ¶
func (s *ExperimentProperties) UnmarshalJSON(bytes []byte) error
type ExperimentUpdate ¶
type ExperimentUpdate struct { Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ExperimentsClient ¶
type ExperimentsClient struct {
Client *resourcemanager.Client
}
func NewExperimentsClientWithBaseURI ¶
func NewExperimentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExperimentsClient, error)
func (ExperimentsClient) Cancel ¶
func (c ExperimentsClient) Cancel(ctx context.Context, id ExperimentId) (result CancelOperationResponse, err error)
Cancel ...
func (ExperimentsClient) CancelThenPoll ¶
func (c ExperimentsClient) CancelThenPoll(ctx context.Context, id ExperimentId) error
CancelThenPoll performs Cancel then polls until it's completed
func (ExperimentsClient) CreateOrUpdate ¶
func (c ExperimentsClient) CreateOrUpdate(ctx context.Context, id ExperimentId, input Experiment) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ExperimentsClient) CreateOrUpdateThenPoll ¶
func (c ExperimentsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExperimentId, input Experiment) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ExperimentsClient) Delete ¶
func (c ExperimentsClient) Delete(ctx context.Context, id ExperimentId) (result DeleteOperationResponse, err error)
Delete ...
func (ExperimentsClient) DeleteThenPoll ¶
func (c ExperimentsClient) DeleteThenPoll(ctx context.Context, id ExperimentId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ExperimentsClient) Get ¶
func (c ExperimentsClient) Get(ctx context.Context, id ExperimentId) (result GetOperationResponse, err error)
Get ...
func (ExperimentsClient) List ¶
func (c ExperimentsClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ExperimentsClient) ListAll ¶
func (c ExperimentsClient) ListAll(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (result ListAllOperationResponse, err error)
ListAll ...
func (ExperimentsClient) ListAllComplete ¶
func (c ExperimentsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (ListAllCompleteResult, error)
ListAllComplete retrieves all the results into a single object
func (ExperimentsClient) ListAllCompleteMatchingPredicate ¶
func (c ExperimentsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions, predicate ExperimentOperationPredicate) (result ListAllCompleteResult, err error)
ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ExperimentsClient) ListComplete ¶
func (c ExperimentsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ExperimentsClient) ListCompleteMatchingPredicate ¶
func (c ExperimentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions, predicate ExperimentOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ExperimentsClient) Start ¶
func (c ExperimentsClient) Start(ctx context.Context, id ExperimentId) (result StartOperationResponse, err error)
Start ...
func (ExperimentsClient) StartThenPoll ¶
func (c ExperimentsClient) StartThenPoll(ctx context.Context, id ExperimentId) error
StartThenPoll performs Start then polls until it's completed
func (ExperimentsClient) Update ¶
func (c ExperimentsClient) Update(ctx context.Context, id ExperimentId, input ExperimentUpdate) (result UpdateOperationResponse, err error)
Update ...
func (ExperimentsClient) UpdateThenPoll ¶
func (c ExperimentsClient) UpdateThenPoll(ctx context.Context, id ExperimentId, input ExperimentUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type FilterType ¶
type FilterType string
const (
FilterTypeSimple FilterType = "Simple"
)
func (*FilterType) UnmarshalJSON ¶
func (s *FilterType) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Experiment }
type KeyValuePair ¶
type ListAllCompleteResult ¶
type ListAllCompleteResult struct { LatestHttpResponse *http.Response Items []Experiment }
type ListAllCustomPager ¶
func (*ListAllCustomPager) NextPageLink ¶
func (p *ListAllCustomPager) NextPageLink() *odata.Link
type ListAllOperationOptions ¶
func DefaultListAllOperationOptions ¶
func DefaultListAllOperationOptions() ListAllOperationOptions
func (ListAllOperationOptions) ToHeaders ¶
func (o ListAllOperationOptions) ToHeaders() *client.Headers
func (ListAllOperationOptions) ToOData ¶
func (o ListAllOperationOptions) ToOData() *odata.Query
func (ListAllOperationOptions) ToQuery ¶
func (o ListAllOperationOptions) ToQuery() *client.QueryParams
type ListAllOperationResponse ¶
type ListAllOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Experiment }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []Experiment }
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Experiment }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type RawChaosExperimentActionImpl ¶
type RawChaosExperimentActionImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawChaosExperimentActionImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawChaosExperimentActionImpl) ChaosExperimentAction ¶
func (s RawChaosExperimentActionImpl) ChaosExperimentAction() BaseChaosExperimentActionImpl
type RawChaosTargetFilterImpl ¶
type RawChaosTargetFilterImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawChaosTargetFilterImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawChaosTargetFilterImpl) ChaosTargetFilter ¶
func (s RawChaosTargetFilterImpl) ChaosTargetFilter() BaseChaosTargetFilterImpl
type RawChaosTargetSelectorImpl ¶
type RawChaosTargetSelectorImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawChaosTargetSelectorImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawChaosTargetSelectorImpl) ChaosTargetSelector ¶
func (s RawChaosTargetSelectorImpl) ChaosTargetSelector() BaseChaosTargetSelectorImpl
type SelectorType ¶
type SelectorType string
const ( SelectorTypeList SelectorType = "List" SelectorTypeQuery SelectorType = "Query" )
func (*SelectorType) UnmarshalJSON ¶
func (s *SelectorType) UnmarshalJSON(bytes []byte) error
type StartOperationResponse ¶
type TargetReference ¶
type TargetReference struct { Id string `json:"id"` Type TargetReferenceType `json:"type"` }
type TargetReferenceType ¶
type TargetReferenceType string
const (
TargetReferenceTypeChaosTarget TargetReferenceType = "ChaosTarget"
)
func (*TargetReferenceType) UnmarshalJSON ¶
func (s *TargetReferenceType) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
Source Files
¶
- client.go
- constants.go
- id_experiment.go
- method_cancel.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_listall.go
- method_start.go
- method_update.go
- model_chaosexperimentaction.go
- model_chaosexperimentbranch.go
- model_chaosexperimentstep.go
- model_chaostargetfilter.go
- model_chaostargetlistselector.go
- model_chaostargetqueryselector.go
- model_chaostargetselector.go
- model_chaostargetsimplefilter.go
- model_chaostargetsimplefilterparameters.go
- model_continuousaction.go
- model_delayaction.go
- model_discreteaction.go
- model_experiment.go
- model_experimentproperties.go
- model_experimentupdate.go
- model_keyvaluepair.go
- model_targetreference.go
- predicates.go
- version.go