config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessTokenContext added in v0.6.0

func AccessTokenContext(ctx context.Context, accessToken string) context.Context

Get an AccessToken context with an accessToken

func AuthContext added in v0.6.0

func AuthContext(ctx context.Context, providerConfig internaltypes.ProviderConfiguration) context.Context

func BasicAuthContext

func BasicAuthContext(ctx context.Context, username, password string) context.Context

Get BasicAuth context with a username and password

func OAuthContext added in v0.6.0

func OAuthContext(ctx context.Context, transport *http.Transport, tokenUrl string, clientId string, clientSecret string, scopes []string) context.Context

Get an OAuth context with a tokenUrl, clientId, clientSecret, and scopes

func ProviderAccessTokenContext added in v0.6.0

func ProviderAccessTokenContext(ctx context.Context, providerConfig internaltypes.ProviderConfiguration) context.Context

Get an AccessToken context from a ProviderConfiguration

func ProviderBasicAuthContext

func ProviderBasicAuthContext(ctx context.Context, providerConfig internaltypes.ProviderConfiguration) context.Context

Get a BasicAuth context from a ProviderConfiguration

func ProviderOAuthContext added in v0.6.0

func ProviderOAuthContext(ctx context.Context, providerConfig internaltypes.ProviderConfiguration) context.Context

Get an OAuth context from a ProviderConfiguration

func ReportHttpError

func ReportHttpError(ctx context.Context, diagnostics *diag.Diagnostics, errorSummary string, err error, httpResp *http.Response)

Report an HTTP error

func ReportHttpErrorAsWarning

func ReportHttpErrorAsWarning(ctx context.Context, diagnostics *diag.Diagnostics, errorSummary string, err error, httpResp *http.Response)

Report an HTTP error as a warning

func SetAllAttributesToOptionalAndComputed

func SetAllAttributesToOptionalAndComputed(s *schema.Schema, exemptAttributes []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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