provider

package
v0.25.20 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureProvider

func ConfigureProvider(s *schema.ResourceData) (interface{}, error)

func DSN

func DSN(
	account,
	user,
	password string,
	browserAuth bool,
	privateKeyPath,
	privateKey,
	privateKeyPassphrase,
	oauthAccessToken,
	region,
	role string) (string, error)

func GetGrantResources added in v0.19.0

func GetGrantResources() resources.TerraformGrantResources

func GetOauthAccessToken added in v0.25.1

func GetOauthAccessToken(
	endPoint,
	client_id,
	client_secret string,
	data url.Values) (string, error)

func GetOauthData added in v0.25.1

func GetOauthData(refreshToken, redirectUrl string) url.Values

func GetOauthRequest added in v0.25.1

func GetOauthRequest(dataContent io.Reader, endPoint, clientId, clientSecret string) (*http.Request, error)

func ParsePrivateKey added in v0.5.0

func ParsePrivateKey(privateKeyBytes []byte, passhrase []byte) (*rsa.PrivateKey, error)

func Provider

func Provider() *schema.Provider

Provider is a provider

func ReadPrivateKeyFile added in v0.24.0

func ReadPrivateKeyFile(privateKeyPath string) ([]byte, error)

Types

type Result added in v0.25.1

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

Jump to

Keyboard shortcuts

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