provider

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 10 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 NewSaltWrappedPrivateKeyResource

func NewSaltWrappedPrivateKeyResource() resource.Resource

Types

type SaltProvider

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

SaltProvider defines the provider implementation.

func (*SaltProvider) Configure

func (*SaltProvider) DataSources

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

func (*SaltProvider) Metadata

func (*SaltProvider) Resources

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

func (*SaltProvider) Schema

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 (*SaltWrappedPrivateKeyResource) Create

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

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 (*SaltWrappedPrivateKeyResource) Metadata

func (*SaltWrappedPrivateKeyResource) Read

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

Schema should return the schema for this resource.

func (*SaltWrappedPrivateKeyResource) Update

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.

type WrappedPrivateKeyResourceModel

type WrappedPrivateKeyResourceModel struct {
	MinionId          types.String `tfsdk:"minion_id"`
	WrappedPrivateKey types.String `tfsdk:"wrapped_private_key"`
}

Jump to

Keyboard shortcuts

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