provider

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateOperation tfOperation = "CREATE"
	ReadOperation   tfOperation = "READ"
	UpdateOperation tfOperation = "UPDATE"
	DeleteOperation tfOperation = "DELETE"
)

Variables

This section is empty.

Functions

func GetAccessTokenWithRefreshToken

func GetAccessTokenWithRefreshToken(
	tokenEndPoint string,
	clientID string,
	clientSecret string,
	refreshToken string,
	redirectURI string,
) (string, error)

func New

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

func NewResourceMonitorResource

func NewResourceMonitorResource() resource.Resource

Types

type GetRefreshTokenResponseBody

type GetRefreshTokenResponseBody struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int    `json:"expires_in"`
}

type ProviderData

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

type RefreshTokenAccesor

type RefreshTokenAccesor struct {
	TokenEndpoint types.String `tfsdk:"token_endpoint"`
	RefreshToken  types.String `tfsdk:"refresh_token"`
	ClientID      types.String `tfsdk:"client_id"`
	ClientSecret  types.String `tfsdk:"client_secret"`
	RedirectURI   types.String `tfsdk:"redirect_uri"`
}

type ResourceMonitorResource

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

func (*ResourceMonitorResource) Configure

func (*ResourceMonitorResource) Create

func (*ResourceMonitorResource) Delete

func (*ResourceMonitorResource) ImportState

func (*ResourceMonitorResource) Metadata

func (*ResourceMonitorResource) ModifyPlan

func (*ResourceMonitorResource) Read

func (*ResourceMonitorResource) Schema

func (*ResourceMonitorResource) Update

func (*ResourceMonitorResource) UpgradeState

type SnowflakeProvider

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

SnowflakeProvider defines the provider implementation.

func (*SnowflakeProvider) Configure

func (*SnowflakeProvider) DataSources

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

func (*SnowflakeProvider) Metadata

func (*SnowflakeProvider) Resources

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

func (*SnowflakeProvider) Schema

Jump to

Keyboard shortcuts

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