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 GetDefaultContextTimeoutCreate(load_balancer_lock_enabled bool) time.Duration
- func GetDefaultContextTimeoutDelete(load_balancer_lock_enabled bool) time.Duration
- func GetDefaultContextTimeoutRead(load_balancer_lock_enabled bool) time.Duration
- func GetDefaultContextTimeoutUpdate(load_balancer_lock_enabled bool) time.Duration
- func GetJamfFqdn(d *schema.ResourceData, diags *diag.Diagnostics) string
- func Provider() *schema.Provider
Constants ¶
const ( DefaultContextTimeoutCreate = 65 * time.Second DefaultContextTimeoutRead = 65 * time.Second DefaultContextTimeoutUpdate = 65 * time.Second DefaultContextTimeoutDelete = 65 * time.Second LoadBalancedContextTimeoutCreate = 15 * time.Second LoadBalancedContextTimeoutRead = 10 * time.Second LoadBalancedContextTimeoutUpdate = 15 * time.Second LoadBalancedContextTimeoutDelete = 10 * 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 GetDefaultContextTimeoutCreate ¶ added in v0.1.0
TODO func comment
func GetDefaultContextTimeoutDelete ¶ added in v0.1.0
TODO func comment
func GetDefaultContextTimeoutRead ¶ added in v0.1.0
TODO func comment
func GetDefaultContextTimeoutUpdate ¶ added in v0.1.0
TODO func comment
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.
Types ¶
This section is empty.