provider

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MPL-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Helpers for dealing with file paths and their contents

Originally from Terraform; see https://www.terraform.io/docs/extend/guides/v2-upgrade-guide.html#removal-of-helper-pathorcontents-package

Index

Constants

View Source
const (
	// IDKey is used for common SDK ID resource attribute
	IDKey = "id"
	// NameKey is used for common "name" resource attribute
	NameKey = "name"
	// DescriptionKey is used for common "description" resource attribute
	DescriptionKey = "description"
	// ScopeIdKey is used for common "scope_id" resource attribute
	ScopeIdKey = "scope_id"
	// TypeKey is used for common "type" resource attribute
	TypeKey = "type"
	// HostCatalogIdKey is used for common "host_catalog_id" resource attribute
	HostCatalogIdKey = "host_catalog_id"
	// AuthMethodIdKey is used for common "auth_method_id" resource attribute
	AuthMethodIdKey = "auth_method_id"
	// PluginIdKey is used for common "plugin_id" resource attribute
	PluginIdKey = "plugin_id"
	// PluginNameKey is used for common "plugin_name" resource attribute
	PluginNameKey = "plugin_name"
	// AttributesJsonKey is used for setting attributes and corresponds to the
	// API "attributes" key
	AttributesJsonKey = "attributes_json"
	// SecretsJsonKey is used for setting secrets and corresponds to the API
	// "secrets" key
	SecretsJsonKey = "secrets_json"
	// SecretsHmacKey is a read-only key used for ensuring we detect if secrets
	// have changed
	SecretsHmacKey = "secrets_hmac"
	// PreferredEndpointsKey is used for setting preferred endpoints
	PreferredEndpointsKey = "preferred_endpoints"
	// SyncIntervalSecondsKey is used for setting the interval seconds
	SyncIntervalSecondsKey = "sync_interval_seconds"

	// workerFilter is used for common "worker_filter" resource attribute
	WorkerFilterKey = "worker_filter"
	// LoginNameKey is used for common "login_name" resource attribute
	LoginNameKey = "login_name"
	// PrimaryAccountIdKey is used for common "primary_account_id" resource attribute
	PrimaryAccountIdKey = "primary_account_id"
	// ScopeKey is used for common "scope" resource attribute
	ScopeKey = "scope"
	// ParentScopeKey is used for common "parent_scope_id" resource attribute
	ParentScopeIdKey = "parent_scope_id"
	// GroupMemberIdsKey is used for common "member_ids" resource attribute
	GroupMemberIdsKey = "member_ids"
)
View Source
const (
	PASSWORD_AUTH_METHOD_PREFIX = "ampw"
	LDAP_AUTH_METHOD_PREFIX     = "amldap"
	DEFAULT_PROVIDER_SCOPE      = "global"
)

Variables

This section is empty.

Functions

func FilterWithItemNameMatches added in v1.1.11

func FilterWithItemNameMatches(name string) string

func New

func New() *schema.Provider

func ReadPathOrContents

func ReadPathOrContents(poc string) (string, bool, error)

If the argument is a path, Read loads it and returns the contents, otherwise the argument is assumed to be the desired contents and is simply returned.

The boolean second return value can be called `wasPath` - it indicates if a path was detected and a file loaded.

Types

This section is empty.

Jump to

Keyboard shortcuts

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