provider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterReadyTimeout = 180 * time.Minute
)

Variables

This section is empty.

Functions

func ConfigureAWSv4

func ConfigureAWSv4(cfg aws.Config, role string) (openapi.AWSv4, time.Time, error)

func GetApiUrlAndRoleFromCfStack

func GetApiUrlAndRoleFromCfStack(cfg aws.Config, name string) (string, string, error)

func GetClusterApiUrlFromGateway

func GetClusterApiUrlFromGateway(cfg aws.Config, name string) (string, error)

func New

func New(version string) func() provider.Provider

func NewClusterDataSource

func NewClusterDataSource() datasource.DataSource

func NewClusterListDataSource

func NewClusterListDataSource() datasource.DataSource

func NewClusterResource

func NewClusterResource() resource.Resource

func NewComputeFleetDataSource

func NewComputeFleetDataSource() datasource.DataSource

func NewComputeFleetStatusResource

func NewComputeFleetStatusResource() resource.Resource

func NewImageDataSource

func NewImageDataSource() datasource.DataSource

func NewImageListDataSource

func NewImageListDataSource() datasource.DataSource

func NewImageResource

func NewImageResource() resource.Resource

func NewOfficialImageDataSource

func NewOfficialImageDataSource() datasource.DataSource

func ValidateImageStatusFilter

func ValidateImageStatusFilter(
	ctx context.Context,
	req validator.StringRequest,
	resp *validator.StringResponse,
)

Types

type AttributeValidator

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

func (*AttributeValidator) Description

func (m *AttributeValidator) Description(ctx context.Context) string

func (*AttributeValidator) MarkdownDescription

func (m *AttributeValidator) MarkdownDescription(ctx context.Context) string

func (*AttributeValidator) ValidateString

func (f *AttributeValidator) ValidateString(
	ctx context.Context,
	req validator.StringRequest,
	resp *validator.StringResponse,
)

type ClusterDataSource

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

ClusterDataSource defines the data source implementation.

func (*ClusterDataSource) Configure

func (*ClusterDataSource) Metadata

func (*ClusterDataSource) Read

func (*ClusterDataSource) Schema

type ClusterDataSourceModel

type ClusterDataSourceModel struct {
	ClusterName types.String `tfsdk:"cluster_name"`
	Cluster     types.Object `tfsdk:"cluster"`
	LogStreams  types.List   `tfsdk:"log_streams"`
	Filters     types.List   `tfsdk:"filters"`
	Region      types.String `tfsdk:"region"`
	StackEvents types.List   `tfsdk:"stack_events"`
}

ClusterDataSourceModel describes the data source data model.

type ClusterListDataSource

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

ClusterListDataSource defines the data source implementation.

func (*ClusterListDataSource) Configure

func (*ClusterListDataSource) Metadata

func (*ClusterListDataSource) Read

func (*ClusterListDataSource) Schema

type ClusterListDataSourceModel

type ClusterListDataSourceModel struct {
	ClusterStatus types.List   `tfsdk:"cluster_status"`
	Clusters      types.List   `tfsdk:"clusters"`
	Region        types.String `tfsdk:"region"`
}

ClusterListDataSourceModel describes the data source data model.

type ClusterResource

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

ClusterResource defines the resource implementation.

func (*ClusterResource) Configure

func (*ClusterResource) Create

func (*ClusterResource) Delete

func (*ClusterResource) ImportState

func (*ClusterResource) Metadata

func (*ClusterResource) Read

func (*ClusterResource) Schema

func (*ClusterResource) Update

type ClusterResourceModel

type ClusterResourceModel struct {
	ClusterName               types.String `tfsdk:"cluster_name"`
	ClusterConfiguration      types.String `tfsdk:"cluster_configuration"`
	Region                    types.String `tfsdk:"region"`
	RollbackOnFailure         types.Bool   `tfsdk:"rollback_on_failure"`
	SuppressValidators        types.List   `tfsdk:"suppress_validators"`
	ValidationFailureLevel    types.String `tfsdk:"validation_failure_level"`
	Id                        types.String `tfsdk:"id"`
	CloudformationStackArn    types.String `tfsdk:"cloudformation_stack_arn"`
	CloudformationStackStatus types.String `tfsdk:"cloudformation_stack_status"`
	ClusterStatus             types.String `tfsdk:"cluster_status"`
	Version                   types.String `tfsdk:"version"`
}

ClusterResourceModel describes the resource data model.

type ComputeFleetDataSource

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

ComputeFleetDataSource defines the data source implementation.

func (*ComputeFleetDataSource) Configure

func (*ComputeFleetDataSource) Metadata

func (*ComputeFleetDataSource) Read

func (*ComputeFleetDataSource) Schema

type ComputeFleetDataSourceModel

type ComputeFleetDataSourceModel struct {
	ClusterName          types.String `tfsdk:"cluster_name"`
	Region               types.String `tfsdk:"region"`
	Status               types.String `tfsdk:"status"`
	LastStatusUpdateTime types.String `tfsdk:"last_status_update_time"`
}

ComputeFleetDataSourceModel describes the data source data model.

type ComputeFleetStatusResource

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

ComputeFleetStatusResource defines the resource implementation.

func (*ComputeFleetStatusResource) Configure

func (*ComputeFleetStatusResource) Create

func (*ComputeFleetStatusResource) Delete

func (*ComputeFleetStatusResource) ImportState

func (*ComputeFleetStatusResource) Metadata

func (*ComputeFleetStatusResource) Read

func (*ComputeFleetStatusResource) Schema

func (*ComputeFleetStatusResource) Update

type ComputeFleetStatusResourceModel

type ComputeFleetStatusResourceModel struct {
	Id                   types.String `tfsdk:"id"`
	ClusterName          types.String `tfsdk:"cluster_name"`
	StatusRequest        types.String `tfsdk:"status_request"`
	Status               types.String `tfsdk:"status"`
	Region               types.String `tfsdk:"region"`
	LastStatusUpdateTime types.String `tfsdk:"last_status_update_time"`
}

ComputeFleetStatusResourceModel describes the resource data model.

type ImageDataSource

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

ImageDataSource defines the data source implementation.

func (*ImageDataSource) Configure

func (*ImageDataSource) Metadata

func (*ImageDataSource) Read

func (*ImageDataSource) Schema

type ImageDataSourceModel

type ImageDataSourceModel struct {
	ImageId     types.String `tfsdk:"image_id"`
	Image       types.Object `tfsdk:"image"`
	Region      types.String `tfsdk:"region"`
	LogStreams  types.List   `tfsdk:"log_streams"`
	StackEvents types.List   `tfsdk:"stack_events"`
}

ImageDataSourceModel describes the data source data model.

type ImageListDataSource

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

ImageListDataSource defines the data source implementation.

func (*ImageListDataSource) Configure

func (*ImageListDataSource) Metadata

func (*ImageListDataSource) Read

func (*ImageListDataSource) Schema

type ImageListDataSourceModel

type ImageListDataSourceModel struct {
	ImageStatus types.String `tfsdk:"image_status"`
	Images      types.List   `tfsdk:"images"`
	Region      types.String `tfsdk:"region"`
}

ImageListDataSourceModel describes the data source data model.

type ImageResource

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

ImageResource defines the resource implementation.

func (*ImageResource) Configure

func (*ImageResource) Create

func (*ImageResource) Delete

func (*ImageResource) ImportState

func (*ImageResource) Metadata

func (*ImageResource) Read

func (*ImageResource) Schema

func (*ImageResource) Update

type ImageResourceModel

type ImageResourceModel struct {
	ImageId                types.String `tfsdk:"image_id"`
	Id                     types.String `tfsdk:"id"`
	ImageConfiguration     types.String `tfsdk:"image_configuration"`
	SuppressValidators     types.List   `tfsdk:"suppress_validators"`
	ValidationFailureLevel types.String `tfsdk:"validation_failure_level"`
	RollbackOnFailure      types.Bool   `tfsdk:"rollback_on_failure"`
	Region                 types.String `tfsdk:"region"`

	// Image Builder Response Content
	Version                   types.String `tfsdk:"version"`
	CloudformationStackArn    types.String `tfsdk:"cloudformation_stack_arn"`
	CloudformationStackStatus types.String `tfsdk:"cloudformation_stack_status"`
	ImageBuildStatus          types.String `tfsdk:"image_build_status"`

	// Ec2 Info Response Content
	AmiId types.String `tfsdk:"ami_id"`
}

ImageResourceModel describes the resource data model.

type OfficialImageDataSource

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

OfficialImageDataSource defines the data source implementation.

func (*OfficialImageDataSource) Configure

func (*OfficialImageDataSource) Metadata

func (*OfficialImageDataSource) Read

func (*OfficialImageDataSource) Schema

type OfficialImageDataSourceModel

type OfficialImageDataSourceModel struct {
	Architecture   types.String `tfsdk:"architecture"`
	Os             types.String `tfsdk:"os"`
	Region         types.String `tfsdk:"region"`
	OfficialImages types.List   `tfsdk:"official_images"`
}

OfficialImageDataSourceModel describes the data source data model.

type PclusterProvider

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

PclusterProvider defines the provider implementation.

func (*PclusterProvider) Configure

func (*PclusterProvider) DataSources

func (p *PclusterProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*PclusterProvider) Metadata

func (*PclusterProvider) Resources

func (p *PclusterProvider) Resources(ctx context.Context) []func() resource.Resource

func (*PclusterProvider) Schema

type PclusterProviderModel

type PclusterProviderModel struct {
	Endpoint    types.String `tfsdk:"endpoint"`
	StackName   types.String `tfsdk:"api_stack_name"`
	UseUserRole types.Bool   `tfsdk:"use_user_role"`
	RoleArn     types.String `tfsdk:"role_arn"`
	Region      types.String `tfsdk:"region"`
	Profile     types.String `tfsdk:"profile"`
	AwsKey      types.String `tfsdk:"aws_key"`
	AwsSecret   types.String `tfsdk:"aws_secret"`
	ApiName     types.String `tfsdk:"api_name"`
}

PclusterProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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