Documentation ¶
Index ¶
- func NewIncusProvider(version string) func() provider.Provider
- type IncusProvider
- func (p *IncusProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *IncusProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *IncusProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *IncusProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *IncusProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type IncusProviderModel
- type IncusProviderRemoteModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIncusProvider ¶
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 (p *IncusProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*IncusProvider) DataSources ¶
func (p *IncusProvider) DataSources(_ context.Context) []func() datasource.DataSource
func (*IncusProvider) Metadata ¶
func (p *IncusProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
func (*IncusProvider) Resources ¶
func (p *IncusProvider) Resources(_ context.Context) []func() resource.Resource
func (*IncusProvider) Schema ¶
func (p *IncusProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
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.
Click to show internal directories.
Click to hide internal directories.