tfschema

package
v0.0.0-...-142b8bd Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemaDatabaseV3 is schema for DatabaseV3 represents a single proxied database.
	SchemaDatabaseV3 = GenSchemaDatabaseV3()
	// SchemaMetaDatabaseV3 is schema metadata for DatabaseV3 represents a single proxied database.
	SchemaMetaDatabaseV3 = GenSchemaMetaDatabaseV3()
	// SchemaAppV3 is schema for AppV3 represents an app resource.
	SchemaAppV3 = GenSchemaAppV3()
	// SchemaMetaAppV3 is schema metadata for AppV3 represents an app resource.
	SchemaMetaAppV3 = GenSchemaMetaAppV3()
	// SchemaProvisionTokenV2 is schema for ProvisionTokenV2 specifies provisioning token
	SchemaProvisionTokenV2 = GenSchemaProvisionTokenV2()
	// SchemaMetaProvisionTokenV2 is schema metadata for ProvisionTokenV2 specifies provisioning token
	SchemaMetaProvisionTokenV2 = GenSchemaMetaProvisionTokenV2()
	// SchemaClusterAuditConfigV2 is schema for ClusterAuditConfigV2 represents audit log settings in the cluster.
	SchemaClusterAuditConfigV2 = GenSchemaClusterAuditConfigV2()
	// SchemaMetaClusterAuditConfigV2 is schema metadata for ClusterAuditConfigV2 represents audit log settings in the cluster.
	SchemaMetaClusterAuditConfigV2 = GenSchemaMetaClusterAuditConfigV2()
	// SchemaClusterNetworkingConfigV2 is schema for ClusterNetworkingConfigV2 contains cluster-wide networking configuration.
	SchemaClusterNetworkingConfigV2 = GenSchemaClusterNetworkingConfigV2()
	// SchemaMetaClusterNetworkingConfigV2 is schema metadata for ClusterNetworkingConfigV2 contains cluster-wide networking configuration.
	SchemaMetaClusterNetworkingConfigV2 = GenSchemaMetaClusterNetworkingConfigV2()
	// SchemaSessionRecordingConfigV2 is schema for SessionRecordingConfigV2 contains session recording configuration.
	SchemaSessionRecordingConfigV2 = GenSchemaSessionRecordingConfigV2()
	// SchemaMetaSessionRecordingConfigV2 is schema metadata for SessionRecordingConfigV2 contains session recording configuration.
	SchemaMetaSessionRecordingConfigV2 = GenSchemaMetaSessionRecordingConfigV2()
	// SchemaAuthPreferenceV2 is schema for AuthPreferenceV2 implements the AuthPreference interface.
	SchemaAuthPreferenceV2 = GenSchemaAuthPreferenceV2()
	// SchemaMetaAuthPreferenceV2 is schema metadata for AuthPreferenceV2 implements the AuthPreference interface.
	SchemaMetaAuthPreferenceV2 = GenSchemaMetaAuthPreferenceV2()
	// SchemaRoleV4 is schema for RoleV4 represents role resource specification
	SchemaRoleV4 = GenSchemaRoleV4()
	// SchemaMetaRoleV4 is schema metadata for RoleV4 represents role resource specification
	SchemaMetaRoleV4 = GenSchemaMetaRoleV4()
	// SchemaUserV2 is schema for UserV2 is version 2 resource spec of the user
	SchemaUserV2 = GenSchemaUserV2()
	// SchemaMetaUserV2 is schema metadata for UserV2 is version 2 resource spec of the user
	SchemaMetaUserV2 = GenSchemaMetaUserV2()
	// SchemaOIDCConnectorV2 is schema for OIDCConnectorV2 represents an OIDC connector.
	SchemaOIDCConnectorV2 = GenSchemaOIDCConnectorV2()
	// SchemaMetaOIDCConnectorV2 is schema metadata for OIDCConnectorV2 represents an OIDC connector.
	SchemaMetaOIDCConnectorV2 = GenSchemaMetaOIDCConnectorV2()
	// SchemaSAMLConnectorV2 is schema for SAMLConnectorV2 represents a SAML connector.
	SchemaSAMLConnectorV2 = GenSchemaSAMLConnectorV2()
	// SchemaMetaSAMLConnectorV2 is schema metadata for SAMLConnectorV2 represents a SAML connector.
	SchemaMetaSAMLConnectorV2 = GenSchemaMetaSAMLConnectorV2()
	// SchemaGithubConnectorV3 is schema for GithubConnectorV3 represents a Github connector.
	SchemaGithubConnectorV3 = GenSchemaGithubConnectorV3()
	// SchemaMetaGithubConnectorV3 is schema metadata for GithubConnectorV3 represents a Github connector.
	SchemaMetaGithubConnectorV3 = GenSchemaMetaGithubConnectorV3()
	// SchemaTrustedClusterV2 is schema for TrustedClusterV2 represents a Trusted Cluster.
	SchemaTrustedClusterV2 = GenSchemaTrustedClusterV2()
	// SchemaMetaTrustedClusterV2 is schema metadata for TrustedClusterV2 represents a Trusted Cluster.
	SchemaMetaTrustedClusterV2 = GenSchemaMetaTrustedClusterV2()
)

Functions

func FromTerraformAppV3

func FromTerraformAppV3(data *schema.ResourceData, obj *types.AppV3) error

func FromTerraformAuthPreferenceV2

func FromTerraformAuthPreferenceV2(data *schema.ResourceData, obj *types.AuthPreferenceV2) error

func FromTerraformBoolOption

func FromTerraformBoolOption(path string, target reflect.Value, meta *accessors.SchemaMeta, sch *schema.Schema, data *schema.ResourceData) error

FromTerraformBoolOption reads BoolOption from Terraform state

func FromTerraformClusterAuditConfigV2

func FromTerraformClusterAuditConfigV2(data *schema.ResourceData, obj *types.ClusterAuditConfigV2) error

func FromTerraformClusterNetworkingConfigV2

func FromTerraformClusterNetworkingConfigV2(data *schema.ResourceData, obj *types.ClusterNetworkingConfigV2) error

func FromTerraformDatabaseV3

func FromTerraformDatabaseV3(data *schema.ResourceData, obj *types.DatabaseV3) error

func FromTerraformGithubConnectorV3

func FromTerraformGithubConnectorV3(data *schema.ResourceData, obj *types.GithubConnectorV3) error

func FromTerraformLabels

func FromTerraformLabels(path string, target reflect.Value, meta *accessors.SchemaMeta, sch *schema.Schema, data *schema.ResourceData) error

FromTerraformLabels reads Labels from Terraform state

func FromTerraformOIDCConnectorV2

func FromTerraformOIDCConnectorV2(data *schema.ResourceData, obj *types.OIDCConnectorV2) error

func FromTerraformProvisionTokenV2

func FromTerraformProvisionTokenV2(data *schema.ResourceData, obj *types.ProvisionTokenV2) error

func FromTerraformRoleV4

func FromTerraformRoleV4(data *schema.ResourceData, obj *types.RoleV4) error

func FromTerraformSAMLConnectorV2

func FromTerraformSAMLConnectorV2(data *schema.ResourceData, obj *types.SAMLConnectorV2) error

func FromTerraformSessionRecordingConfigV2

func FromTerraformSessionRecordingConfigV2(data *schema.ResourceData, obj *types.SessionRecordingConfigV2) error

func FromTerraformStrings

func FromTerraformStrings(path string, target reflect.Value, meta *accessors.SchemaMeta, sch *schema.Schema, data *schema.ResourceData) error

FromTerraformStrings reads Strings from Terraform value

func FromTerraformTraits

func FromTerraformTraits(path string, target reflect.Value, meta *accessors.SchemaMeta, sch *schema.Schema, data *schema.ResourceData) error

FromTerraformTraits reads Traits from Terraform state

func FromTerraformTrustedClusterV2

func FromTerraformTrustedClusterV2(data *schema.ResourceData, obj *types.TrustedClusterV2) error

func FromTerraformUserV2

func FromTerraformUserV2(data *schema.ResourceData, obj *types.UserV2) error

func GenSchemaAppV3

func GenSchemaAppV3() map[string]*schema.Schema

SchemaAppV3 returns schema for AppV3

AppV3 represents an app resource.

func GenSchemaAuthPreferenceV2

func GenSchemaAuthPreferenceV2() map[string]*schema.Schema

SchemaAuthPreferenceV2 returns schema for AuthPreferenceV2

AuthPreferenceV2 implements the AuthPreference interface.

func GenSchemaClusterAuditConfigV2

func GenSchemaClusterAuditConfigV2() map[string]*schema.Schema

SchemaClusterAuditConfigV2 returns schema for ClusterAuditConfigV2

ClusterAuditConfigV2 represents audit log settings in the cluster.

func GenSchemaClusterNetworkingConfigV2

func GenSchemaClusterNetworkingConfigV2() map[string]*schema.Schema

SchemaClusterNetworkingConfigV2 returns schema for ClusterNetworkingConfigV2

ClusterNetworkingConfigV2 contains cluster-wide networking configuration.

func GenSchemaDatabaseV3

func GenSchemaDatabaseV3() map[string]*schema.Schema

SchemaDatabaseV3 returns schema for DatabaseV3

DatabaseV3 represents a single proxied database.

func GenSchemaGithubConnectorV3

func GenSchemaGithubConnectorV3() map[string]*schema.Schema

SchemaGithubConnectorV3 returns schema for GithubConnectorV3

GithubConnectorV3 represents a Github connector.

func GenSchemaMetaAppV3

func GenSchemaMetaAppV3() map[string]*accessors.SchemaMeta

GenSchemaMetaAppV3 returns schema for AppV3

AppV3 represents an app resource.

func GenSchemaMetaAuthPreferenceV2

func GenSchemaMetaAuthPreferenceV2() map[string]*accessors.SchemaMeta

GenSchemaMetaAuthPreferenceV2 returns schema for AuthPreferenceV2

AuthPreferenceV2 implements the AuthPreference interface.

func GenSchemaMetaClusterAuditConfigV2

func GenSchemaMetaClusterAuditConfigV2() map[string]*accessors.SchemaMeta

GenSchemaMetaClusterAuditConfigV2 returns schema for ClusterAuditConfigV2

ClusterAuditConfigV2 represents audit log settings in the cluster.

func GenSchemaMetaClusterNetworkingConfigV2

func GenSchemaMetaClusterNetworkingConfigV2() map[string]*accessors.SchemaMeta

GenSchemaMetaClusterNetworkingConfigV2 returns schema for ClusterNetworkingConfigV2

ClusterNetworkingConfigV2 contains cluster-wide networking configuration.

func GenSchemaMetaDatabaseV3

func GenSchemaMetaDatabaseV3() map[string]*accessors.SchemaMeta

GenSchemaMetaDatabaseV3 returns schema for DatabaseV3

DatabaseV3 represents a single proxied database.

func GenSchemaMetaGithubConnectorV3

func GenSchemaMetaGithubConnectorV3() map[string]*accessors.SchemaMeta

GenSchemaMetaGithubConnectorV3 returns schema for GithubConnectorV3

GithubConnectorV3 represents a Github connector.

func GenSchemaMetaOIDCConnectorV2

func GenSchemaMetaOIDCConnectorV2() map[string]*accessors.SchemaMeta

GenSchemaMetaOIDCConnectorV2 returns schema for OIDCConnectorV2

OIDCConnectorV2 represents an OIDC connector.

func GenSchemaMetaProvisionTokenV2

func GenSchemaMetaProvisionTokenV2() map[string]*accessors.SchemaMeta

GenSchemaMetaProvisionTokenV2 returns schema for ProvisionTokenV2

ProvisionTokenV2 specifies provisioning token

func GenSchemaMetaRoleV4

func GenSchemaMetaRoleV4() map[string]*accessors.SchemaMeta

GenSchemaMetaRoleV4 returns schema for RoleV4

RoleV4 represents role resource specification

func GenSchemaMetaSAMLConnectorV2

func GenSchemaMetaSAMLConnectorV2() map[string]*accessors.SchemaMeta

GenSchemaMetaSAMLConnectorV2 returns schema for SAMLConnectorV2

SAMLConnectorV2 represents a SAML connector.

func GenSchemaMetaSessionRecordingConfigV2

func GenSchemaMetaSessionRecordingConfigV2() map[string]*accessors.SchemaMeta

GenSchemaMetaSessionRecordingConfigV2 returns schema for SessionRecordingConfigV2

SessionRecordingConfigV2 contains session recording configuration.

func GenSchemaMetaTrustedClusterV2

func GenSchemaMetaTrustedClusterV2() map[string]*accessors.SchemaMeta

GenSchemaMetaTrustedClusterV2 returns schema for TrustedClusterV2

TrustedClusterV2 represents a Trusted Cluster.

func GenSchemaMetaUserV2

func GenSchemaMetaUserV2() map[string]*accessors.SchemaMeta

GenSchemaMetaUserV2 returns schema for UserV2

UserV2 is version 2 resource spec of the user

func GenSchemaOIDCConnectorV2

func GenSchemaOIDCConnectorV2() map[string]*schema.Schema

SchemaOIDCConnectorV2 returns schema for OIDCConnectorV2

OIDCConnectorV2 represents an OIDC connector.

func GenSchemaProvisionTokenV2

func GenSchemaProvisionTokenV2() map[string]*schema.Schema

SchemaProvisionTokenV2 returns schema for ProvisionTokenV2

ProvisionTokenV2 specifies provisioning token

func GenSchemaRoleV4

func GenSchemaRoleV4() map[string]*schema.Schema

SchemaRoleV4 returns schema for RoleV4

RoleV4 represents role resource specification

func GenSchemaSAMLConnectorV2

func GenSchemaSAMLConnectorV2() map[string]*schema.Schema

SchemaSAMLConnectorV2 returns schema for SAMLConnectorV2

SAMLConnectorV2 represents a SAML connector.

func GenSchemaSessionRecordingConfigV2

func GenSchemaSessionRecordingConfigV2() map[string]*schema.Schema

SchemaSessionRecordingConfigV2 returns schema for SessionRecordingConfigV2

SessionRecordingConfigV2 contains session recording configuration.

func GenSchemaTrustedClusterV2

func GenSchemaTrustedClusterV2() map[string]*schema.Schema

SchemaTrustedClusterV2 returns schema for TrustedClusterV2

TrustedClusterV2 represents a Trusted Cluster.

func GenSchemaUserV2

func GenSchemaUserV2() map[string]*schema.Schema

SchemaUserV2 returns schema for UserV2

UserV2 is version 2 resource spec of the user

func SchemaBoolOption

func SchemaBoolOption() *schema.Schema

SchemaBoolOption represents schema of custom bool value with true default

func SchemaLabels

func SchemaLabels() *schema.Schema

SchemaLabels represents traits schema map[string]utils.Strings

func SchemaStrings

func SchemaStrings() *schema.Schema

SchemaStrings represents schema of utils.Strings

func SchemaTraits

func SchemaTraits() *schema.Schema

SchemaTraits represents traits schema

func SuppressDurationChange

func SuppressDurationChange(k string, old string, new string, d *schema.ResourceData) bool

SuppressDurationChange supresses change for equal durations written differently, ex.: "1h" and "1h0m"

func ToTerraformAppV3

func ToTerraformAppV3(obj *types.AppV3, data *schema.ResourceData) error

func ToTerraformAuthPreferenceV2

func ToTerraformAuthPreferenceV2(obj *types.AuthPreferenceV2, data *schema.ResourceData) error

func ToTerraformBoolOption

func ToTerraformBoolOption(path string, source reflect.Value, meta *accessors.SchemaMeta, sch *schema.Schema, data *schema.ResourceData) (interface{}, error)

ToTerraformBoolOption writes BoolOption to Terraform state

func ToTerraformClusterAuditConfigV2

func ToTerraformClusterAuditConfigV2(obj *types.ClusterAuditConfigV2, data *schema.ResourceData) error

func ToTerraformClusterNetworkingConfigV2

func ToTerraformClusterNetworkingConfigV2(obj *types.ClusterNetworkingConfigV2, data *schema.ResourceData) error

func ToTerraformDatabaseV3

func ToTerraformDatabaseV3(obj *types.DatabaseV3, data *schema.ResourceData) error

func ToTerraformGithubConnectorV3

func ToTerraformGithubConnectorV3(obj *types.GithubConnectorV3, data *schema.ResourceData) error

func ToTerraformLabels

func ToTerraformLabels(path string, source reflect.Value, meta *accessors.SchemaMeta, sch *schema.Schema, data *schema.ResourceData) (interface{}, error)

ToTerraformLabels copies labels from object to Terraform state

func ToTerraformOIDCConnectorV2

func ToTerraformOIDCConnectorV2(obj *types.OIDCConnectorV2, data *schema.ResourceData) error

func ToTerraformProvisionTokenV2

func ToTerraformProvisionTokenV2(obj *types.ProvisionTokenV2, data *schema.ResourceData) error

func ToTerraformRoleV4

func ToTerraformRoleV4(obj *types.RoleV4, data *schema.ResourceData) error

func ToTerraformSAMLConnectorV2

func ToTerraformSAMLConnectorV2(obj *types.SAMLConnectorV2, data *schema.ResourceData) error

func ToTerraformSessionRecordingConfigV2

func ToTerraformSessionRecordingConfigV2(obj *types.SessionRecordingConfigV2, data *schema.ResourceData) error

func ToTerraformStrings

func ToTerraformStrings(path string, source reflect.Value, meta *accessors.SchemaMeta, sch *schema.Schema, data *schema.ResourceData) (interface{}, error)

SetStrings sets traits from data to object

func ToTerraformTraits

func ToTerraformTraits(path string, source reflect.Value, meta *accessors.SchemaMeta, sch *schema.Schema, data *schema.ResourceData) (interface{}, error)

ToTerraformTraits copies traits from object to Terraform state

func ToTerraformTrustedClusterV2

func ToTerraformTrustedClusterV2(obj *types.TrustedClusterV2, data *schema.ResourceData) error

func ToTerraformUserV2

func ToTerraformUserV2(obj *types.UserV2, data *schema.ResourceData) error

func TruncateMs

func TruncateMs(v interface{}) string

TruncateMs truncates nanoseconds from Metadata.Expires to prevent state change. Errors are silenced because this function can not report error to Terraform

Types

This section is empty.

Jump to

Keyboard shortcuts

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