provider

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

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

View Source
const (
	// Policy IDs from type operator roles
	CloudCred       = "openshift_cloud_credential_operator_cloud_credential_operator_iam_ro_creds_policy"
	CloudNetwork    = "openshift_cloud_network_config_controller_cloud_credentials_policy"
	ClusterCSI      = "openshift_cluster_csi_drivers_ebs_cloud_credentials_policy"
	ImageRegistry   = "openshift_image_registry_installer_cloud_credentials_policy"
	IngressOperator = "openshift_ingress_operator_cloud_credentials_policy"
	MachineAPI      = "openshift_machine_api_aws_cloud_credentials_policy"

	// Policy IDs from type account roles
	Installer            = "sts_installer_permission_policy"
	Support              = "sts_support_permission_policy"
	InstanceWorker       = "sts_instance_worker_permission_policy"
	InstanceControlPlane = "sts_instance_controlplane_permission_policy"
)
View Source
const (
	DefaultAccountRolePrefix = "ManagedOpenShift"
)
View Source
const (
	MinVersion = "4.10.0"
)

Variables

View Source
var OCMProperties = map[string]string{
	// contains filtered or unexported fields
}

Functions

func EnumValueValidator

func EnumValueValidator(allowedList []string) []tfsdk.AttributeValidator

func New

func New() tfsdk.Provider

New creates the provider.

func ValueCannotBeChangedModifier

func ValueCannotBeChangedModifier() tfsdk.AttributePlanModifier

Types

type AccountRolePolicies

type AccountRolePolicies struct {
	Installer            types.String `tfsdk:"sts_installer_permission_policy"`
	Support              types.String `tfsdk:"sts_support_permission_policy"`
	InstanceWorker       types.String `tfsdk:"sts_instance_worker_permission_policy"`
	InstanceControlPlane types.String `tfsdk:"sts_instance_controlplane_permission_policy"`
}

type AdminCredentials added in v1.2.0

type AdminCredentials struct {
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
}

type CloudProviderState

type CloudProviderState struct {
	ID          string `tfsdk:"id"`
	Name        string `tfsdk:"name"`
	DisplayName string `tfsdk:"display_name"`
}

type CloudProvidersDataSource

type CloudProvidersDataSource struct {
	// contains filtered or unexported fields
}

func (*CloudProvidersDataSource) Read

type CloudProvidersDataSourceType

type CloudProvidersDataSourceType struct {
}

func (*CloudProvidersDataSourceType) GetSchema

func (t *CloudProvidersDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*CloudProvidersDataSourceType) NewDataSource

func (t *CloudProvidersDataSourceType) NewDataSource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)

type CloudProvidersState

type CloudProvidersState struct {
	Search types.String          `tfsdk:"search"`
	Order  types.String          `tfsdk:"order"`
	Item   *CloudProviderState   `tfsdk:"item"`
	Items  []*CloudProviderState `tfsdk:"items"`
}

type ClusterResource

type ClusterResource struct {
	// contains filtered or unexported fields
}

func (*ClusterResource) Create

func (*ClusterResource) Delete

func (*ClusterResource) ImportState

func (*ClusterResource) Read

func (*ClusterResource) Update

type ClusterResourceType

type ClusterResourceType struct {
}

func (*ClusterResourceType) GetSchema

func (t *ClusterResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*ClusterResourceType) NewResource

func (t *ClusterResourceType) NewResource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)

type ClusterRosaClassicResource

type ClusterRosaClassicResource struct {
	// contains filtered or unexported fields
}

func (*ClusterRosaClassicResource) Create

func (*ClusterRosaClassicResource) Delete

func (*ClusterRosaClassicResource) ImportState

func (*ClusterRosaClassicResource) Read

func (*ClusterRosaClassicResource) Update

type ClusterRosaClassicResourceType

type ClusterRosaClassicResourceType struct {
}

func (*ClusterRosaClassicResourceType) GetSchema

func (t *ClusterRosaClassicResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*ClusterRosaClassicResourceType) NewResource

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"`
	AWSPrivateLink            types.Bool        `tfsdk:"aws_private_link"`
	Sts                       *Sts              `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"`
	DefaultMPLabels           types.Map         `tfsdk:"default_mp_labels"`
	Replicas                  types.Int64       `tfsdk:"replicas"`
	ConsoleURL                types.String      `tfsdk:"console_url"`
	Domain                    types.String      `tfsdk:"domain"`
	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"`
	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            `tfsdk:"proxy"`
	State                     types.String      `tfsdk:"state"`
	Version                   types.String      `tfsdk:"version"`
	CurrentVersion            types.String      `tfsdk:"current_version"`
	DisableWaitingInDestroy   types.Bool        `tfsdk:"disable_waiting_in_destroy"`
	DestroyTimeout            types.Int64       `tfsdk:"destroy_timeout"`
	Ec2MetadataHttpTokens     types.String      `tfsdk:"ec2_metadata_http_tokens"`
	UpgradeAcksFor            types.String      `tfsdk:"upgrade_acknowledgements_for"`
	AdminCredentials          *AdminCredentials `tfsdk:"admin_credentials"`
}

type ClusterState

type ClusterState struct {
	APIURL             types.String `tfsdk:"api_url"`
	AWSAccessKeyID     types.String `tfsdk:"aws_access_key_id"`
	AWSAccountID       types.String `tfsdk:"aws_account_id"`
	AWSSecretAccessKey types.String `tfsdk:"aws_secret_access_key"`
	AWSSubnetIDs       types.List   `tfsdk:"aws_subnet_ids"`
	AWSPrivateLink     types.Bool   `tfsdk:"aws_private_link"`
	CCSEnabled         types.Bool   `tfsdk:"ccs_enabled"`
	CloudProvider      types.String `tfsdk:"cloud_provider"`
	CloudRegion        types.String `tfsdk:"cloud_region"`
	ComputeMachineType types.String `tfsdk:"compute_machine_type"`
	ComputeNodes       types.Int64  `tfsdk:"compute_nodes"`
	ConsoleURL         types.String `tfsdk:"console_url"`
	HostPrefix         types.Int64  `tfsdk:"host_prefix"`
	ID                 types.String `tfsdk:"id"`
	Product            types.String `tfsdk:"product"`
	MachineCIDR        types.String `tfsdk:"machine_cidr"`
	MultiAZ            types.Bool   `tfsdk:"multi_az"`
	AvailabilityZones  types.List   `tfsdk:"availability_zones"`
	Name               types.String `tfsdk:"name"`
	PodCIDR            types.String `tfsdk:"pod_cidr"`
	Properties         types.Map    `tfsdk:"properties"`
	ServiceCIDR        types.String `tfsdk:"service_cidr"`
	Proxy              *Proxy       `tfsdk:"proxy"`
	State              types.String `tfsdk:"state"`
	Version            types.String `tfsdk:"version"`
	Wait               types.Bool   `tfsdk:"wait"`
}

type ClusterWaiterResource

type ClusterWaiterResource struct {
	// contains filtered or unexported fields
}

func (*ClusterWaiterResource) Create

func (*ClusterWaiterResource) Delete

func (*ClusterWaiterResource) ImportState

func (*ClusterWaiterResource) Read

func (*ClusterWaiterResource) Update

type ClusterWaiterResourceType

type ClusterWaiterResourceType struct {
}

func (*ClusterWaiterResourceType) GetSchema

func (t *ClusterWaiterResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*ClusterWaiterResourceType) NewResource

func (t *ClusterWaiterResourceType) NewResource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)

type ClusterWaiterState

type ClusterWaiterState struct {
	Cluster types.String `tfsdk:"cluster"`
	Ready   types.Bool   `tfsdk:"ready"`
	Timeout types.Int64  `tfsdk:"timeout"`
}

type Config

type Config struct {
	URL          types.String `tfsdk:"url"`
	TokenURL     types.String `tfsdk:"token_url"`
	User         types.String `tfsdk:"user"`
	Password     types.String `tfsdk:"password"`
	Token        types.String `tfsdk:"token"`
	ClientID     types.String `tfsdk:"client_id"`
	ClientSecret types.String `tfsdk:"client_secret"`
	TrustedCAs   types.String `tfsdk:"trusted_cas"`
	Insecure     types.Bool   `tfsdk:"insecure"`
}

Config contains the configuration of the provider.

type DefaultHttpClient

type DefaultHttpClient struct {
}

func (DefaultHttpClient) Get

func (c DefaultHttpClient) Get(url string) (resp *http.Response, err error)

type GroupMembershipResource

type GroupMembershipResource struct {
	// contains filtered or unexported fields
}

func (*GroupMembershipResource) Create

func (*GroupMembershipResource) Delete

func (*GroupMembershipResource) ImportState

func (*GroupMembershipResource) Read

func (*GroupMembershipResource) Update

type GroupMembershipResourceType

type GroupMembershipResourceType struct {
}

func (*GroupMembershipResourceType) GetSchema

func (t *GroupMembershipResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*GroupMembershipResourceType) NewResource

func (t *GroupMembershipResourceType) NewResource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)

type GroupMembershipState

type GroupMembershipState struct {
	Cluster types.String `tfsdk:"cluster"`
	Group   types.String `tfsdk:"group"`
	ID      types.String `tfsdk:"id"`
	User    types.String `tfsdk:"user"`
}

type GroupState

type GroupState struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

type GroupsDataSource

type GroupsDataSource struct {
	// contains filtered or unexported fields
}

func (*GroupsDataSource) Read

type GroupsDataSourceType

type GroupsDataSourceType struct {
}

func (*GroupsDataSourceType) GetSchema

func (t *GroupsDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*GroupsDataSourceType) NewDataSource

func (t *GroupsDataSourceType) NewDataSource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)

type GroupsState

type GroupsState struct {
	Cluster types.String  `tfsdk:"cluster"`
	Items   []*GroupState `tfsdk:"items"`
}

type HttpClient

type HttpClient interface {
	Get(url string) (resp *http.Response, err error)
}

type IdentityProviderResource

type IdentityProviderResource struct {
	// contains filtered or unexported fields
}

func (*IdentityProviderResource) Create

func (*IdentityProviderResource) Delete

func (*IdentityProviderResource) ImportState

func (*IdentityProviderResource) Read

func (*IdentityProviderResource) Update

type IdentityProviderResourceType

type IdentityProviderResourceType struct {
}

func (*IdentityProviderResourceType) GetSchema

func (t *IdentityProviderResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*IdentityProviderResourceType) NewResource

func (t *IdentityProviderResourceType) NewResource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)

type IdentityProviderState

type IdentityProviderState struct {
	Cluster       types.String                   `tfsdk:"cluster"`
	ID            types.String                   `tfsdk:"id"`
	Name          types.String                   `tfsdk:"name"`
	MappingMethod types.String                   `tfsdk:"mapping_method"`
	HTPasswd      *idps.HTPasswdIdentityProvider `tfsdk:"htpasswd"`
	Gitlab        *idps.GitlabIdentityProvider   `tfsdk:"gitlab"`
	Github        *idps.GithubIdentityProvider   `tfsdk:"github"`
	Google        *idps.GoogleIdentityProvider   `tfsdk:"google"`
	LDAP          *idps.LDAPIdentityProvider     `tfsdk:"ldap"`
	OpenID        *idps.OpenIDIdentityProvider   `tfsdk:"openid"`
}

type InstanceIAMRole

type InstanceIAMRole struct {
	MasterRoleARN types.String `tfsdk:"master_role_arn"`
	WorkerRoleARN types.String `tfsdk:"worker_role_arn"`
}

type MachinePoolResource

type MachinePoolResource struct {
	// contains filtered or unexported fields
}

func (*MachinePoolResource) Create

func (*MachinePoolResource) Delete

func (*MachinePoolResource) ImportState

func (*MachinePoolResource) Read

func (*MachinePoolResource) Update

type MachinePoolResourceType

type MachinePoolResourceType struct {
}

func (*MachinePoolResourceType) GetSchema

func (t *MachinePoolResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*MachinePoolResourceType) NewResource

func (t *MachinePoolResourceType) NewResource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)

type MachinePoolState

type MachinePoolState struct {
	Cluster               types.String  `tfsdk:"cluster"`
	ID                    types.String  `tfsdk:"id"`
	MachineType           types.String  `tfsdk:"machine_type"`
	Name                  types.String  `tfsdk:"name"`
	Replicas              types.Int64   `tfsdk:"replicas"`
	UseSpotInstances      types.Bool    `tfsdk:"use_spot_instances"`
	MaxSpotPrice          types.Float64 `tfsdk:"max_spot_price"`
	AutoScalingEnabled    types.Bool    `tfsdk:"autoscaling_enabled"`
	MinReplicas           types.Int64   `tfsdk:"min_replicas"`
	MaxReplicas           types.Int64   `tfsdk:"max_replicas"`
	Taints                []Taints      `tfsdk:"taints"`
	Labels                types.Map     `tfsdk:"labels"`
	MultiAvailabilityZone types.Bool    `tfsdk:"multi_availability_zone"`
	AvailabilityZone      types.String  `tfsdk:"availability_zone"`
	SubnetID              types.String  `tfsdk:"subnet_id"`
}

type MachineTypeState

type MachineTypeState struct {
	CloudProvider string `tfsdk:"cloud_provider"`
	ID            string `tfsdk:"id"`
	Name          string `tfsdk:"name"`
	CPU           int64  `tfsdk:"cpu"`
	RAM           int64  `tfsdk:"ram"`
}

type MachineTypesDataSource

type MachineTypesDataSource struct {
	// contains filtered or unexported fields
}

func (*MachineTypesDataSource) Read

type MachineTypesDataSourceType

type MachineTypesDataSourceType struct {
}

func (*MachineTypesDataSourceType) GetSchema

func (t *MachineTypesDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*MachineTypesDataSourceType) NewDataSource

func (t *MachineTypesDataSourceType) NewDataSource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)

type MachineTypesState

type MachineTypesState struct {
	Items []*MachineTypeState `tfsdk:"items"`
}

type OcmPoliciesDataSource

type OcmPoliciesDataSource struct {
	// contains filtered or unexported fields
}

func (*OcmPoliciesDataSource) Read

type OcmPoliciesDataSourceType

type OcmPoliciesDataSourceType struct {
}

func (*OcmPoliciesDataSourceType) GetSchema

func (t *OcmPoliciesDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*OcmPoliciesDataSourceType) NewDataSource

func (t *OcmPoliciesDataSourceType) NewDataSource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)

type OcmPoliciesState

type OcmPoliciesState struct {
	OperatorRolePolicies *OperatorRolePolicies `tfsdk:"operator_role_policies"`
	AccountRolePolicies  *AccountRolePolicies  `tfsdk:"account_role_policies"`
}

type OperatorIAMRole

type OperatorIAMRole struct {
	Name            types.String `tfsdk:"operator_name"`
	Namespace       types.String `tfsdk:"operator_namespace"`
	RoleName        types.String `tfsdk:"role_name"`
	PolicyName      types.String `tfsdk:"policy_name"`
	ServiceAccounts types.List   `tfsdk:"service_accounts"`
}

type OperatorRolePolicies

type OperatorRolePolicies struct {
	CloudCred       types.String `tfsdk:"openshift_cloud_credential_operator_cloud_credential_operator_iam_ro_creds_policy"`
	CloudNetwork    types.String `tfsdk:"openshift_cloud_network_config_controller_cloud_credentials_policy"`
	ClusterCSI      types.String `tfsdk:"openshift_cluster_csi_drivers_ebs_cloud_credentials_policy"`
	ImageRegistry   types.String `tfsdk:"openshift_image_registry_installer_cloud_credentials_policy"`
	IngressOperator types.String `tfsdk:"openshift_ingress_operator_cloud_credentials_policy"`
	MachineAPI      types.String `tfsdk:"openshift_machine_api_aws_cloud_credentials_policy"`
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider is the implementation of the Provider.

func (*Provider) Configure

configure is the configuration function of the provider. It is responsible for checking the connection parameters and creating the connection that will be used by the resources.

func (*Provider) GetDataSources

func (p *Provider) GetDataSources(ctx context.Context) (result map[string]tfsdk.DataSourceType,
	diags diag.Diagnostics)

GetDataSources returns the data sources supported by the provider.

func (*Provider) GetResources

func (p *Provider) GetResources(ctx context.Context) (result map[string]tfsdk.ResourceType,
	diags diag.Diagnostics)

GetResources returns the resources supported by the provider.

func (*Provider) GetSchema

func (p *Provider) GetSchema(ctx context.Context) (schema tfsdk.Schema, diags diag.Diagnostics)

Provider creates the schema for the provider.

type Proxy

type Proxy struct {
	HttpProxy             types.String `tfsdk:"http_proxy"`
	HttpsProxy            types.String `tfsdk:"https_proxy"`
	NoProxy               types.String `tfsdk:"no_proxy"`
	AdditionalTrustBundle types.String `tfsdk:"additional_trust_bundle"`
}

type RosaOidcConfigInputResource

type RosaOidcConfigInputResource struct {
}

func (*RosaOidcConfigInputResource) Create

func (*RosaOidcConfigInputResource) Delete

func (*RosaOidcConfigInputResource) ImportState

func (*RosaOidcConfigInputResource) Read

func (*RosaOidcConfigInputResource) Update

type RosaOidcConfigInputResourceType

type RosaOidcConfigInputResourceType struct {
}

func (*RosaOidcConfigInputResourceType) GetSchema

func (t *RosaOidcConfigInputResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*RosaOidcConfigInputResourceType) NewResource

type RosaOidcConfigInputState

type RosaOidcConfigInputState struct {
	Region               types.String `tfsdk:"region"`
	BucketName           types.String `tfsdk:"bucket_name"`
	DiscoveryDoc         types.String `tfsdk:"discovery_doc"`
	Jwks                 types.String `tfsdk:"jwks"`
	PrivateKey           types.String `tfsdk:"private_key"`
	PrivateKeyFileName   types.String `tfsdk:"private_key_file_name"`
	PrivateKeySecretName types.String `tfsdk:"private_key_secret_name"`
	IssuerUrl            types.String `tfsdk:"issuer_url"`
}

type RosaOidcConfigResource

type RosaOidcConfigResource struct {
	// contains filtered or unexported fields
}

func (*RosaOidcConfigResource) Create

func (*RosaOidcConfigResource) Delete

func (*RosaOidcConfigResource) ImportState

func (*RosaOidcConfigResource) Read

func (*RosaOidcConfigResource) Update

type RosaOidcConfigResourceType

type RosaOidcConfigResourceType struct {
}

func (*RosaOidcConfigResourceType) GetSchema

func (t *RosaOidcConfigResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*RosaOidcConfigResourceType) NewResource

func (t *RosaOidcConfigResourceType) NewResource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)

type RosaOidcConfigState

type RosaOidcConfigState struct {
	Managed          types.Bool   `tfsdk:"managed"`
	SecretARN        types.String `tfsdk:"secret_arn"`
	IssuerUrl        types.String `tfsdk:"issuer_url"`
	InstallerRoleARN types.String `tfsdk:"installer_role_arn"`
	ID               types.String `tfsdk:"id"`
	Thumbprint       types.String `tfsdk:"thumbprint"`
	OIDCEndpointURL  types.String `tfsdk:"oidc_endpoint_url"`
}

type RosaOperatorRolesDataSource

type RosaOperatorRolesDataSource struct {
	// contains filtered or unexported fields
}

func (*RosaOperatorRolesDataSource) Read

type RosaOperatorRolesDataSourceType

type RosaOperatorRolesDataSourceType struct {
}

func (*RosaOperatorRolesDataSourceType) GetSchema

func (t *RosaOperatorRolesDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*RosaOperatorRolesDataSourceType) NewDataSource

type RosaOperatorRolesState

type RosaOperatorRolesState struct {
	OperatorRolePrefix types.String       `tfsdk:"operator_role_prefix"`
	AccountRolePrefix  types.String       `tfsdk:"account_role_prefix"`
	OperatorIAMRoles   []*OperatorIAMRole `tfsdk:"operator_iam_roles"`
}

type Sts

type Sts struct {
	OIDCEndpointURL    types.String    `tfsdk:"oidc_endpoint_url"`
	OIDCConfigID       types.String    `tfsdk:"oidc_config_id"`
	Thumbprint         types.String    `tfsdk:"thumbprint"`
	RoleARN            types.String    `tfsdk:"role_arn"`
	SupportRoleArn     types.String    `tfsdk:"support_role_arn"`
	InstanceIAMRoles   InstanceIAMRole `tfsdk:"instance_iam_roles"`
	OperatorRolePrefix types.String    `tfsdk:"operator_role_prefix"`
}

type Taints

type Taints struct {
	Key          types.String `tfsdk:"key"`
	Value        types.String `tfsdk:"value"`
	ScheduleType types.String `tfsdk:"schedule_type"`
}

type VersionState

type VersionState struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

type VersionsDataSource

type VersionsDataSource struct {
	// contains filtered or unexported fields
}

func (*VersionsDataSource) Read

type VersionsDataSourceType

type VersionsDataSourceType struct {
}

func (*VersionsDataSourceType) GetSchema

func (t *VersionsDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema,
	diags diag.Diagnostics)

func (*VersionsDataSourceType) NewDataSource

func (t *VersionsDataSourceType) NewDataSource(ctx context.Context,
	p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)

type VersionsState

type VersionsState struct {
	Search types.String    `tfsdk:"search"`
	Order  types.String    `tfsdk:"order"`
	Item   *VersionState   `tfsdk:"item"`
	Items  []*VersionState `tfsdk:"items"`
}

type Waiter

type Waiter interface {
	Ready() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL