Documentation
¶
Index ¶
- Constants
- func Init(ctx context.Context, clientProvider *providerclient.Provider, ...)
- func ReplaceRefs(b []byte, refs map[string]string) []byte
- type BulkSyncs
- func (b *BulkSyncs) DatasourceRefs() map[string]string
- func (b *BulkSyncs) Filename() string
- func (b *BulkSyncs) GenerateImports(ctx context.Context, writer io.Writer) error
- func (b *BulkSyncs) GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
- func (b *BulkSyncs) Init(ctx context.Context) error
- func (b *BulkSyncs) ResourceRefs() map[string]string
- func (b *BulkSyncs) Variables() []Variable
- type Connection
- type Connections
- func (c *Connections) DatasourceRefs() map[string]string
- func (c *Connections) Filename() string
- func (c *Connections) GenerateImports(ctx context.Context, writer io.Writer) error
- func (c *Connections) GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
- func (c *Connections) Init(ctx context.Context) error
- func (c *Connections) ResourceRefs() map[string]string
- func (c *Connections) Variables() []Variable
- type GlobalErrorSubscribers
- func (g *GlobalErrorSubscribers) DatasourceRefs() map[string]string
- func (g *GlobalErrorSubscribers) Filename() string
- func (g *GlobalErrorSubscribers) GenerateImports(ctx context.Context, writer io.Writer) error
- func (g *GlobalErrorSubscribers) GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
- func (g *GlobalErrorSubscribers) Init(ctx context.Context) error
- func (g *GlobalErrorSubscribers) ResourceRefs() map[string]string
- func (g *GlobalErrorSubscribers) Variables() []Variable
- type Importable
- type Main
- func (m *Main) DatasourceRefs() map[string]string
- func (m *Main) Filename() string
- func (m *Main) GenerateImports(ctx context.Context, writer io.Writer) error
- func (m *Main) GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
- func (m *Main) Init(ctx context.Context) error
- func (m *Main) ResourceRefs() map[string]string
- func (m *Main) Variables() []Variable
- type Models
- func (m *Models) DatasourceRefs() map[string]string
- func (m *Models) Filename() string
- func (m *Models) GenerateImports(ctx context.Context, writer io.Writer) error
- func (m *Models) GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
- func (m *Models) Init(ctx context.Context) error
- func (m *Models) ResourceRefs() map[string]string
- func (m *Models) Variables() []Variable
- type Policies
- func (p *Policies) DatasourceRefs() map[string]string
- func (p *Policies) Filename() string
- func (p *Policies) GenerateImports(ctx context.Context, writer io.Writer) error
- func (p *Policies) GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
- func (p *Policies) Init(ctx context.Context) error
- func (p *Policies) ResourceRefs() map[string]string
- func (p *Policies) Variables() []Variable
- type Roles
- func (r *Roles) DatasourceRefs() map[string]string
- func (r *Roles) Filename() string
- func (r *Roles) GenerateImports(ctx context.Context, writer io.Writer) error
- func (r *Roles) GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
- func (r *Roles) Init(ctx context.Context) error
- func (r *Roles) ResourceRefs() map[string]string
- func (r *Roles) Variables() []Variable
- type SchemaValidator
- type Syncs
- func (s *Syncs) DatasourceRefs() map[string]string
- func (s *Syncs) Filename() string
- func (s *Syncs) GenerateImports(ctx context.Context, writer io.Writer) error
- func (s *Syncs) GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
- func (s *Syncs) Init(ctx context.Context) error
- func (s *Syncs) ResourceRefs() map[string]string
- func (s *Syncs) Variables() []Variable
- type Variable
Constants ¶
View Source
const ( BulkSyncResourceFileName = "bulk_syncs.tf" BulkSyncResource = "polytomic_bulk_sync" )
View Source
const ( GlobalErrorSubscribersResourceFileName = "global_error_subscribers.tf" GlobalErrorSubscribersResourceType = "polytomic_global_error_subscribers" )
View Source
const ( UserAgent = "polytomic-terraform-provider/importer" ImportFileName = "import.sh" )
View Source
const ( ModelsResourceFileName = "models.tf" ModelResource = "polytomic_model" )
View Source
const ( PoliciesResourceFileName = "policies.tf" PolicyResource = "polytomic_policy" )
View Source
const ( RolesResourceFileName = "roles.tf" RoleResource = "polytomic_role" )
View Source
const ( SyncResourceFileName = "syncs.tf" SyncResource = "polytomic_sync" )
View Source
const (
ConnectionsResourceFileName = "connections.tf"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BulkSyncs ¶
type BulkSyncs struct {
Resources map[string]*polytomic.BulkSyncResponse
// contains filtered or unexported fields
}
func NewBulkSyncs ¶
func (*BulkSyncs) DatasourceRefs ¶ added in v0.3.19
func (*BulkSyncs) GenerateImports ¶
func (*BulkSyncs) GenerateTerraformFiles ¶
func (*BulkSyncs) ResourceRefs ¶ added in v0.3.19
type Connection ¶
type Connections ¶
type Connections struct {
Resources map[string]Connection
Datasources map[string]Connection
// contains filtered or unexported fields
}
func NewConnections ¶
func NewConnections(c *ptclient.Client) *Connections
func (*Connections) DatasourceRefs ¶ added in v0.3.19
func (c *Connections) DatasourceRefs() map[string]string
func (*Connections) Filename ¶
func (c *Connections) Filename() string
func (*Connections) GenerateImports ¶
func (*Connections) GenerateTerraformFiles ¶
func (*Connections) ResourceRefs ¶ added in v0.3.19
func (c *Connections) ResourceRefs() map[string]string
func (*Connections) Variables ¶ added in v0.3.33
func (c *Connections) Variables() []Variable
type GlobalErrorSubscribers ¶ added in v1.3.0
type GlobalErrorSubscribers struct {
// contains filtered or unexported fields
}
func NewGlobalErrorSubscribers ¶ added in v1.3.0
func NewGlobalErrorSubscribers(c *ptclient.Client) *GlobalErrorSubscribers
func (*GlobalErrorSubscribers) DatasourceRefs ¶ added in v1.3.0
func (g *GlobalErrorSubscribers) DatasourceRefs() map[string]string
func (*GlobalErrorSubscribers) Filename ¶ added in v1.3.0
func (g *GlobalErrorSubscribers) Filename() string
func (*GlobalErrorSubscribers) GenerateImports ¶ added in v1.3.0
func (*GlobalErrorSubscribers) GenerateTerraformFiles ¶ added in v1.3.0
func (*GlobalErrorSubscribers) Init ¶ added in v1.3.0
func (g *GlobalErrorSubscribers) Init(ctx context.Context) error
func (*GlobalErrorSubscribers) ResourceRefs ¶ added in v1.3.0
func (g *GlobalErrorSubscribers) ResourceRefs() map[string]string
func (*GlobalErrorSubscribers) Variables ¶ added in v1.3.0
func (g *GlobalErrorSubscribers) Variables() []Variable
type Importable ¶
type Importable interface {
Init(ctx context.Context) error
ResourceRefs() map[string]string
DatasourceRefs() map[string]string
GenerateTerraformFiles(ctx context.Context, writer io.Writer, refs map[string]string) error
GenerateImports(ctx context.Context, writer io.Writer) error
Filename() string
Variables() []Variable
}
type Main ¶
func (*Main) DatasourceRefs ¶ added in v0.3.19
func (*Main) GenerateImports ¶
func (*Main) GenerateTerraformFiles ¶
func (*Main) ResourceRefs ¶ added in v0.3.19
type Models ¶
type Models struct {
Resources map[string]*polytomic.ModelResponse
// contains filtered or unexported fields
}
func (*Models) DatasourceRefs ¶ added in v0.3.19
func (*Models) GenerateImports ¶
func (*Models) GenerateTerraformFiles ¶
func (*Models) ResourceRefs ¶ added in v0.3.19
type Policies ¶ added in v0.3.13
type Policies struct {
Resources map[string]*polytomic.PolicyResponse
// contains filtered or unexported fields
}
func NewPolicies ¶ added in v0.3.13
func (*Policies) DatasourceRefs ¶ added in v0.3.19
func (*Policies) GenerateImports ¶ added in v0.3.13
func (*Policies) GenerateTerraformFiles ¶ added in v0.3.13
func (*Policies) ResourceRefs ¶ added in v0.3.19
type Roles ¶ added in v0.3.13
type Roles struct {
Resources map[string]*polytomic.RoleResponse
// contains filtered or unexported fields
}
func (*Roles) DatasourceRefs ¶ added in v0.3.19
func (*Roles) GenerateImports ¶ added in v0.3.13
func (*Roles) GenerateTerraformFiles ¶ added in v0.3.13
func (*Roles) ResourceRefs ¶ added in v0.3.19
type SchemaValidator ¶ added in v1.1.0
type SchemaValidator struct {
// contains filtered or unexported fields
}
SchemaValidator validates that field mappings match a provider resource schema
func NewSchemaValidator ¶ added in v1.1.0
NewSchemaValidator creates a validator from a provider resource
func (*SchemaValidator) ValidateMapping ¶ added in v1.1.0
func (v *SchemaValidator) ValidateMapping(mapping map[string]interface{}) error
ValidateMapping validates that a field mapping matches the schema structure mapping is a nested map[string]interface{} representing the HCL structure Returns an error if any field paths don't exist in the schema
type Syncs ¶
type Syncs struct {
Resources map[string]*polytomic.ModelSyncResponse
// contains filtered or unexported fields
}
func (*Syncs) DatasourceRefs ¶ added in v0.3.19
func (*Syncs) GenerateImports ¶
func (*Syncs) GenerateTerraformFiles ¶
func (*Syncs) ResourceRefs ¶ added in v0.3.19
Source Files
¶
Click to show internal directories.
Click to hide internal directories.