Documentation ¶
Overview ¶
Package testprovider is a package containing a terraform provider for internal testing purposes
Index ¶
- func NewMockSubprovider() subprovider.Subprovider
- func NewTestResource() resource.Resource
- type TestResource
- func (r *TestResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TestResource) Delete(ctx context.Context, _ resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TestResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TestResource) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
- func (r *TestResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TestResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TestResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockSubprovider ¶
func NewMockSubprovider() subprovider.Subprovider
NewMockSubprovider return the test subprovider used for internal testing
func NewTestResource ¶
NewTestResource returns new akamai test resource to be used in internal testing
Types ¶
type TestResource ¶
type TestResource struct{}
TestResource represents akamai_test to be used in internal testing
func (*TestResource) Create ¶
func (r *TestResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*TestResource) Delete ¶
func (r *TestResource) Delete(ctx context.Context, _ resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*TestResource) ImportState ¶
func (r *TestResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState implements resource.ResourceWithImportState.
func (*TestResource) Metadata ¶
func (r *TestResource) Metadata(_ context.Context, _ resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata implements resource.Resource.
func (*TestResource) Read ¶
func (r *TestResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*TestResource) Schema ¶
func (r *TestResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*TestResource) Update ¶
func (r *TestResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
Click to show internal directories.
Click to hide internal directories.