Documentation ¶
Overview ¶
Copyright (c) 2021 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2021 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func New() resource.Resource
- func NewDataSource() datasource.DataSource
- type ClusterRosaClassicDatasource
- func (r *ClusterRosaClassicDatasource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *ClusterRosaClassicDatasource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *ClusterRosaClassicDatasource) Read(ctx context.Context, request datasource.ReadRequest, ...)
- func (r *ClusterRosaClassicDatasource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ClusterRosaClassicResource
- func (r *ClusterRosaClassicResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ClusterRosaClassicResource) Create(ctx context.Context, request resource.CreateRequest, ...)
- func (r *ClusterRosaClassicResource) Delete(ctx context.Context, request resource.DeleteRequest, ...)
- func (r *ClusterRosaClassicResource) ImportState(ctx context.Context, request resource.ImportStateRequest, ...)
- func (r *ClusterRosaClassicResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ClusterRosaClassicResource) Read(ctx context.Context, request resource.ReadRequest, ...)
- func (r *ClusterRosaClassicResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ClusterRosaClassicResource) Update(ctx context.Context, request resource.UpdateRequest, ...)
- type ClusterRosaClassicState
Constants ¶
const (
// FIXME: This should be coming from the API or only validate at the API level
MinVersion = "4.10.0"
)
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
Types ¶
type ClusterRosaClassicDatasource ¶
type ClusterRosaClassicDatasource struct {
// contains filtered or unexported fields
}
func (*ClusterRosaClassicDatasource) Configure ¶
func (r *ClusterRosaClassicDatasource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ClusterRosaClassicDatasource) Metadata ¶
func (r *ClusterRosaClassicDatasource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ClusterRosaClassicDatasource) Read ¶
func (r *ClusterRosaClassicDatasource) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse)
func (*ClusterRosaClassicDatasource) Schema ¶
func (r *ClusterRosaClassicDatasource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ClusterRosaClassicResource ¶
type ClusterRosaClassicResource struct {
rosaTypes.BaseCluster
}
func (*ClusterRosaClassicResource) Configure ¶
func (r *ClusterRosaClassicResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ClusterRosaClassicResource) Create ¶
func (r *ClusterRosaClassicResource) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)
func (*ClusterRosaClassicResource) Delete ¶
func (r *ClusterRosaClassicResource) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse)
func (*ClusterRosaClassicResource) ImportState ¶
func (r *ClusterRosaClassicResource) ImportState(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse)
func (*ClusterRosaClassicResource) Metadata ¶
func (r *ClusterRosaClassicResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ClusterRosaClassicResource) Read ¶
func (r *ClusterRosaClassicResource) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)
func (*ClusterRosaClassicResource) Schema ¶
func (r *ClusterRosaClassicResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ClusterRosaClassicResource) Update ¶
func (r *ClusterRosaClassicResource) Update(ctx context.Context, request resource.UpdateRequest, response *resource.UpdateResponse)
type ClusterRosaClassicState ¶
type ClusterRosaClassicState struct { APIURL types.String `tfsdk:"api_url"` AWSAccountID types.String `tfsdk:"aws_account_id"` AWSSubnetIDs types.List `tfsdk:"aws_subnet_ids"` AWSAdditionalComputeSecurityGroupIds types.List `tfsdk:"aws_additional_compute_security_group_ids"` AWSAdditionalInfraSecurityGroupIds types.List `tfsdk:"aws_additional_infra_security_group_ids"` AWSAdditionalControlPlaneSecurityGroupIds types.List `tfsdk:"aws_additional_control_plane_security_group_ids"` AWSPrivateLink types.Bool `tfsdk:"aws_private_link"` Private types.Bool `tfsdk:"private"` Sts *sts.ClassicSts `tfsdk:"sts"` CCSEnabled types.Bool `tfsdk:"ccs_enabled"` EtcdEncryption types.Bool `tfsdk:"etcd_encryption"` AutoScalingEnabled types.Bool `tfsdk:"autoscaling_enabled"` MinReplicas types.Int64 `tfsdk:"min_replicas"` MaxReplicas types.Int64 `tfsdk:"max_replicas"` ChannelGroup types.String `tfsdk:"channel_group"` CloudRegion types.String `tfsdk:"cloud_region"` ComputeMachineType types.String `tfsdk:"compute_machine_type"` WorkerDiskSize types.Int64 `tfsdk:"worker_disk_size"` DefaultMPLabels types.Map `tfsdk:"default_mp_labels"` Replicas types.Int64 `tfsdk:"replicas"` ConsoleURL types.String `tfsdk:"console_url"` Domain types.String `tfsdk:"domain"` InfraID types.String `tfsdk:"infra_id"` HostPrefix types.Int64 `tfsdk:"host_prefix"` ID types.String `tfsdk:"id"` FIPS types.Bool `tfsdk:"fips"` KMSKeyArn types.String `tfsdk:"kms_key_arn"` ExternalID types.String `tfsdk:"external_id"` MachineCIDR types.String `tfsdk:"machine_cidr"` MultiAZ types.Bool `tfsdk:"multi_az"` DisableWorkloadMonitoring types.Bool `tfsdk:"disable_workload_monitoring"` DisableSCPChecks types.Bool `tfsdk:"disable_scp_checks"` AvailabilityZones types.List `tfsdk:"availability_zones"` Name types.String `tfsdk:"name"` DomainPrefix types.String `tfsdk:"domain_prefix"` PodCIDR types.String `tfsdk:"pod_cidr"` Properties types.Map `tfsdk:"properties"` OCMProperties types.Map `tfsdk:"ocm_properties"` Tags types.Map `tfsdk:"tags"` ServiceCIDR types.String `tfsdk:"service_cidr"` Proxy *proxy.Proxy `tfsdk:"proxy"` State types.String `tfsdk:"state"` Version types.String `tfsdk:"version"` CurrentVersion types.String `tfsdk:"current_version"` Ec2MetadataHttpTokens types.String `tfsdk:"ec2_metadata_http_tokens"` CreateAdminUser types.Bool `tfsdk:"create_admin_user"` AdminCredentials types.Object `tfsdk:"admin_credentials"` PrivateHostedZone *rosaTypes.PrivateHostedZone `tfsdk:"private_hosted_zone"` BaseDNSDomain types.String `tfsdk:"base_dns_domain"` UpgradeAcksFor types.String `tfsdk:"upgrade_acknowledgements_for"` DisableWaitingInDestroy types.Bool `tfsdk:"disable_waiting_in_destroy"` DestroyTimeout types.Int64 `tfsdk:"destroy_timeout"` WaitForCreateComplete types.Bool `tfsdk:"wait_for_create_complete"` MaxClusterWaitTimeoutInMinutes types.Int64 `tfsdk:"max_cluster_wait_timeout_in_minutes"` }