datastore

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatastoreResourceSchema

func DatastoreResourceSchema(ctx context.Context) schema.Schema

func NewResource

func NewResource() resource.Resource

Types

type ClusterInfoType

type ClusterInfoType struct {
	basetypes.ObjectType
}

func (ClusterInfoType) Equal

func (t ClusterInfoType) Equal(o attr.Type) bool

func (ClusterInfoType) String

func (t ClusterInfoType) String() string

func (ClusterInfoType) ValueFromObject

func (ClusterInfoType) ValueFromTerraform

func (t ClusterInfoType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ClusterInfoType) ValueType

func (t ClusterInfoType) ValueType(ctx context.Context) attr.Value

type ClusterInfoValue

type ClusterInfoValue struct {
	Id   basetypes.StringValue `tfsdk:"id"`
	Name basetypes.StringValue `tfsdk:"name"`
	// contains filtered or unexported fields
}

func NewClusterInfoValue

func NewClusterInfoValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ClusterInfoValue, diag.Diagnostics)

func NewClusterInfoValueMust

func NewClusterInfoValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ClusterInfoValue

func NewClusterInfoValueNull

func NewClusterInfoValueNull() ClusterInfoValue

func NewClusterInfoValueUnknown

func NewClusterInfoValueUnknown() ClusterInfoValue

func (ClusterInfoValue) AttributeTypes

func (v ClusterInfoValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ClusterInfoValue) Equal

func (v ClusterInfoValue) Equal(o attr.Value) bool

func (ClusterInfoValue) IsNull

func (v ClusterInfoValue) IsNull() bool

func (ClusterInfoValue) IsUnknown

func (v ClusterInfoValue) IsUnknown() bool

func (ClusterInfoValue) String

func (v ClusterInfoValue) String() string

func (ClusterInfoValue) ToObjectValue

func (ClusterInfoValue) ToTerraformValue

func (v ClusterInfoValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ClusterInfoValue) Type

type DatacentersInfoType

type DatacentersInfoType struct {
	basetypes.ObjectType
}

func (DatacentersInfoType) Equal

func (t DatacentersInfoType) Equal(o attr.Type) bool

func (DatacentersInfoType) String

func (t DatacentersInfoType) String() string

func (DatacentersInfoType) ValueFromObject

func (DatacentersInfoType) ValueFromTerraform

func (t DatacentersInfoType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (DatacentersInfoType) ValueType

func (t DatacentersInfoType) ValueType(ctx context.Context) attr.Value

type DatacentersInfoValue

type DatacentersInfoValue struct {
	Id   basetypes.StringValue `tfsdk:"id"`
	Name basetypes.StringValue `tfsdk:"name"`
	// contains filtered or unexported fields
}

func NewDatacentersInfoValue

func NewDatacentersInfoValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DatacentersInfoValue, diag.Diagnostics)

func NewDatacentersInfoValueMust

func NewDatacentersInfoValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DatacentersInfoValue

func NewDatacentersInfoValueNull

func NewDatacentersInfoValueNull() DatacentersInfoValue

func NewDatacentersInfoValueUnknown

func NewDatacentersInfoValueUnknown() DatacentersInfoValue

func (DatacentersInfoValue) AttributeTypes

func (v DatacentersInfoValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (DatacentersInfoValue) Equal

func (v DatacentersInfoValue) Equal(o attr.Value) bool

func (DatacentersInfoValue) IsNull

func (v DatacentersInfoValue) IsNull() bool

func (DatacentersInfoValue) IsUnknown

func (v DatacentersInfoValue) IsUnknown() bool

func (DatacentersInfoValue) String

func (v DatacentersInfoValue) String() string

func (DatacentersInfoValue) ToObjectValue

func (DatacentersInfoValue) ToTerraformValue

func (v DatacentersInfoValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (DatacentersInfoValue) Type

type DatastoreModel

type DatastoreModel struct {
	CapacityInBytes types.Int64      `tfsdk:"capacity_in_bytes"`
	ClusterInfo     ClusterInfoValue `tfsdk:"cluster_info"`
	DatacentersInfo types.List       `tfsdk:"datacenters_info"`
	DatastoreType   types.String     `tfsdk:"datastore_type"`
	HciClusterUuid  types.String     `tfsdk:"hci_cluster_uuid"`
	Id              types.String     `tfsdk:"id"`
	Name            types.String     `tfsdk:"name"`
}

type Resource

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

Resource defines the resource implementation.

func (*Resource) Configure

func (r *Resource) Configure(
	ctx context.Context,
	req resource.ConfigureRequest,
	resp *resource.ConfigureResponse,
)

func (*Resource) Create

func (r *Resource) Create(
	ctx context.Context,
	req resource.CreateRequest,
	resp *resource.CreateResponse,
)

func (*Resource) Delete

func (r *Resource) Delete(
	ctx context.Context,
	req resource.DeleteRequest,
	resp *resource.DeleteResponse,
)

func (*Resource) ImportState

func (r *Resource) ImportState(
	ctx context.Context,
	req resource.ImportStateRequest,
	resp *resource.ImportStateResponse,
)

func (*Resource) Metadata

func (r *Resource) Metadata(
	ctx context.Context,
	req resource.MetadataRequest,
	resp *resource.MetadataResponse,
)

func (*Resource) Read

func (r *Resource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

func (*Resource) Schema

func (r *Resource) Schema(
	ctx context.Context,
	req resource.SchemaRequest,
	resp *resource.SchemaResponse,
)

func (*Resource) Update

func (r *Resource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

Jump to

Keyboard shortcuts

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