Documentation ¶
Index ¶
- Constants
- func Init(url, key, path string, recreate bool, includePermissions bool)
- 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 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 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 ( 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"
)
View Source
const (
ImportFileName = "import.sh"
)
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 NewBulkSyncs(c *polytomic.Client) *BulkSyncs
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 *polytomic.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 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.Model // 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.Policy // contains filtered or unexported fields }
func NewPolicies ¶ added in v0.3.13
func NewPolicies(c *polytomic.Client) *Policies
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.Role // 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 Syncs ¶
type Syncs struct { Resources map[string]polytomic.SyncResponse // 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
Click to show internal directories.
Click to hide internal directories.