Documentation

Index

Constants

View Source
const RemoteAWSTerraform = "aws+tf"

Variables

This section is empty.

Functions

func Init

func Init(alerter *alerter.Alerter, providerLibrary *terraform.ProviderLibrary, supplierLibrary *resource.SupplierLibrary) error

    *

    * Initialize remote (configure credentials, launch tf providers and start gRPC clients)
    * Required to use Scanner
    

    Types

    type AwsClientFactory

    type AwsClientFactory struct {
    	// contains filtered or unexported fields
    }

    func (AwsClientFactory) GetS3Client

    func (s AwsClientFactory) GetS3Client(configs ...*aws.Config) s3iface.S3API

    type AwsClientFactoryInterface

    type AwsClientFactoryInterface interface {
    	GetS3Client(configs ...*aws.Config) s3iface.S3API
    }

    type DBInstanceSupplier

    type DBInstanceSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewDBInstanceSupplier

    func NewDBInstanceSupplier(provider *TerraformProvider) *DBInstanceSupplier

    func (DBInstanceSupplier) Resources

    func (s DBInstanceSupplier) Resources() ([]resource.Resource, error)

    type DBSubnetGroupSupplier

    type DBSubnetGroupSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewDBSubnetGroupSupplier

    func NewDBSubnetGroupSupplier(provider *TerraformProvider) *DBSubnetGroupSupplier

    func (DBSubnetGroupSupplier) Resources

    func (s DBSubnetGroupSupplier) Resources() ([]resource.Resource, error)

    type EC2AmiSupplier

    type EC2AmiSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewEC2AmiSupplier

    func NewEC2AmiSupplier(provider *TerraformProvider) *EC2AmiSupplier

    func (EC2AmiSupplier) Resources

    func (s EC2AmiSupplier) Resources() ([]resource.Resource, error)

    type EC2EbsSnapshotSupplier

    type EC2EbsSnapshotSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewEC2EbsSnapshotSupplier

    func NewEC2EbsSnapshotSupplier(provider *TerraformProvider) *EC2EbsSnapshotSupplier

    func (EC2EbsSnapshotSupplier) Resources

    func (s EC2EbsSnapshotSupplier) Resources() ([]resource.Resource, error)

    type EC2EbsVolumeSupplier

    type EC2EbsVolumeSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewEC2EbsVolumeSupplier

    func NewEC2EbsVolumeSupplier(provider *TerraformProvider) *EC2EbsVolumeSupplier

    func (EC2EbsVolumeSupplier) Resources

    func (s EC2EbsVolumeSupplier) Resources() ([]resource.Resource, error)

    type EC2EipAssociationSupplier

    type EC2EipAssociationSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewEC2EipAssociationSupplier

    func NewEC2EipAssociationSupplier(provider *TerraformProvider) *EC2EipAssociationSupplier

    func (EC2EipAssociationSupplier) Resources

    func (s EC2EipAssociationSupplier) Resources() ([]resource.Resource, error)

    type EC2EipSupplier

    type EC2EipSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewEC2EipSupplier

    func NewEC2EipSupplier(provider *TerraformProvider) *EC2EipSupplier

    func (EC2EipSupplier) Resources

    func (s EC2EipSupplier) Resources() ([]resource.Resource, error)

    type EC2InstanceSupplier

    type EC2InstanceSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewEC2InstanceSupplier

    func NewEC2InstanceSupplier(provider *TerraformProvider) *EC2InstanceSupplier

    func (EC2InstanceSupplier) Resources

    func (s EC2InstanceSupplier) Resources() ([]resource.Resource, error)

    type EC2KeyPairSupplier

    type EC2KeyPairSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewEC2KeyPairSupplier

    func NewEC2KeyPairSupplier(provider *TerraformProvider) *EC2KeyPairSupplier

    func (EC2KeyPairSupplier) Resources

    func (s EC2KeyPairSupplier) Resources() ([]resource.Resource, error)

    type IamAccessKeySupplier

    type IamAccessKeySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewIamAccessKeySupplier

    func NewIamAccessKeySupplier(provider *TerraformProvider) *IamAccessKeySupplier

    func (IamAccessKeySupplier) Resources

    func (s IamAccessKeySupplier) Resources() ([]resource.Resource, error)

    type IamPolicySupplier

    type IamPolicySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewIamPolicySupplier

    func NewIamPolicySupplier(provider *TerraformProvider) *IamPolicySupplier

    func (IamPolicySupplier) Resources

    func (s IamPolicySupplier) Resources() ([]resource.Resource, error)

    type IamRolePolicyAttachmentSupplier

    type IamRolePolicyAttachmentSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewIamRolePolicyAttachmentSupplier

    func NewIamRolePolicyAttachmentSupplier(provider *TerraformProvider) *IamRolePolicyAttachmentSupplier

    func (IamRolePolicyAttachmentSupplier) Resources

    type IamRolePolicySupplier

    type IamRolePolicySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewIamRolePolicySupplier

    func NewIamRolePolicySupplier(provider *TerraformProvider) *IamRolePolicySupplier

    func (IamRolePolicySupplier) Resources

    func (s IamRolePolicySupplier) Resources() ([]resource.Resource, error)

    type IamRoleSupplier

    type IamRoleSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewIamRoleSupplier

    func NewIamRoleSupplier(provider *TerraformProvider) *IamRoleSupplier

    func (IamRoleSupplier) Resources

    func (s IamRoleSupplier) Resources() ([]resource.Resource, error)

    type IamUserPolicyAttachmentSupplier

    type IamUserPolicyAttachmentSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewIamUserPolicyAttachmentSupplier

    func NewIamUserPolicyAttachmentSupplier(provider *TerraformProvider) *IamUserPolicyAttachmentSupplier

    func (IamUserPolicyAttachmentSupplier) Resources

    type IamUserPolicySupplier

    type IamUserPolicySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewIamUserPolicySupplier

    func NewIamUserPolicySupplier(provider *TerraformProvider) *IamUserPolicySupplier

    func (IamUserPolicySupplier) Resources

    func (s IamUserPolicySupplier) Resources() ([]resource.Resource, error)

    type IamUserSupplier

    type IamUserSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewIamUserSupplier

    func NewIamUserSupplier(provider *TerraformProvider) *IamUserSupplier

    func (IamUserSupplier) Resources

    func (s IamUserSupplier) Resources() ([]resource.Resource, error)

    type InternetGatewaySupplier

    type InternetGatewaySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewInternetGatewaySupplier

    func NewInternetGatewaySupplier(provider *TerraformProvider) *InternetGatewaySupplier

    func (InternetGatewaySupplier) Resources

    func (s InternetGatewaySupplier) Resources() ([]resource.Resource, error)

    type LambdaFunctionSupplier

    type LambdaFunctionSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewLambdaFunctionSupplier

    func NewLambdaFunctionSupplier(provider *TerraformProvider) *LambdaFunctionSupplier

    func (LambdaFunctionSupplier) Resources

    func (s LambdaFunctionSupplier) Resources() ([]resource.Resource, error)

    type NatGatewaySupplier

    type NatGatewaySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewNatGatewaySupplier

    func NewNatGatewaySupplier(provider *TerraformProvider) *NatGatewaySupplier

    func (NatGatewaySupplier) Resources

    func (s NatGatewaySupplier) Resources() ([]resource.Resource, error)

    type Route53RecordSupplier

    type Route53RecordSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewRoute53RecordSupplier

    func NewRoute53RecordSupplier(provider *TerraformProvider) *Route53RecordSupplier

    func (Route53RecordSupplier) Resources

    func (s Route53RecordSupplier) Resources() ([]resource.Resource, error)

    type Route53ZoneSupplier

    type Route53ZoneSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewRoute53ZoneSupplier

    func NewRoute53ZoneSupplier(provider *TerraformProvider) *Route53ZoneSupplier

    func (Route53ZoneSupplier) Resources

    func (s Route53ZoneSupplier) Resources() ([]resource.Resource, error)

    type RouteSupplier

    type RouteSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewRouteSupplier

    func NewRouteSupplier(provider *TerraformProvider) *RouteSupplier

    func (RouteSupplier) Resources

    func (s RouteSupplier) Resources() ([]resource.Resource, error)

    type RouteTableAssociationSupplier

    type RouteTableAssociationSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewRouteTableAssociationSupplier

    func NewRouteTableAssociationSupplier(provider *TerraformProvider) *RouteTableAssociationSupplier

    func (RouteTableAssociationSupplier) Resources

    type RouteTableSupplier

    type RouteTableSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewRouteTableSupplier

    func NewRouteTableSupplier(provider *TerraformProvider) *RouteTableSupplier

    func (RouteTableSupplier) Resources

    func (s RouteTableSupplier) Resources() ([]resource.Resource, error)

    type S3BucketAnalyticSupplier

    type S3BucketAnalyticSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewS3BucketAnalyticSupplier

    func NewS3BucketAnalyticSupplier(provider *TerraformProvider, factory AwsClientFactoryInterface) *S3BucketAnalyticSupplier

    func (*S3BucketAnalyticSupplier) Resources

    func (s *S3BucketAnalyticSupplier) Resources() ([]resource.Resource, error)

    type S3BucketInventorySupplier

    type S3BucketInventorySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewS3BucketInventorySupplier

    func NewS3BucketInventorySupplier(provider *TerraformProvider, factory AwsClientFactoryInterface) *S3BucketInventorySupplier

    func (*S3BucketInventorySupplier) Resources

    func (s *S3BucketInventorySupplier) Resources() ([]resource.Resource, error)

    type S3BucketMetricSupplier

    type S3BucketMetricSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewS3BucketMetricSupplier

    func NewS3BucketMetricSupplier(provider *TerraformProvider, factory AwsClientFactoryInterface) *S3BucketMetricSupplier

    func (*S3BucketMetricSupplier) Resources

    func (s *S3BucketMetricSupplier) Resources() ([]resource.Resource, error)

    type S3BucketNotificationSupplier

    type S3BucketNotificationSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewS3BucketNotificationSupplier

    func NewS3BucketNotificationSupplier(provider *TerraformProvider, factory AwsClientFactoryInterface) *S3BucketNotificationSupplier

    func (*S3BucketNotificationSupplier) Resources

    type S3BucketPolicySupplier

    type S3BucketPolicySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewS3BucketPolicySupplier

    func NewS3BucketPolicySupplier(provider *TerraformProvider, factory AwsClientFactoryInterface) *S3BucketPolicySupplier

    func (*S3BucketPolicySupplier) Resources

    func (s *S3BucketPolicySupplier) Resources() ([]resource.Resource, error)

    type S3BucketSupplier

    type S3BucketSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewS3BucketSupplier

    func NewS3BucketSupplier(provider *TerraformProvider, factory AwsClientFactoryInterface) *S3BucketSupplier

    func (S3BucketSupplier) Resources

    func (s S3BucketSupplier) Resources() ([]resource.Resource, error)

    type SNSTopicPolicySupplier

    type SNSTopicPolicySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewSNSTopicPolicySupplier

    func NewSNSTopicPolicySupplier(provider *TerraformProvider) *SNSTopicPolicySupplier

    func (SNSTopicPolicySupplier) Resources

    func (s SNSTopicPolicySupplier) Resources() ([]resource.Resource, error)

    type SNSTopicSubscriptionSupplier

    type SNSTopicSubscriptionSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewSNSTopicSubscriptionSupplier

    func NewSNSTopicSubscriptionSupplier(provider *TerraformProvider) *SNSTopicSubscriptionSupplier

    func (SNSTopicSubscriptionSupplier) Resources

    type SNSTopicSupplier

    type SNSTopicSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewSNSTopicSupplier

    func NewSNSTopicSupplier(provider *TerraformProvider) *SNSTopicSupplier

    func (SNSTopicSupplier) Resources

    func (s SNSTopicSupplier) Resources() ([]resource.Resource, error)

    type SqsQueuePolicySupplier

    type SqsQueuePolicySupplier struct {
    	// contains filtered or unexported fields
    }

    func NewSqsQueuePolicySupplier

    func NewSqsQueuePolicySupplier(provider *TerraformProvider) *SqsQueuePolicySupplier

    func (SqsQueuePolicySupplier) Resources

    func (s SqsQueuePolicySupplier) Resources() ([]resource.Resource, error)

    type SqsQueueSupplier

    type SqsQueueSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewSqsQueueSupplier

    func NewSqsQueueSupplier(provider *TerraformProvider) *SqsQueueSupplier

    func (SqsQueueSupplier) Resources

    func (s SqsQueueSupplier) Resources() ([]resource.Resource, error)

    type SubnetSupplier

    type SubnetSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewSubnetSupplier

    func NewSubnetSupplier(provider *TerraformProvider) *SubnetSupplier

    func (SubnetSupplier) Resources

    func (s SubnetSupplier) Resources() ([]resource.Resource, error)

    type TerraformProvider

    type TerraformProvider struct {
    	// contains filtered or unexported fields
    }

    func NewTerraFormProvider

    func NewTerraFormProvider() (*TerraformProvider, error)

    func (*TerraformProvider) Cleanup

    func (p *TerraformProvider) Cleanup()

    func (*TerraformProvider) ReadResource

    func (p *TerraformProvider) ReadResource(args tf.ReadResourceArgs) (*cty.Value, error)

    func (*TerraformProvider) Runner

    func (*TerraformProvider) Schema

    func (p *TerraformProvider) Schema() map[string]providers.Schema

    type VPCSecurityGroupRuleSupplier

    type VPCSecurityGroupRuleSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewVPCSecurityGroupRuleSupplier

    func NewVPCSecurityGroupRuleSupplier(provider *TerraformProvider) *VPCSecurityGroupRuleSupplier

    func (VPCSecurityGroupRuleSupplier) Resources

    type VPCSecurityGroupSupplier

    type VPCSecurityGroupSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewVPCSecurityGroupSupplier

    func NewVPCSecurityGroupSupplier(provider *TerraformProvider) *VPCSecurityGroupSupplier

    func (VPCSecurityGroupSupplier) Resources

    func (s VPCSecurityGroupSupplier) Resources() ([]resource.Resource, error)

    type VPCSupplier

    type VPCSupplier struct {
    	// contains filtered or unexported fields
    }

    func NewVPCSupplier

    func NewVPCSupplier(provider *TerraformProvider) *VPCSupplier

    func (VPCSupplier) Resources

    func (s VPCSupplier) Resources() ([]resource.Resource, error)

    Directories

    Path Synopsis