Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct { ID int64 `json:"id"` Name string `json:"name"` Description string `json:"description"` Creator string `json:"creator"` SrcRegistry *model.Registry `json:"src_registry"` DestRegistry *model.Registry `json:"dest_registry"` DestNamespace string `json:"dest_namespace"` DestNamespaceReplaceCount int8 `json:"dest_namespace_replace_count"` Filters []*model.Filter `json:"filters"` Trigger *model.Trigger `json:"trigger"` ReplicateDeletion bool `json:"deletion"` Override bool `json:"override"` Enabled bool `json:"enabled"` CreationTime time.Time `json:"creation_time"` UpdateTime time.Time `json:"update_time"` Speed int32 `json:"speed"` CopyByChunk bool `json:"copy_by_chunk"` }
Policy defines the structure of a replication policy
func (*Policy) From ¶
func (p *Policy) From(policy *replicationmodel.Policy) error
From converts the pkg model into the Policy
func (*Policy) IsScheduledTrigger ¶
IsScheduledTrigger returns true when the policy is scheduled trigger and enabled
Click to show internal directories.
Click to hide internal directories.