config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 21 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 AddResourceNotFoundWarning added in v0.14.0

func AddResourceNotFoundWarning(ctx context.Context, diagnostics *diag.Diagnostics, resourceType string, httpResp *http.Response)

Report a 404 as a warning for resources

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 ReportHttpErrorCustomId added in v0.16.0

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

Report an HTTP error

func SetAllAttributesToOptionalAndComputed

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

Types

This section is empty.

Directories

Path Synopsis
authenticationapi
certificates
ca
cluster
configurationencryptionkeys
connectionmetadata
idp
kerberos
keypairs
localidentity
oauth
protocolmetadata
session
sp

Jump to

Keyboard shortcuts

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