Documentation ¶
Index ¶
- func EnvDefaultFunc(k string, dv interface{}) string
- func MultiEnvDefaultFunc(ks []string) string
- func NewPowerPlatformProvider(ctx context.Context, testModeEnabled ...bool) func() provider.Provider
- type PowerPlatformProvider
- func (p *PowerPlatformProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *PowerPlatformProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *PowerPlatformProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *PowerPlatformProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *PowerPlatformProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvDefaultFunc ¶
EnvDefaultFunc is a helper function that returns the value of the given environment variable, if one exists, or the default value otherwise.
func MultiEnvDefaultFunc ¶
MultiEnvDefaultFunc is a helper function that returns the value of the first environment variable in the given list that returns a non-empty value. If none of the environment variables return a value, the default value is returned.
Types ¶
type PowerPlatformProvider ¶
type PowerPlatformProvider struct { Config *config.ProviderConfig Api *api.ApiClient }
func (*PowerPlatformProvider) Configure ¶
func (p *PowerPlatformProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*PowerPlatformProvider) DataSources ¶
func (p *PowerPlatformProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*PowerPlatformProvider) Metadata ¶
func (p *PowerPlatformProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*PowerPlatformProvider) Resources ¶
func (p *PowerPlatformProvider) Resources(ctx context.Context) []func() resource.Resource
func (*PowerPlatformProvider) Schema ¶
func (p *PowerPlatformProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.