provider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

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

func New

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

Types

type NuoDbaasProvider

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

NuoDbaasProvider defines the provider implementation.

func (*NuoDbaasProvider) Configure

func (*NuoDbaasProvider) DataSources

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

func (*NuoDbaasProvider) Metadata

func (*NuoDbaasProvider) Resources

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

func (*NuoDbaasProvider) Schema

func (*NuoDbaasProvider) ValidateConfig added in v1.1.0

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) 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) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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