provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 47 Imported by: 0

Documentation

Overview

providers.go

Index

Constants

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

func GetDefaultContextTimeoutCreate(load_balancer_lock_enabled bool) time.Duration

TODO func comment

func GetDefaultContextTimeoutDelete added in v0.1.0

func GetDefaultContextTimeoutDelete(load_balancer_lock_enabled bool) time.Duration

TODO func comment

func GetDefaultContextTimeoutRead added in v0.1.0

func GetDefaultContextTimeoutRead(load_balancer_lock_enabled bool) time.Duration

TODO func comment

func GetDefaultContextTimeoutUpdate added in v0.1.0

func GetDefaultContextTimeoutUpdate(load_balancer_lock_enabled bool) time.Duration

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.

func Provider

func Provider() *schema.Provider

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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