provider

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 22 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() tfsdk.Provider

New creates the provider.

Types

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 added in v0.1.7

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

func (*ClusterRosaClassicResource) Create added in v0.1.7

func (*ClusterRosaClassicResource) Delete added in v0.1.7

func (*ClusterRosaClassicResource) ImportState added in v0.1.7

func (*ClusterRosaClassicResource) Read added in v0.1.7

func (*ClusterRosaClassicResource) Update added in v0.1.7

type ClusterRosaClassicResourceType added in v0.1.7

type ClusterRosaClassicResourceType struct {
}

func (*ClusterRosaClassicResourceType) GetSchema added in v0.1.7

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

func (*ClusterRosaClassicResourceType) NewResource added in v0.1.7

type ClusterRosaClassicState added in v0.1.7

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"`
	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"`
	ExternalID         types.String `tfsdk:"external_id"`
	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"`
}

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 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 GroupMembershipResource added in v0.1.4

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

func (*GroupMembershipResource) Create added in v0.1.4

func (*GroupMembershipResource) Delete added in v0.1.4

func (*GroupMembershipResource) ImportState added in v0.1.4

func (*GroupMembershipResource) Read added in v0.1.4

func (*GroupMembershipResource) Update added in v0.1.4

type GroupMembershipResourceType added in v0.1.4

type GroupMembershipResourceType struct {
}

func (*GroupMembershipResourceType) GetSchema added in v0.1.4

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

func (*GroupMembershipResourceType) NewResource added in v0.1.4

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

type GroupMembershipState added in v0.1.4

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 added in v0.1.4

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

type GroupsDataSource added in v0.1.4

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

func (*GroupsDataSource) Read added in v0.1.4

type GroupsDataSourceType added in v0.1.4

type GroupsDataSourceType struct {
}

func (*GroupsDataSourceType) GetSchema added in v0.1.4

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

func (*GroupsDataSourceType) NewDataSource added in v0.1.4

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

type GroupsState added in v0.1.4

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

type HTPasswdIdentityProvider

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

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"`
	HTPasswd *HTPasswdIdentityProvider `tfsdk:"htpasswd"`
	LDAP     *LDAPIdentityProvider     `tfsdk:"ldap"`
	OpenID   *OpenIDIdentityProvider   `tfsdk:"openid"`
}

type InstanceIAMRole added in v0.1.7

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

type LDAPIdentityProvider

type LDAPIdentityProvider struct {
	BindDN       types.String                    `tfsdk:"bind_dn"`
	BindPassword types.String                    `tfsdk:"bind_password"`
	CA           types.String                    `tfsdk:"ca"`
	Insecure     types.Bool                      `tfsdk:"insecure"`
	URL          types.String                    `tfsdk:"url"`
	Attributes   *LDAPIdentityProviderAttributes `tfsdk:"attributes"`
}

type LDAPIdentityProviderAttributes

type LDAPIdentityProviderAttributes struct {
	EMail             []string `tfsdk:"email"`
	ID                []string `tfsdk:"id"`
	Name              []string `tfsdk:"name"`
	PreferredUsername []string `tfsdk:"preferred_username"`
}

type MachinePoolResource added in v0.1.4

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

func (*MachinePoolResource) Create added in v0.1.4

func (*MachinePoolResource) Delete added in v0.1.4

func (*MachinePoolResource) ImportState added in v0.1.4

func (*MachinePoolResource) Read added in v0.1.4

func (*MachinePoolResource) Update added in v0.1.4

type MachinePoolResourceType added in v0.1.4

type MachinePoolResourceType struct {
}

func (*MachinePoolResourceType) GetSchema added in v0.1.4

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

func (*MachinePoolResourceType) NewResource added in v0.1.4

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

type MachinePoolState added in v0.1.4

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"`
}

type MachineTypeState added in v0.1.4

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 added in v0.1.4

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

func (*MachineTypesDataSource) Read added in v0.1.4

type MachineTypesDataSourceType added in v0.1.4

type MachineTypesDataSourceType struct {
}

func (*MachineTypesDataSourceType) GetSchema added in v0.1.4

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

func (*MachineTypesDataSourceType) NewDataSource added in v0.1.4

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

type MachineTypesState added in v0.1.4

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

type OpenIDIdentityProvider added in v0.1.7

type OpenIDIdentityProvider struct {
	CA                       types.String                  `tfsdk:"ca"`
	Claims                   *OpenIDIdentityProviderClaims `tfsdk:"claims"`
	ClientID                 types.String                  `tfsdk:"client_id"`
	ClientSecret             types.String                  `tfsdk:"client_secret"`
	ExtraScopes              []string                      `tfsdk:"extra_scopes"`
	ExtraAuthorizeParameters map[string]string             `tfsdk:"extra_authorize_parameters"`
	Issuer                   types.String                  `tfsdk:"issuer"`
}

type OpenIDIdentityProviderClaims added in v0.1.7

type OpenIDIdentityProviderClaims struct {
	EMail             []string `tfsdk:"email"`
	Groups            []string `tfsdk:"groups"`
	Name              []string `tfsdk:"name"`
	PreferredUsername []string `tfsdk:"preferred_username"`
}

type OperatorIAMRole added in v0.1.7

type OperatorIAMRole struct {
	Name      types.String `tfsdk:"name"`
	Namespace types.String `tfsdk:"namespace"`
	RoleARN   types.String `tfsdk:"role_arn"`
}

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 added in v0.1.7

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

type Sts added in v0.1.7

type Sts struct {
	OIDCEndpointURL  types.String      `tfsdk:"oidc_endpoint_url"`
	Thumbprint       types.String      `tfsdk:"thumbprint"`
	RoleARN          types.String      `tfsdk:"role_arn"`
	SupportRoleArn   types.String      `tfsdk:"support_role_arn"`
	InstanceIAMRoles InstanceIAMRole   `tfsdk:"instance_iam_roles"`
	OperatorIAMRoles []OperatorIAMRole `tfsdk:"operator_iam_roles"`
}

type VersionState added in v0.1.4

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

type VersionsDataSource added in v0.1.4

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

func (*VersionsDataSource) Read added in v0.1.4

type VersionsDataSourceType added in v0.1.4

type VersionsDataSourceType struct {
}

func (*VersionsDataSourceType) GetSchema added in v0.1.4

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

func (*VersionsDataSourceType) NewDataSource added in v0.1.4

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

type VersionsState added in v0.1.4

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

Jump to

Keyboard shortcuts

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