provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

func NewBucketCORSConfigurationResource added in v0.2.0

func NewBucketCORSConfigurationResource() resource.Resource

func NewBucketLifecycleConfigurationResource

func NewBucketLifecycleConfigurationResource() resource.Resource

func NewBucketPolicyResource

func NewBucketPolicyResource() resource.Resource

func NewBucketResource

func NewBucketResource() resource.Resource

func NewObjectResource

func NewObjectResource() resource.Resource

func NewValueOrEnvValidator

func NewValueOrEnvValidator(envKey string) valueOrEnvValidator

Types

type BucketCORSConfigurationResource added in v0.2.0

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

BucketCORSConfigurationResource defines the resource implementation.

func (*BucketCORSConfigurationResource) Configure added in v0.2.0

func (*BucketCORSConfigurationResource) Create added in v0.2.0

func (*BucketCORSConfigurationResource) Delete added in v0.2.0

func (*BucketCORSConfigurationResource) ImportState added in v0.2.0

func (*BucketCORSConfigurationResource) Metadata added in v0.2.0

func (*BucketCORSConfigurationResource) Read added in v0.2.0

func (*BucketCORSConfigurationResource) Schema added in v0.2.0

func (*BucketCORSConfigurationResource) Update added in v0.2.0

type BucketCORSConfigurationResourceModel added in v0.2.0

type BucketCORSConfigurationResourceModel struct {
	Bucket types.String `tfsdk:"bucket"`
	Rules  types.List   `tfsdk:"cors_rule"`
}

BucketCORSConfigurationResourceModel describes the resource data model.

type BucketLifecycleConfigurationResource

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

BucketLifecycleConfigurationResource defines the resource implementation.

func (*BucketLifecycleConfigurationResource) Configure

func (*BucketLifecycleConfigurationResource) Create

func (*BucketLifecycleConfigurationResource) Delete

func (*BucketLifecycleConfigurationResource) ImportState

func (*BucketLifecycleConfigurationResource) Metadata

func (*BucketLifecycleConfigurationResource) Read

func (*BucketLifecycleConfigurationResource) Schema

func (*BucketLifecycleConfigurationResource) Update

type BucketLifecycleConfigurationResourceModel

type BucketLifecycleConfigurationResourceModel struct {
	Bucket types.String `tfsdk:"bucket"`
	Rules  types.List   `tfsdk:"rule"`
}

BucketLifecycleConfigurationResourceModel describes the resource data model.

type BucketPolicyResource

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

BucketPolicyResource defines the resource implementation.

func (*BucketPolicyResource) Configure

func (*BucketPolicyResource) Create

func (*BucketPolicyResource) Delete

func (*BucketPolicyResource) ImportState

func (*BucketPolicyResource) Metadata

func (*BucketPolicyResource) Read

func (*BucketPolicyResource) Schema

func (*BucketPolicyResource) Update

type BucketPolicyResourceModel

type BucketPolicyResourceModel struct {
	Bucket types.String `tfsdk:"bucket"`
	Policy types.String `tfsdk:"policy"`
}

BucketPolicyResourceModel describes the resource data model.

type BucketResource

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

BucketResource defines the resource implementation.

func (*BucketResource) Configure

func (*BucketResource) Create

func (*BucketResource) Delete

func (*BucketResource) ImportState

func (*BucketResource) Metadata

func (*BucketResource) Read

func (*BucketResource) Schema

func (*BucketResource) Update

type BucketResourceModel

type BucketResourceModel struct {
	Name types.String `tfsdk:"bucket"`
	ARN  types.String `tfsdk:"arn"`
}

BucketResourceModel describes the resource data model.

type CORSRule added in v0.2.0

type CORSRule struct {
	AllowedHeaders types.Set    `tfsdk:"allowed_headers"`
	AllowedMethods types.Set    `tfsdk:"allowed_methods"`
	AllowedOrigins types.Set    `tfsdk:"allowed_origins"`
	ExposeHeaders  types.Set    `tfsdk:"expose_headers"`
	ID             types.String `tfsdk:"id"`
	MaxAgeSeconds  types.Int32  `tfsdk:"max_age_seconds"`
}

type LifecycleConfigurationRule

type LifecycleConfigurationRule struct {
	ID                          types.String `tfsdk:"id"`
	Status                      types.String `tfsdk:"status"`
	Filter                      types.Object `tfsdk:"filter"`
	Expiration                  types.Object `tfsdk:"expiration"`
	NoncurrentVersionExpiration types.Object `tfsdk:"noncurrent_version_expiration"`
}

type LifecycleConfigurationRuleExpiration

type LifecycleConfigurationRuleExpiration struct {
	Date types.String `tfsdk:"date"`
	Days types.Int32  `tfsdk:"days"`
}

func (LifecycleConfigurationRuleExpiration) AttributeTypes

func (m LifecycleConfigurationRuleExpiration) AttributeTypes() map[string]attr.Type

type LifecycleConfigurationRuleFilter

type LifecycleConfigurationRuleFilter struct {
	ObjectSizeLargerThan types.Int64  `tfsdk:"object_size_larger_than"`
	ObjectSizeLessThan   types.Int64  `tfsdk:"object_size_less_than"`
	Prefix               types.String `tfsdk:"prefix"`
	Tag                  types.Object `tfsdk:"tag"`
	And                  types.Object `tfsdk:"and"`
}

func (LifecycleConfigurationRuleFilter) AttributeTypes

func (m LifecycleConfigurationRuleFilter) AttributeTypes() map[string]attr.Type

type LifecycleConfigurationRuleFilterAnd

type LifecycleConfigurationRuleFilterAnd struct {
	ObjectSizeLargerThan types.Int64  `tfsdk:"object_size_larger_than"`
	ObjectSizeLessThan   types.Int64  `tfsdk:"object_size_less_than"`
	Prefix               types.String `tfsdk:"prefix"`
	Tag                  types.Map    `tfsdk:"tags"`
}

func (LifecycleConfigurationRuleFilterAnd) AttributeTypes

func (m LifecycleConfigurationRuleFilterAnd) AttributeTypes() map[string]attr.Type

type LifecycleConfigurationRuleNoncurrentExpiration

type LifecycleConfigurationRuleNoncurrentExpiration struct {
	NewerNoncurrentVersions types.Int32 `tfsdk:"newer_noncurrent_versions"`
	NoncurrentDays          types.Int32 `tfsdk:"noncurrent_days"`
}

func (LifecycleConfigurationRuleNoncurrentExpiration) AttributeTypes

type ObjStoProvider

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

ObjStoProvider defines the provider implementation.

func (*ObjStoProvider) Configure

func (*ObjStoProvider) DataSources

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

func (*ObjStoProvider) Metadata

func (*ObjStoProvider) Resources

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

func (*ObjStoProvider) Schema

type ObjStoProviderModel

type ObjStoProviderModel struct {
	Endpoint  types.String `tfsdk:"endpoint"`
	Region    types.String `tfsdk:"region"`
	AccessKey types.String `tfsdk:"access_key"`
	SecretKey types.String `tfsdk:"secret_key"`
}

ObjStoProviderModel describes the provider data model.

type ObjectResource

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

ObjectResource defines the resource implementation.

func (*ObjectResource) Configure

func (*ObjectResource) Create

func (*ObjectResource) Delete

func (*ObjectResource) ImportState

func (*ObjectResource) Metadata

func (*ObjectResource) Read

func (*ObjectResource) Schema

func (*ObjectResource) Update

type ObjectResourceModel

type ObjectResourceModel struct {
	Bucket  types.String `tfsdk:"bucket"`
	Id      types.String `tfsdk:"id"`
	Key     types.String `tfsdk:"key"`
	Content types.String `tfsdk:"content"`
	URL     types.String `tfsdk:"url"`
}

ObjectResourceModel describes the resource data model.

type Tag

type Tag struct {
	Key   types.String `tfsdk:"key"`
	Value types.String `tfsdk:"value"`
}

func (Tag) AttributeTypes

func (m Tag) AttributeTypes() map[string]attr.Type

Jump to

Keyboard shortcuts

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