Skip to content

ImageCacheProps

Properties for defining a ImageCache.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-eci-imagecache

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkeci"
&alicloudroscdkeci.ImageCacheProps {
    Image: interface{},
    ImageCacheName: interface{},
    SecurityGroupId: interface{},
    VSwitchId: interface{},
    AcrRegistryInfo: interface{},
    AutoMatchImageCache: interface{},
    EipInstanceId: interface{},
    ImageCacheSize: interface{},
    ImageRegistryCredential: interface{},
    ResourceGroupId: interface{},
    RetentionDays: interface{},
    ZoneId: interface{},
}

Properties

Name Type Description
Image interface{} Property image: The container images used to create the image cache.
ImageCacheName interface{} Property imageCacheName: Image cache name.
SecurityGroupId interface{} Property securityGroupId: Security group ID.
VSwitchId interface{} Property vSwitchId: The ID of the vSwitch.
AcrRegistryInfo interface{} Property acrRegistryInfo: The information about the ACR instance.
AutoMatchImageCache interface{} Property autoMatchImageCache: Specifies whether to enable reuse of image cache layers.
EipInstanceId interface{} Property eipInstanceId: If you want to pull the public network image, you need to configure the public network ip or configure the switch NAT gateway.
ImageCacheSize interface{} Property imageCacheSize: The size of the image cache.
ImageRegistryCredential interface{} Property imageRegistryCredential: The credentials of the image repository.
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
RetentionDays interface{} Property retentionDays: The retention period of the image cache.
ZoneId interface{} Property zoneId: The zone ID of the image cache.

ImageRequired

Image interface{}
  • Type: interface{}

Property image: The container images used to create the image cache.


ImageCacheNameRequired

ImageCacheName interface{}
  • Type: interface{}

Property imageCacheName: Image cache name.


SecurityGroupIdRequired

SecurityGroupId interface{}
  • Type: interface{}

Property securityGroupId: Security group ID.


VSwitchIdRequired

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: The ID of the vSwitch.

You can specify up to 10 vSwitch IDs, separated by commas (,). For example, vsw-*,vsw-*.


AcrRegistryInfoOptional

AcrRegistryInfo interface{}
  • Type: interface{}

Property acrRegistryInfo: The information about the ACR instance.


AutoMatchImageCacheOptional

AutoMatchImageCache interface{}
  • Type: interface{}

Property autoMatchImageCache: Specifies whether to enable reuse of image cache layers.

If you enable this feature, and the image cache that you want to createand an existing image cache contain duplicate image layers, the system reuses the duplicate image layers to create the new image cache. This accelerates the creation of the image cache. Valid values: true: enables reuse of image cache layers. false: disables reuse of image cache layers. Default value: false.


EipInstanceIdOptional

EipInstanceId interface{}
  • Type: interface{}

Property eipInstanceId: If you want to pull the public network image, you need to configure the public network ip or configure the switch NAT gateway.


ImageCacheSizeOptional

ImageCacheSize interface{}
  • Type: interface{}

Property imageCacheSize: The size of the image cache.

Unit: GiB. Default value: 20.


ImageRegistryCredentialOptional

ImageRegistryCredential interface{}
  • Type: interface{}

Property imageRegistryCredential: The credentials of the image repository.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


RetentionDaysOptional

RetentionDays interface{}
  • Type: interface{}

Property retentionDays: The retention period of the image cache.

Unit: days. When the retention period ends, the image cache expires and is deleted. By default, image caches never expire. Note: The image caches that fail to be created are only retained for one day.


ZoneIdOptional

ZoneId interface{}
  • Type: interface{}

Property zoneId: The zone ID of the image cache.