provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIncusProvider

func NewIncusProvider(version string) func() provider.Provider

New returns Incus provider with the given version set.

Types

type IncusProvider

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

IncusProvider ...

func (*IncusProvider) Configure

func (*IncusProvider) DataSources

func (p *IncusProvider) DataSources(_ context.Context) []func() datasource.DataSource

func (*IncusProvider) Metadata

func (*IncusProvider) Resources

func (p *IncusProvider) Resources(_ context.Context) []func() resource.Resource

func (*IncusProvider) Schema

type IncusProviderModel

type IncusProviderModel struct {
	Remotes                    []IncusProviderRemoteModel `tfsdk:"remote"`
	ConfigDir                  types.String               `tfsdk:"config_dir"`
	Project                    types.String               `tfsdk:"project"`
	AcceptRemoteCertificate    types.Bool                 `tfsdk:"accept_remote_certificate"`
	GenerateClientCertificates types.Bool                 `tfsdk:"generate_client_certificates"`
}

IncusProviderModel represents provider's schema.

type IncusProviderRemoteModel

type IncusProviderRemoteModel struct {
	Name    types.String `tfsdk:"name"`
	Address types.String `tfsdk:"address"`
	Port    types.String `tfsdk:"port"`
	Token   types.String `tfsdk:"token"`
	Scheme  types.String `tfsdk:"scheme"`
	Default types.Bool   `tfsdk:"default"`
}

IncusProviderRemoteModel represents provider's schema remote.

Jump to

Keyboard shortcuts

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