Documentation ¶
Index ¶
- func ConvertCaMapToMapType(stringMap map[string]string, originalState types.Map) (types.Map, error)
- func CreateRegistryConfigBuilder(ctx context.Context, state *RegistryConfig) (*cmv1.ClusterRegistryConfigBuilder, error)
- func PopulateRegistryConfigState(inputCluster *cmv1.Cluster, state *RegistryConfig) error
- func RegistryConfigDatasource() map[string]dsschemadsschema.Attribute
- func RegistryConfigResource() map[string]schema.Attribute
- func RegistryLocationResource() map[string]schema.Attribute
- func RegistryLocationResourceType() map[string]attr.Type
- func RegistrySourcesResource() map[string]schema.Attribute
- func UpdateRegistryConfigBuilder(ctx context.Context, state *RegistryConfig, plan *RegistryConfig) (*cmv1.ClusterRegistryConfigBuilder, error)
- type RegistryConfig
- type RegistryLocation
- type RegistrySources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCaMapToMapType ¶
func CreateRegistryConfigBuilder ¶
func CreateRegistryConfigBuilder(ctx context.Context, state *RegistryConfig) (*cmv1.ClusterRegistryConfigBuilder, error)
CreateRegistryConfigBuilder creates a ClusterRegistryConfigBuilder from a Terraform state
func PopulateRegistryConfigState ¶
func PopulateRegistryConfigState(inputCluster *cmv1.Cluster, state *RegistryConfig) error
PopulateRegistryConfigState takes a Cluster object from CS in input and fills a Terraform state with the data in it. Returns an error if there is a failure
func RegistryConfigDatasource ¶
func RegistryConfigDatasource() map[string]dsschemadsschema.Attribute
func RegistryConfigResource ¶
func RegistrySourcesResource ¶
func UpdateRegistryConfigBuilder ¶
func UpdateRegistryConfigBuilder(ctx context.Context, state *RegistryConfig, plan *RegistryConfig) (*cmv1.ClusterRegistryConfigBuilder, error)
UpdateRegistryConfigBuilder returns a ClusterRegistryConfigBuilder or an error starting from the state and a plan
Types ¶
type RegistryConfig ¶
type RegistryConfig struct { RegistrySources RegistrySources `tfsdk:"registry_sources"` AllowedRegistriesForImport []RegistryLocation `tfsdk:"allowed_registries_for_import"` AdditionalTrustedCa types.Map `tfsdk:"additional_trusted_ca"` PlatformAllowlistId types.String `tfsdk:"platform_allowlist_id"` }
type RegistryLocation ¶
Click to show internal directories.
Click to hide internal directories.