Documentation ¶
Index ¶
- Constants
- Variables
- func ConstructSpecForClusterGroupScope(d *schema.ResourceData) (...)
- func ConstructSpecForClusterScope(d *schema.ResourceData) (spec *secretmodel.VmwareTanzuManageV1alpha1ClusterNamespaceSecretSpec)
- func FlattenSpecForClusterGroupScope(...) (data []interface{})
- func FlattenSpecForClusterScope(spec *secretmodel.VmwareTanzuManageV1alpha1ClusterNamespaceSecretSpec, ...) (data []interface{})
- func GetEncodedOpaqueData(data map[string]string) map[string]strfmt.Base64
- func GetEncodedSpecData(serverURL, username, password string) (strfmt.Base64, error)
- func HasSpecChanged(d *schema.ResourceData) bool
- func ValidateInput(ctx context.Context, diff *schema.ResourceDiff, i interface{}) error
Constants ¶
View Source
const ( OpaqueKey = "opaque" DockerConfigjsonKey = "docker_config_json" DockerconfigKey = ".dockerconfigjson" ImageRegistryURLKey = "image_registry_url" UsernameKey = "username" PasswordKey = "password" SpecKey = "spec" )
Variables ¶
View Source
var SecretSpec = &schema.Schema{ Type: schema.TypeList, Description: "Spec for the kubernetes secret", Required: true, MaxItems: 1, MinItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ OpaqueKey: { Type: schema.TypeMap, Description: "SecretType definition - SECRET_TYPE_OPAQUE, Kubernetes secrets type.", Optional: true, Sensitive: true, Elem: &schema.Schema{Type: schema.TypeString}, }, DockerConfigjsonKey: { Type: schema.TypeList, Optional: true, Description: "SecretType definition - SECRET_TYPE_DOCKERCONFIGJSON, Kubernetes secrets type.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ UsernameKey: { Type: schema.TypeString, Description: "SecretType definition - Username of the registry.", Required: true, ValidateFunc: validation.All( validation.StringLenBetween(1, 126), validation.StringIsNotEmpty, validation.StringIsNotWhiteSpace, ), }, PasswordKey: { Type: schema.TypeString, Description: "SecretType definition - Password of the registry.", Required: true, Sensitive: true, ValidateFunc: validation.All( validation.StringLenBetween(1, 126), validation.StringIsNotEmpty, validation.StringIsNotWhiteSpace, ), }, ImageRegistryURLKey: { Type: schema.TypeString, Description: "SecretType definition - Server URL of the registry.", Required: true, ValidateFunc: validation.All( validation.StringLenBetween(1, 126), validation.StringIsNotEmpty, validation.StringIsNotWhiteSpace, ), }, }, }, }, }, }, }
Functions ¶
func ConstructSpecForClusterGroupScope ¶ added in v1.3.0
func ConstructSpecForClusterGroupScope(d *schema.ResourceData) (spec *secertclustergroupmodel.VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretSpec)
func ConstructSpecForClusterScope ¶ added in v1.3.0
func ConstructSpecForClusterScope(d *schema.ResourceData) (spec *secretmodel.VmwareTanzuManageV1alpha1ClusterNamespaceSecretSpec)
func FlattenSpecForClusterGroupScope ¶ added in v1.3.0
func FlattenSpecForClusterGroupScope(spec *secertclustergroupmodel.VmwareTanzuManageV1alpha1ClustergroupNamespaceSecretSpec, password string, opaqueData map[string]interface{}) (data []interface{})
func FlattenSpecForClusterScope ¶ added in v1.3.0
func FlattenSpecForClusterScope(spec *secretmodel.VmwareTanzuManageV1alpha1ClusterNamespaceSecretSpec, pass string, opaqueData map[string]interface{}) (data []interface{})
func GetEncodedOpaqueData ¶ added in v1.4.4
func GetEncodedSpecData ¶ added in v1.3.0
func HasSpecChanged ¶ added in v1.3.0
func HasSpecChanged(d *schema.ResourceData) bool
func ValidateInput ¶ added in v1.4.4
func ValidateInput(ctx context.Context, diff *schema.ResourceDiff, i interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.