Documentation ¶
Index ¶
- Constants
- func ConfigureAWSv4(cfg aws.Config, role string) (openapi.AWSv4, time.Time, error)
- func GetApiUrlAndRoleFromCfStack(cfg aws.Config, name string) (string, string, error)
- func GetClusterApiUrlFromGateway(cfg aws.Config, name string) (string, error)
- func New(version string) func() provider.Provider
- func NewClusterDataSource() datasource.DataSource
- func NewClusterListDataSource() datasource.DataSource
- func NewClusterResource() resource.Resource
- func NewComputeFleetDataSource() datasource.DataSource
- func NewComputeFleetStatusResource() resource.Resource
- func NewImageDataSource() datasource.DataSource
- func NewImageListDataSource() datasource.DataSource
- func NewImageResource() resource.Resource
- func NewOfficialImageDataSource() datasource.DataSource
- func ValidateImageStatusFilter(ctx context.Context, req validator.StringRequest, ...)
- type AttributeValidator
- type ClusterDataSource
- func (d *ClusterDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ClusterDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ClusterDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ClusterDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ClusterDataSourceModel
- type ClusterListDataSource
- func (d *ClusterListDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ClusterListDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ClusterListDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ClusterListDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ClusterListDataSourceModel
- type ClusterResource
- func (r *ClusterResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ClusterResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ClusterResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ClusterResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ClusterResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ClusterResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ClusterResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ClusterResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ClusterResourceModel
- type ComputeFleetDataSource
- func (d *ComputeFleetDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ComputeFleetDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ComputeFleetDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ComputeFleetDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ComputeFleetDataSourceModel
- type ComputeFleetStatusResource
- func (r *ComputeFleetStatusResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ComputeFleetStatusResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ComputeFleetStatusResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ComputeFleetStatusResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ComputeFleetStatusResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ComputeFleetStatusResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ComputeFleetStatusResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ComputeFleetStatusResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ComputeFleetStatusResourceModel
- type ImageDataSource
- func (d *ImageDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ImageDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ImageDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ImageDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ImageDataSourceModel
- type ImageListDataSource
- func (d *ImageListDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ImageListDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ImageListDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ImageListDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ImageListDataSourceModel
- type ImageResource
- func (r *ImageResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ImageResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ImageResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ImageResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ImageResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ImageResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ImageResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ImageResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ImageResourceModel
- type OfficialImageDataSource
- func (d *OfficialImageDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *OfficialImageDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *OfficialImageDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *OfficialImageDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type OfficialImageDataSourceModel
- type PclusterProvider
- func (p *PclusterProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *PclusterProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *PclusterProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *PclusterProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *PclusterProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type PclusterProviderModel
Constants ¶
const (
ClusterReadyTimeout = 180 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func ConfigureAWSv4 ¶
func NewClusterDataSource ¶
func NewClusterDataSource() datasource.DataSource
func NewClusterListDataSource ¶
func NewClusterListDataSource() datasource.DataSource
func NewClusterResource ¶
func NewComputeFleetDataSource ¶
func NewComputeFleetDataSource() datasource.DataSource
func NewImageDataSource ¶
func NewImageDataSource() datasource.DataSource
func NewImageListDataSource ¶
func NewImageListDataSource() datasource.DataSource
func NewImageResource ¶
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 (d *ClusterDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*ClusterDataSource) Metadata ¶
func (d *ClusterDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*ClusterDataSource) Read ¶
func (d *ClusterDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*ClusterDataSource) Schema ¶
func (d *ClusterDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
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 (d *ClusterListDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*ClusterListDataSource) Metadata ¶
func (d *ClusterListDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*ClusterListDataSource) Read ¶
func (d *ClusterListDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*ClusterListDataSource) Schema ¶
func (d *ClusterListDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
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 (r *ClusterResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*ClusterResource) Create ¶
func (r *ClusterResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*ClusterResource) Delete ¶
func (r *ClusterResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*ClusterResource) ImportState ¶
func (r *ClusterResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*ClusterResource) Metadata ¶
func (r *ClusterResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*ClusterResource) Read ¶
func (r *ClusterResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*ClusterResource) Schema ¶
func (r *ClusterResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*ClusterResource) Update ¶
func (r *ClusterResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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 (d *ComputeFleetDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*ComputeFleetDataSource) Metadata ¶
func (d *ComputeFleetDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*ComputeFleetDataSource) Read ¶
func (d *ComputeFleetDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*ComputeFleetDataSource) Schema ¶
func (d *ComputeFleetDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
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 (r *ComputeFleetStatusResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*ComputeFleetStatusResource) Create ¶
func (r *ComputeFleetStatusResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*ComputeFleetStatusResource) Delete ¶
func (r *ComputeFleetStatusResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*ComputeFleetStatusResource) ImportState ¶
func (r *ComputeFleetStatusResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*ComputeFleetStatusResource) Metadata ¶
func (r *ComputeFleetStatusResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*ComputeFleetStatusResource) Read ¶
func (r *ComputeFleetStatusResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*ComputeFleetStatusResource) Schema ¶
func (r *ComputeFleetStatusResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*ComputeFleetStatusResource) Update ¶
func (r *ComputeFleetStatusResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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 (d *ImageDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*ImageDataSource) Metadata ¶
func (d *ImageDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*ImageDataSource) Read ¶
func (d *ImageDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*ImageDataSource) Schema ¶
func (d *ImageDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
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 (d *ImageListDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*ImageListDataSource) Metadata ¶
func (d *ImageListDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*ImageListDataSource) Read ¶
func (d *ImageListDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*ImageListDataSource) Schema ¶
func (d *ImageListDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
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 (r *ImageResource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*ImageResource) Create ¶
func (r *ImageResource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*ImageResource) Delete ¶
func (r *ImageResource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*ImageResource) ImportState ¶
func (r *ImageResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*ImageResource) Metadata ¶
func (r *ImageResource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*ImageResource) Read ¶
func (r *ImageResource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*ImageResource) Schema ¶
func (r *ImageResource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*ImageResource) Update ¶
func (r *ImageResource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
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 (d *OfficialImageDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*OfficialImageDataSource) Metadata ¶
func (d *OfficialImageDataSource) Metadata( ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*OfficialImageDataSource) Read ¶
func (d *OfficialImageDataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
func (*OfficialImageDataSource) Schema ¶
func (d *OfficialImageDataSource) Schema( ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse, )
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 (p *PclusterProvider) Configure( ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse, )
func (*PclusterProvider) DataSources ¶
func (p *PclusterProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*PclusterProvider) Metadata ¶
func (p *PclusterProvider) Metadata( ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse, )
func (*PclusterProvider) Resources ¶
func (p *PclusterProvider) Resources(ctx context.Context) []func() resource.Resource
func (*PclusterProvider) Schema ¶
func (p *PclusterProvider) Schema( ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse, )
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.