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)
- func (p *NuoDbaasProvider) ValidateConfig(ctx context.Context, req provider.ValidateConfigRequest, ...)
- type NuoDbaasProviderModel
- func (pm *NuoDbaasProviderModel) ConsumeEvents(ctx context.Context, path string, callback func(sse.Event)) error
- func (pm *NuoDbaasProviderModel) CreateClient() (openapi.ClientInterface, error)
- func (pm *NuoDbaasProviderModel) GetPassword() string
- func (pm *NuoDbaasProviderModel) GetSkipVerify() bool
- func (pm *NuoDbaasProviderModel) GetToken() string
- func (pm *NuoDbaasProviderModel) GetUrlBase() string
- func (pm *NuoDbaasProviderModel) GetUser() string
Constants ¶
View Source
const ( NUODB_CP_USER = "NUODB_CP_USER" NUODB_CP_PASSWORD = "NUODB_CP_PASSWORD" //nolint:gosec // This is not a hardcoded password NUODB_CP_TOKEN = "NUODB_CP_TOKEN" //nolint:gosec // This is not a hardcoded authentication token 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)
func (*NuoDbaasProvider) ValidateConfig ¶ added in v1.1.0
func (p *NuoDbaasProvider) ValidateConfig(ctx context.Context, req provider.ValidateConfigRequest, resp *provider.ValidateConfigResponse)
type NuoDbaasProviderModel ¶
type NuoDbaasProviderModel struct { User *string `tfsdk:"user" hcl:"user" cty:"user"` Password *string `tfsdk:"password" hcl:"password" cty:"password"` Token *string `tfsdk:"token" hcl:"token" cty:"token"` 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) ConsumeEvents ¶ added in v1.3.0
func (pm *NuoDbaasProviderModel) ConsumeEvents(ctx context.Context, path string, callback func(sse.Event)) error
func (*NuoDbaasProviderModel) CreateClient ¶ added in v1.0.0
func (pm *NuoDbaasProviderModel) CreateClient() (openapi.ClientInterface, 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) GetToken ¶ added in v1.1.0
func (pm *NuoDbaasProviderModel) GetToken() string
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.