Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewSaltWrappedPrivateKeyResource() resource.Resource
- type SaltProvider
- func (p *SaltProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *SaltProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *SaltProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *SaltProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *SaltProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type SaltProviderModel
- type SaltWrappedPrivateKeyResource
- func (n *SaltWrappedPrivateKeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (n *SaltWrappedPrivateKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (n *SaltWrappedPrivateKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (n *SaltWrappedPrivateKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (n *SaltWrappedPrivateKeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (n *SaltWrappedPrivateKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (n *SaltWrappedPrivateKeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (n *SaltWrappedPrivateKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type WrappedPrivateKeyResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SaltProvider ¶
type SaltProvider struct {
// contains filtered or unexported fields
}
SaltProvider defines the provider implementation.
func (*SaltProvider) Configure ¶
func (p *SaltProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*SaltProvider) DataSources ¶
func (p *SaltProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*SaltProvider) Metadata ¶
func (p *SaltProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*SaltProvider) Resources ¶
func (p *SaltProvider) Resources(ctx context.Context) []func() resource.Resource
func (*SaltProvider) Schema ¶
func (p *SaltProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type SaltProviderModel ¶
type SaltProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` }
SaltProviderModel describes the provider data model.
type SaltWrappedPrivateKeyResource ¶
type SaltWrappedPrivateKeyResource struct {
// contains filtered or unexported fields
}
func (*SaltWrappedPrivateKeyResource) Configure ¶
func (n *SaltWrappedPrivateKeyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*SaltWrappedPrivateKeyResource) Create ¶
func (n *SaltWrappedPrivateKeyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create is called when the provider must create a new resource. Config and planned state values should be read from the CreateRequest and new state values set on the CreateResponse.
func (*SaltWrappedPrivateKeyResource) Delete ¶
func (n *SaltWrappedPrivateKeyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete is called when the provider must delete the resource. Config values may be read from the DeleteRequest.
If execution completes without error, the framework will automatically call DeleteResponse.State.RemoveResource(), so it can be omitted from provider logic.
func (*SaltWrappedPrivateKeyResource) ImportState ¶
func (n *SaltWrappedPrivateKeyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SaltWrappedPrivateKeyResource) Metadata ¶
func (n *SaltWrappedPrivateKeyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*SaltWrappedPrivateKeyResource) Read ¶
func (n *SaltWrappedPrivateKeyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read is called when the provider must read resource values in order to update state. Planned state values should be read from the ReadRequest and new state values set on the ReadResponse.
func (*SaltWrappedPrivateKeyResource) Schema ¶
func (n *SaltWrappedPrivateKeyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema should return the schema for this resource.
func (*SaltWrappedPrivateKeyResource) Update ¶
func (n *SaltWrappedPrivateKeyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update is called to update the state of the resource. Config, planned state, and prior state values should be read from the UpdateRequest and new state values set on the UpdateResponse.