Skip to content

RepoSyncRuleProps

Properties for defining a RepoSyncRule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cr-reposyncrule

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcr"
&alicloudroscdkcr.RepoSyncRuleProps {
    InstanceId: interface{},
    NamespaceName: interface{},
    SyncRuleName: interface{},
    SyncScope: interface{},
    SyncTrigger: interface{},
    TargetInstanceId: interface{},
    TargetNamespaceName: interface{},
    TargetRegionId: interface{},
    RepoName: interface{},
    RepoNameFilter: interface{},
    TagFilter: interface{},
    TargetRepoName: interface{},
    TargetUserId: interface{},
}

Properties

Name Type Description
InstanceId interface{} Property instanceId: The ID of the CR instance.
NamespaceName interface{} Property namespaceName: The name of the CR namespace.
SyncRuleName interface{} Property syncRuleName: The name of the image sync rule.
SyncScope interface{} Property syncScope: The synchronization scope.
SyncTrigger interface{} Property syncTrigger: The mode of triggering the synchronization rule.
TargetInstanceId interface{} Property targetInstanceId: The ID of the destination instance.
TargetNamespaceName interface{} Property targetNamespaceName: The name of the destination namespace.
TargetRegionId interface{} Property targetRegionId: The ID of the destination region.
RepoName interface{} Property repoName: The name of the repository.
RepoNameFilter interface{} Property repoNameFilter: The regular expression that is used to filter repositories.
TagFilter interface{} Property tagFilter: The tag filter.
TargetRepoName interface{} Property targetRepoName: The name of the destination image repository.
TargetUserId interface{} Property targetUserId: The user ID (UID) of the account to which the destination instance belongs.

InstanceIdRequired

InstanceId interface{}
  • Type: interface{}

Property instanceId: The ID of the CR instance.


NamespaceNameRequired

NamespaceName interface{}
  • Type: interface{}

Property namespaceName: The name of the CR namespace.


SyncRuleNameRequired

SyncRuleName interface{}
  • Type: interface{}

Property syncRuleName: The name of the image sync rule.


SyncScopeRequired

SyncScope interface{}
  • Type: interface{}

Property syncScope: The synchronization scope.

Valid values: REPO, NAMESPACE


SyncTriggerRequired

SyncTrigger interface{}
  • Type: interface{}

Property syncTrigger: The mode of triggering the synchronization rule.

Valid values: INITIATIVE, PASSIVE


TargetInstanceIdRequired

TargetInstanceId interface{}
  • Type: interface{}

Property targetInstanceId: The ID of the destination instance.


TargetNamespaceNameRequired

TargetNamespaceName interface{}
  • Type: interface{}

Property targetNamespaceName: The name of the destination namespace.


TargetRegionIdRequired

TargetRegionId interface{}
  • Type: interface{}

Property targetRegionId: The ID of the destination region.


RepoNameOptional

RepoName interface{}
  • Type: interface{}

Property repoName: The name of the repository.

This parameter is required when SyncScope is REPO.


RepoNameFilterOptional

RepoNameFilter interface{}
  • Type: interface{}

Property repoNameFilter: The regular expression that is used to filter repositories.


TagFilterOptional

TagFilter interface{}
  • Type: interface{}

Property tagFilter: The tag filter.

Default value: .*


TargetRepoNameOptional

TargetRepoName interface{}
  • Type: interface{}

Property targetRepoName: The name of the destination image repository.

This parameter is optional.


TargetUserIdOptional

TargetUserId interface{}
  • Type: interface{}

Property targetUserId: The user ID (UID) of the account to which the destination instance belongs.