Documentation
¶
Overview ¶
providers.go
Index ¶
- Constants
- func GetAuthMethod(d *schema.ResourceData, diags *diag.Diagnostics) string
- func GetBasicAuthPassword(d *schema.ResourceData, diags *diag.Diagnostics) string
- func GetBasicAuthUsername(d *schema.ResourceData, diags *diag.Diagnostics) string
- func GetClientID(d *schema.ResourceData, diags *diag.Diagnostics) string
- func GetClientSecret(d *schema.ResourceData, diags *diag.Diagnostics) string
- func GetJamfFqdn(d *schema.ResourceData, diags *diag.Diagnostics) string
- func Provider() *schema.Provider
- func Timeout(load_balancer_lock_enabled bool) time.Duration
- func TimeoutOverrides(lb_lock bool) map[string]resourceTimeout
Constants ¶
const ( DefaultContextTimeout = 75 * time.Second LoadBalancedContextTimeout = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func GetAuthMethod ¶ added in v0.1.1
func GetAuthMethod(d *schema.ResourceData, diags *diag.Diagnostics) string
GetAuthMethod retrieves the auth method from the provided schema resource data. If the auth method is not found, it appends an error diagnostic to the diagnostics slice.
Parameters:
d - A pointer to the schema.ResourceData object which contains the resource data. diags - A pointer to a slice of diag.Diagnostics where error messages will be appended.
Returns:
A string representing the auth method. If the auth method is not provided, an error diagnostic is appended to diags and an empty string is returned.
func GetBasicAuthPassword ¶ added in v0.1.0
func GetBasicAuthPassword(d *schema.ResourceData, diags *diag.Diagnostics) string
GetBasicAuthPassword retrieves the basic auth password from the provided schema resource data. If the client ID is not found, it appends an error diagnostic to the diagnostics slice.
Parameters:
d - A pointer to the schema.ResourceData object which contains the resource data. diags - A pointer to a slice of diag.Diagnostics where error messages will be appended.
Returns:
A string representing the client ID. If the client ID is not provided, an error diagnostic is appended to diags and an empty string is returned.
func GetBasicAuthUsername ¶ added in v0.1.0
func GetBasicAuthUsername(d *schema.ResourceData, diags *diag.Diagnostics) string
GetBasicAuthUsername retrieves the basic auth username from the provided schema resource data. If the client ID is not found, it appends an error diagnostic to the diagnostics slice.
Parameters:
d - A pointer to the schema.ResourceData object which contains the resource data. diags - A pointer to a slice of diag.Diagnostics where error messages will be appended.
Returns:
A string representing the client ID. If the client ID is not provided, an error diagnostic is appended to diags and an empty string is returned.
func GetClientID ¶
func GetClientID(d *schema.ResourceData, diags *diag.Diagnostics) string
GetClientID retrieves the client ID from the provided schema resource data. If the client ID is not found, it appends an error diagnostic to the diagnostics slice.
Parameters:
d - A pointer to the schema.ResourceData object which contains the resource data. diags - A pointer to a slice of diag.Diagnostics where error messages will be appended.
Returns:
A string representing the client ID. If the client ID is not provided, an error diagnostic is appended to diags and an empty string is returned.
func GetClientSecret ¶
func GetClientSecret(d *schema.ResourceData, diags *diag.Diagnostics) string
GetClientSecret retrieves the client secret from the provided schema resource data. If the client ID is not found, it appends an error diagnostic to the diagnostics slice.
Parameters:
d - A pointer to the schema.ResourceData object which contains the resource data. diags - A pointer to a slice of diag.Diagnostics where error messages will be appended.
Returns:
A string representing the client ID. If the client ID is not provided, an error diagnostic is appended to diags and an empty string is returned.
func GetJamfFqdn ¶ added in v0.1.0
func GetJamfFqdn(d *schema.ResourceData, diags *diag.Diagnostics) string
GetJamfFqdn retrieves the instance domain name from the provided schema resource data.
If the instance domain is not found, it appends an error diagnostic to the diagnostics slice.
Parameters:
d - A pointer to the schema.ResourceData object which contains the resource data. diags - A pointer to a slice of diag.Diagnostics where error messages will be appended.
Returns:
A string representing the instance domain name. If the instance domain name is not provided, an error diagnostic is appended to diags and an empty string is returned.
func Timeout ¶ added in v0.16.0
GetDefaultContextTimeoutCreate returns the appropriate timeout duration for resource creation. If load balancer lock is enabled, it returns the LoadBalancedContextTimeoutCreate, otherwise it returns the DefaultContextTimeoutCreate.
func TimeoutOverrides ¶ added in v0.16.0
Overrides returns a list of timeout overrides by their resource key
Types ¶
This section is empty.