Documentation ¶
Overview ¶
Copyright 2016-2023, Pulumi Corporation.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type NewProviderArgs
- type Provider
- func (impl *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (impl *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (impl *Provider) GRPCProvider() tfprotov6.ProviderServer
- func (impl *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (impl *Provider) Resources(ctx context.Context) []func() resource.Resource
- func (impl *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type Resource
- func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Schema(ctx context.Context, _ resource.SchemaRequest, re *resource.SchemaResponse)
- func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewProviderArgs ¶
type Provider ¶
type Provider struct { TypeName string Version string ProviderSchema schema.Schema AllResources []Resource // contains filtered or unexported fields }
Provider is a test provider that can be used in tests. Instantiate it with NewProvider.
func NewProvider ¶
func NewProvider(params NewProviderArgs) *Provider
NewProvider creates a new provider with the given resources, filling reasonable defaults.
func (*Provider) Configure ¶
func (impl *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*Provider) DataSources ¶
func (impl *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*Provider) GRPCProvider ¶
func (impl *Provider) GRPCProvider() tfprotov6.ProviderServer
func (*Provider) Metadata ¶
func (impl *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*Provider) Schema ¶
func (impl *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type Resource ¶
type Resource struct { Name string ResourceSchema schema.Schema CreateFunc func(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) ReadFunc func(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) UpdateFunc func(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) DeleteFunc func(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) ImportStateFunc func(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) }
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, re *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, _ resource.SchemaRequest, re *resource.SchemaResponse)
func (*Resource) Update ¶
func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)