Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- type StackitProvider
- func (p *StackitProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *StackitProvider) DataSources(context.Context) []func() datasource.DataSource
- func (p *StackitProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *StackitProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *StackitProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Constants ¶
View Source
const ( // Token Flow ServiceAccountEmail = "STACKIT_SERVICE_ACCOUNT_EMAIL" ServiceAccountToken = "STACKIT_SERVICE_ACCOUNT_TOKEN" // Key Flow optional env variable (1) ServiceAccountKey = "STACKIT_SERVICE_ACCOUNT_KEY" PrivateKey = "STACKIT_PRIVATE_KEY" // Key Flow optional env variable (2) using file paths ServiceAccountKeyPath = "STACKIT_SERVICE_ACCOUNT_KEY_PATH" PrivateKeyPath = "STACKIT_PRIVATE_KEY_PATH" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StackitProvider ¶
type StackitProvider struct {
// contains filtered or unexported fields
}
func (*StackitProvider) Configure ¶
func (p *StackitProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*StackitProvider) DataSources ¶
func (p *StackitProvider) DataSources(context.Context) []func() datasource.DataSource
GetDataSources - Defines provider data sources
func (*StackitProvider) Metadata ¶ added in v0.3.0
func (p *StackitProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
func (*StackitProvider) Resources ¶
func (p *StackitProvider) Resources(_ context.Context) []func() resource.Resource
GetResources - Defines provider resources
func (*StackitProvider) Schema ¶ added in v1.9.0
func (p *StackitProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Schema returns the provider's schema
Click to show internal directories.
Click to hide internal directories.