Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserAgent = "polytomic-terraform-provider" ErrorSummary = "Client Error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { DeploymentKey string DeploymentURL string PartnerKey string OrganizationUser string APIKey string // contains filtered or unexported fields }
Provider is used to construct Polytomic clients based on the configured authentication mechanism.
func GetProvider ¶
func GetProvider(data any, diags diag.Diagnostics) *Provider
GetClient returns a Polytomic client from the provider data for the specified organization.
func NewClientProvider ¶
func NewClientProvider(opts ...ProviderOpt) (*Provider, error)
type ProviderOpt ¶
type ProviderOpt func(*Provider)
func WithAPIKey ¶
func WithAPIKey(key string) ProviderOpt
func WithDeploymentKey ¶
func WithDeploymentKey(key string) ProviderOpt
func WithDeploymentURL ¶
func WithDeploymentURL(url string) ProviderOpt
func WithPartnerKey ¶
func WithPartnerKey(key, orgUser string) ProviderOpt
Click to show internal directories.
Click to hide internal directories.