Documentation
¶
Overview ¶
Copyright (c) 2022-2025 Dell Inc, or its subsidiaries.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func CreatePolicy(ctx context.Context, client api.Client, name string, sourcePath string, ...) error
- func DeletePolicy(ctx context.Context, client api.Client, name string) error
- func DeleteTargetPolicy(ctx context.Context, client api.Client, id string) error
- func ResetPolicy(ctx context.Context, client api.Client, name string) error
- func ResolvePolicy(ctx context.Context, client api.Client, policy *ResolvePolicyReq) error
- func UpdatePolicy(ctx context.Context, client api.Client, policy *Policy) error
- type FailoverFailbackState
- type Job
- type JobAction
- type JobRequest
- type JobState
- type Jobs
- type Policies
- type Policy
- type Report
- type Reports
- type ResolvePolicyReq
- type RunningJobAction
- type TargetPolicies
- type TargetPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePolicy ¶
func DeleteTargetPolicy ¶
func ResolvePolicy ¶ added in v1.11.1
Types ¶
type FailoverFailbackState ¶ added in v1.18.0
type FailoverFailbackState string
const ( WritesDisabled FailoverFailbackState = "writes_disabled" EnablingWrites FailoverFailbackState = "enabling_writes" WritesEnabled FailoverFailbackState = "writes_enabled" DisablingWrites FailoverFailbackState = "disabling_writes" CreatingResyncPolicy FailoverFailbackState = "creating_resync_policy" ResyncPolicyCreated FailoverFailbackState = "resync_policy_created" )
type Job ¶
type Job struct { Action RunningJobAction `json:"policy_action,omitempty"` ID string `json:"id,omitempty"` // ID or Name of policy }
func GetJobsByPolicyName ¶
func StartSyncIQJob ¶
type JobRequest ¶
type JobState ¶ added in v1.18.0
type JobState string
const ( SCHEDULED JobState = "scheduled" RUNNING JobState = "running" PAUSED JobState = "paused" FINISHED JobState = "finished" FAILED JobState = "failed" CANCELED JobState = "canceled" NeedsAttention JobState = "needs_attention" SKIPPED JobState = "skipped" PENDING JobState = "pending" UNKNOWN JobState = "unknown" )
type Policy ¶
type Policy struct { Action string `json:"action,omitempty"` ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Enabled bool `json:"enabled"` TargetPath string `json:"target_path,omitempty"` SourcePath string `json:"source_root_path,omitempty"` TargetHost string `json:"target_host,omitempty"` TargetCert string `json:"target_certificate_id,omitempty"` JobDelay int `json:"job_delay,omitempty"` Schedule string `json:"schedule"` LastJobState JobState `json:"last_job_state,omitempty"` }
Policy contains the CloudIQ policy info.
type Report ¶
type ResolvePolicyReq ¶ added in v1.11.1
type RunningJobAction ¶ added in v1.18.0
type RunningJobAction string
const ( SYNC RunningJobAction = "sync" COPY RunningJobAction = "copy" )
type TargetPolicies ¶
type TargetPolicies struct {
Policy []TargetPolicy `json:"policies,omitempty"`
}
type TargetPolicy ¶
type TargetPolicy struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` SourceClusterGUID string `json:"source_cluster_guid,omitempty"` LastJobState JobState `json:"last_job_state,omitempty"` TargetPath string `json:"target_path,omitempty"` SourceHost string `json:"source_host,omitempty"` LastSourceCoordinatorIP string `json:"last_source_coordinator_ip,omitempty"` FailoverFailbackState FailoverFailbackState `json:"failover_failback_state,omitempty"` }
func GetTargetPolicyByName ¶
Click to show internal directories.
Click to hide internal directories.