provider

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MPL-2.0 Imports: 76 Imported by: 0

Documentation

Overview

providers.go

Index

Constants

View Source
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 Provider

func Provider() *schema.Provider

Schema defines the configuration attributes for the within the JamfPro provider.

func Timeout added in v0.16.0

func Timeout(load_balancer_lock_enabled bool) time.Duration

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

func TimeoutOverrides(lb_lock bool) map[string]resourceTimeout

Overrides returns a list of timeout overrides by their resource key

Types

This section is empty.

Jump to

Keyboard shortcuts

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