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" // ValueKey is used for common "value" resource attribute ValueKey = "value" // DestinationIdKey is used for common "destination_id" resource attribute DestinationIdKey = "destination_id" )
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 ReadPathOrContents ¶
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.
Source Files ¶
- const.go
- data_source_account.go
- data_source_auth_method.go
- data_source_group.go
- data_source_scope.go
- data_source_user.go
- filter.go
- pathorcontents.go
- provider.go
- resource_account.go
- resource_account_ldap.go
- resource_account_oidc.go
- resource_account_password.go
- resource_alias_target.go
- resource_auth_method.go
- resource_auth_method_ldap.go
- resource_auth_method_oidc.go
- resource_auth_method_password.go
- resource_credential_json.go
- resource_credential_library_vault.go
- resource_credential_library_vault_ssh_certificate.go
- resource_credential_ssh_private_key.go
- resource_credential_store_static.go
- resource_credential_store_vault.go
- resource_credential_username_password.go
- resource_group.go
- resource_host_catalog_plugin.go
- resource_host_catalog_static.go
- resource_host_set_plugin.go
- resource_host_set_static.go
- resource_host_static.go
- resource_managed_group.go
- resource_managed_group_ldap.go
- resource_policy_storage.go
- resource_role.go
- resource_scope.go
- resource_scope_policy_attachment.go
- resource_storage_bucket.go
- resource_target.go
- resource_user.go
- scope.go
- worker.go
Click to show internal directories.
Click to hide internal directories.