Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- type NuoDbaasProvider
- func (p *NuoDbaasProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *NuoDbaasProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *NuoDbaasProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *NuoDbaasProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *NuoDbaasProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type NuoDbaasProviderModel
Constants ¶
View Source
const ( NUODB_CP_USER = "NUODB_CP_USER" NUODB_CP_PASSWORD = "NUODB_CP_PASSWORD" NUODB_CP_URL_BASE = "NUODB_CP_URL_BASE" NUODB_CP_SKIP_VERIFY = "NUODB_CP_SKIP_VERIFY" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NuoDbaasProvider ¶
type NuoDbaasProvider struct {
// contains filtered or unexported fields
}
NuoDbaasProvider defines the provider implementation.
func (*NuoDbaasProvider) Configure ¶
func (p *NuoDbaasProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*NuoDbaasProvider) DataSources ¶
func (p *NuoDbaasProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*NuoDbaasProvider) Metadata ¶
func (p *NuoDbaasProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*NuoDbaasProvider) Resources ¶
func (p *NuoDbaasProvider) Resources(ctx context.Context) []func() resource.Resource
func (*NuoDbaasProvider) Schema ¶
func (p *NuoDbaasProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type NuoDbaasProviderModel ¶
type NuoDbaasProviderModel struct { User *string `tfsdk:"user" hcl:"user" cty:"user"` Password *string `tfsdk:"password" hcl:"password" cty:"password"` UrlBase *string `tfsdk:"url_base" hcl:"url_base" cty:"url_base"` SkipVerify *bool `tfsdk:"skip_verify" hcl:"skip_verify" cty:"skip_verify"` Timeouts map[string]framework.OperationTimeouts `tfsdk:"timeouts" hcl:"timeouts" cty:"timeouts"` }
NuoDbaasProviderModel describes the provider data model.
func (*NuoDbaasProviderModel) CreateClient ¶ added in v1.0.0
func (pm *NuoDbaasProviderModel) CreateClient() (*openapi.Client, error)
func (*NuoDbaasProviderModel) GetPassword ¶ added in v1.0.0
func (pm *NuoDbaasProviderModel) GetPassword() string
func (*NuoDbaasProviderModel) GetSkipVerify ¶ added in v1.0.0
func (pm *NuoDbaasProviderModel) GetSkipVerify() bool
func (*NuoDbaasProviderModel) GetUrlBase ¶ added in v1.0.0
func (pm *NuoDbaasProviderModel) GetUrlBase() string
func (*NuoDbaasProviderModel) GetUser ¶ added in v1.0.0
func (pm *NuoDbaasProviderModel) GetUser() string
Click to show internal directories.
Click to hide internal directories.