Documentation ¶
Index ¶
- Constants
- func NewSubscription() *subscription.Subscription
- func SuppressIfImportedFromGKE(k, old, new string, d *schema.ResourceData) bool
- func ToJson(object interface{}) (string, error)
- type AWSClusterWrapper
- type ElastigroupAWSBeanstalkTerraformResource
- func (res *ElastigroupAWSBeanstalkTerraformResource) MaintenanceState(resourceData *schema.ResourceData, meta interface{}) (string, error)
- func (res *ElastigroupAWSBeanstalkTerraformResource) OnCreate(importedGroup *aws.Group, resourceData *schema.ResourceData, meta interface{}) (*aws.Group, error)
- func (res *ElastigroupAWSBeanstalkTerraformResource) OnRead(elastigroup *aws.Group, resourceData *schema.ResourceData, meta interface{}) error
- func (res *ElastigroupAWSBeanstalkTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *aws.Group, error)
- type ElastigroupAWSBeanstalkWrapper
- type ElastigroupAzureTerraformResource
- func (res *ElastigroupAzureTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*azure.Group, error)
- func (res *ElastigroupAzureTerraformResource) OnRead(elastigroup *azure.Group, resourceData *schema.ResourceData, meta interface{}) error
- func (res *ElastigroupAzureTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *azure.Group, error)
- type ElastigroupAzureWrapper
- type ElastigroupGCPTerraformResource
- func (res *ElastigroupGCPTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*gcp.Group, error)
- func (res *ElastigroupGCPTerraformResource) OnRead(elastigroup *gcp.Group, resourceData *schema.ResourceData, meta interface{}) error
- func (res *ElastigroupGCPTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *gcp.Group, error)
- type ElastigroupGCPWrapper
- type ElastigroupGKETerraformResource
- func (res *ElastigroupGKETerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*gcp.Group, error)
- func (res *ElastigroupGKETerraformResource) OnImport(templateGroup *gcp.Group, resourceData *schema.ResourceData, meta interface{}) (*gcp.ImportGKEGroup, error)
- func (res *ElastigroupGKETerraformResource) OnMerge(importedGroup *gcp.Group, resourceData *schema.ResourceData, meta interface{}) (*gcp.Group, error)
- func (res *ElastigroupGKETerraformResource) OnRead(elastigroup *gcp.Group, resourceData *schema.ResourceData, meta interface{}) error
- func (res *ElastigroupGKETerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *gcp.Group, error)
- type ElastigroupGKEWrapper
- type ElastigroupTerraformResource
- func (res *ElastigroupTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*aws.Group, error)
- func (res *ElastigroupTerraformResource) OnRead(elastigroup *aws.Group, resourceData *schema.ResourceData, meta interface{}) error
- func (res *ElastigroupTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *aws.Group, error)
- type ElastigroupWrapper
- type FieldName
- type GKEClusterWrapper
- type GenericField
- type GenericFields
- type GenericResource
- type ImportGKEWrapper
- type LaunchSpecWrapper
- type LogFormat
- type MRScalerAWSTerraformResource
- func (res *MRScalerAWSTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*mrscaler.Scaler, error)
- func (res *MRScalerAWSTerraformResource) OnRead(mrscaler *mrscaler.Scaler, resourceData *schema.ResourceData, meta interface{}) error
- func (res *MRScalerAWSTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *mrscaler.Scaler, error)
- type MRScalerAWSWrapper
- type MultaiBalancerTerraformResource
- func (res *MultaiBalancerTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*multai.LoadBalancer, error)
- func (res *MultaiBalancerTerraformResource) OnRead(balancer *multai.LoadBalancer, resourceData *schema.ResourceData, ...) error
- func (res *MultaiBalancerTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *multai.LoadBalancer, error)
- type MultaiBalancerWrapper
- type MultaiDeploymentTerraformResource
- func (res *MultaiDeploymentTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*multai.Deployment, error)
- func (res *MultaiDeploymentTerraformResource) OnRead(deployment *multai.Deployment, resourceData *schema.ResourceData, ...) error
- func (res *MultaiDeploymentTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *multai.Deployment, error)
- type MultaiDeploymentWrapper
- type MultaiListenerTerraformResource
- func (res *MultaiListenerTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*multai.Listener, error)
- func (res *MultaiListenerTerraformResource) OnRead(listener *multai.Listener, resourceData *schema.ResourceData, meta interface{}) error
- func (res *MultaiListenerTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *multai.Listener, error)
- type MultaiListenerWrapper
- type MultaiRoutingRuleTerraformResource
- func (res *MultaiRoutingRuleTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*multai.RoutingRule, error)
- func (res *MultaiRoutingRuleTerraformResource) OnRead(routingRule *multai.RoutingRule, resourceData *schema.ResourceData, ...) error
- func (res *MultaiRoutingRuleTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *multai.RoutingRule, error)
- type MultaiRoutingRuleWrapper
- type MultaiTargetSetTerraformResource
- func (res *MultaiTargetSetTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*multai.TargetSet, error)
- func (res *MultaiTargetSetTerraformResource) OnRead(targetSet *multai.TargetSet, resourceData *schema.ResourceData, ...) error
- func (res *MultaiTargetSetTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *multai.TargetSet, error)
- type MultaiTargetSetWrapper
- type MultaiTargetTerraformResource
- func (res *MultaiTargetTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*multai.Target, error)
- func (res *MultaiTargetTerraformResource) OnRead(target *multai.Target, resourceData *schema.ResourceData, meta interface{}) error
- func (res *MultaiTargetTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *multai.Target, error)
- type MultaiTargetWrapper
- type OceanAWSLaunchSpecTerraformResource
- func (res *OceanAWSLaunchSpecTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*aws.LaunchSpec, error)
- func (res *OceanAWSLaunchSpecTerraformResource) OnRead(launchSpec *aws.LaunchSpec, resourceData *schema.ResourceData, ...) error
- func (res *OceanAWSLaunchSpecTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *aws.LaunchSpec, error)
- type OceanAWSTerraformResource
- func (res *OceanAWSTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*aws.Cluster, error)
- func (res *OceanAWSTerraformResource) OnRead(cluster *aws.Cluster, resourceData *schema.ResourceData, meta interface{}) error
- func (res *OceanAWSTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *aws.Cluster, error)
- type OceanGKETerraformResource
- func (res *OceanGKETerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*gcp.Cluster, error)
- func (res *OceanGKETerraformResource) OnRead(cluster *gcp.Cluster, resourceData *schema.ResourceData, meta interface{}) error
- func (res *OceanGKETerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *gcp.Cluster, error)
- type ResourceAffinity
- type ResourceName
- type SubscriptionTerraformResource
- func (res *SubscriptionTerraformResource) OnCreate(resourceData *schema.ResourceData, meta interface{}) (*subscription.Subscription, error)
- func (res *SubscriptionTerraformResource) OnRead(subscription *subscription.Subscription, resourceData *schema.ResourceData, ...) error
- func (res *SubscriptionTerraformResource) OnUpdate(resourceData *schema.ResourceData, meta interface{}) (bool, *subscription.Subscription, error)
Constants ¶
const ( FailureFieldReadPattern = "failed reading field %v - %#v" FailureFieldCreatePattern = "failed creating field %v - %#v" FailureFieldUpdatePattern = "failed updating field %v - %#v" FieldUpdateNotAllowedPattern = "field [%v] is immutable, cannot be changed post group creation" FieldCreateNotAllowedPattern = "field [%v] can only be changed after the group is created" ProviderToken FieldName = "token" ProviderAccount FieldName = "account" Subscription ResourceAffinity = "Subscription" ElastigroupAWSBeanstalk ResourceAffinity = "ElastigroupAWSBeanstalk" OceanAWS ResourceAffinity = "Ocean_AWS" OceanAWSInstanceTypes ResourceAffinity = "Ocean_AWS_Instance_Types" OceanAWSAutoScaling ResourceAffinity = "Ocean_AWS_Auto_Scaling" OceanAWSStrategy ResourceAffinity = "Ocean_AWS_Strategy" OceanAWSLaunchConfiguration ResourceAffinity = "Ocean_AWS_Launch_Configuration" OceanAWSLaunchSpec ResourceAffinity = "Ocean_AWS_Launch_Spec" OceanGKE ResourceAffinity = "Ocean_GKE" OceanGKEInstanceTypes ResourceAffinity = "Ocean_GKE_Instance_Types" OceanGKEAutoScaling ResourceAffinity = "Ocean_GKE_Auto_Scaling" OceanGKELaunchConfiguration ResourceAffinity = "Ocean_GKE_Launch_Configuration" OceanGKENetworkInterface ResourceAffinity = "Ocean_GKE_Network_Interface" ElastigroupAWS ResourceAffinity = "Elastigroup_AWS" ElastigroupAWSInstanceType ResourceAffinity = "Elastigroup_AWS_Instance_Type" ElastigroupAWSStrategy ResourceAffinity = "Elastigroup_AWS_Strategy" ElastigroupAWSStateful ResourceAffinity = "Elastigroup_AWS_Stateful" ElastigroupAWSLaunchConfiguration ResourceAffinity = "Elastigroup_AWS_Launch_Configuration" ElastigroupAWSNetworkInterface ResourceAffinity = "Elastigroup_AWS_Network_Interface" ElastigroupAWSScheduledTask ResourceAffinity = "Elastigroup_AWS_Scheduled_Task" ElastigroupAWSBlockDevices ResourceAffinity = "Elastigroup_AWS_Block_Device" ElastigroupAWSScalingPolicies ResourceAffinity = "Elastigroup_AWS_Scaling_Policies" ElastigroupAWSIntegrations ResourceAffinity = "Elastigroup_AWS_Integrations" ElastigroupGCP ResourceAffinity = "Elastigroup_GCP" ElastigroupGCPDisk ResourceAffinity = "Elastigroup_GCP_Disk" ElastigroupGCPGPU ResourceAffinity = "Elastigroup_GPC_GPU" ElastigroupGCPInstanceType ResourceAffinity = "Elastigroup_GCP_Instance_Type" ElastigroupGCPIntegrations ResourceAffinity = "Elastigroup_GCP_Integrations" ElastigroupGCPLaunchConfiguration ResourceAffinity = "Elastigroup_GCP_Launch_Configuration" ElastigroupGCPNetworkInterface ResourceAffinity = "Elastigroup_GCP_Network_Interface" ElastigroupGCPScalingPolicies ResourceAffinity = "Elastigroup_GCP_Scaling_Policies" ElastigroupGCPStrategy ResourceAffinity = "Elastigroup_GCP_Strategy" ElastigroupGKE ResourceAffinity = "Elastigroup_GKE" ElastigroupAzure ResourceAffinity = "Elastigroup_Azure" ElastigroupAzureStrategy ResourceAffinity = "Elastigroup_Azure_Strategy" ElastigroupAzureLogin ResourceAffinity = "Elastigroup_Azure_Login" ElastigroupAzureNetwork ResourceAffinity = "Elastigroup_Azure_Network" ElastigroupAzureLoadBalancers ResourceAffinity = "Elastigroup_Azure_Load_Balancers" ElastigroupAzureVMSizes ResourceAffinity = "Elastigroup_Azure_VM_Sizes" ElastigroupAzureImage ResourceAffinity = "Elastigroup_Azure_Image" ElastigroupAzureIntegrations ResourceAffinity = "Elastigroup_Azure_Integrations" ElastigroupAzureLaunchConfiguration ResourceAffinity = "Elastigroup_Azure_Launch_Configuration" ElastigroupAzureHealthCheck ResourceAffinity = "Elastigroup_Azure_Health_Check" ElastigroupAzureScalingPolicies ResourceAffinity = "Elastigroup_Azure_Scaling_Policies" ElastigroupAzureScheduledTask ResourceAffinity = "Elastigroup_Azure_Scheduled_Task" MRScalerAWS ResourceAffinity = "MRScaler_AWS" MRScalerAWSTaskScalingPolicies ResourceAffinity = "MRScaler_Task_AWS_Scaling_Polices" MRScalerAWSCoreScalingPolicies ResourceAffinity = "MRScaler_Core_AWS_Scaling_Polices" MRScalerAWSCoreGroup ResourceAffinity = "MRScaler_AWS_Core_Group" MRScalerAWSMasterGroup ResourceAffinity = "MRScaler_AWS_Master_Group" MRScalerAWSTaskGroup ResourceAffinity = "MRScaler_AWS_Task_Group" MRScalerAWSStrategy ResourceAffinity = "MRScaler_AWS_Strategy" MRScalerAWSCluster ResourceAffinity = "MRScaler_AWS_Cluster" MRScalerAWSScheduledTask ResourceAffinity = "MRScaler_AWS_Scheduled_Task" MultaiBalancer ResourceAffinity = "Multai_Balancer" MultaiDeployment ResourceAffinity = "Multai_Deployment" MultaiListener ResourceAffinity = "Multai_Listener" MultaiRoutingRule ResourceAffinity = "Multai_Routing_Rule" MultaiTarget ResourceAffinity = "Multai_Target" MultaiTargetSet ResourceAffinity = "Multai_Target_Set" ResourceFieldOnRead LogFormat = "onRead() -> %s -> %s" ResourceFieldOnCreate LogFormat = "onCreate() -> %s -> %s" ResourceFieldOnUpdate LogFormat = "onUpdate() -> %s -> %s" ResourceFieldOnMerge LogFormat = "onMerge() -> %s -> %s" ResourceOnDelete LogFormat = "onDelete() -> %s -> started for %s..." ResourceOnUpdate LogFormat = "onUpdate() -> %s -> started for %s..." ResourceOnRead LogFormat = "onRead() -> %s -> started for %s..." ResourceOnCreate LogFormat = "onCreate() -> %s -> started..." )
Variables ¶
This section is empty.
Functions ¶
func NewSubscription ¶ added in v1.1.0
func NewSubscription() *subscription.Subscription
func SuppressIfImportedFromGKE ¶ added in v1.10.0
func SuppressIfImportedFromGKE(k, old, new string, d *schema.ResourceData) bool
SuppressIfImportedFromGKE suppresses a large diff between the state and user's template as a result of the import. users may update imported fields, but may not set them to null
Types ¶
type AWSClusterWrapper ¶ added in v1.12.0
type AWSClusterWrapper struct {
// contains filtered or unexported fields
}
func NewClusterWrapper ¶ added in v1.6.0
func NewClusterWrapper() *AWSClusterWrapper
func (*AWSClusterWrapper) GetCluster ¶ added in v1.12.0
func (clusterWrapper *AWSClusterWrapper) GetCluster() *aws.Cluster
func (*AWSClusterWrapper) SetCluster ¶ added in v1.12.0
func (clusterWrapper *AWSClusterWrapper) SetCluster(cluster *aws.Cluster)
type ElastigroupAWSBeanstalkTerraformResource ¶ added in v1.5.0
type ElastigroupAWSBeanstalkTerraformResource struct {
GenericResource // embedding
}
var ElastigroupAWSBeanstalkResource *ElastigroupAWSBeanstalkTerraformResource
func NewElastigroupAWSBeanstalkResource ¶ added in v1.5.0
func NewElastigroupAWSBeanstalkResource(fieldsMap map[FieldName]*GenericField) *ElastigroupAWSBeanstalkTerraformResource
func (*ElastigroupAWSBeanstalkTerraformResource) MaintenanceState ¶ added in v1.5.0
func (res *ElastigroupAWSBeanstalkTerraformResource) MaintenanceState( resourceData *schema.ResourceData, meta interface{}) (string, error)
func (*ElastigroupAWSBeanstalkTerraformResource) OnCreate ¶ added in v1.5.0
func (res *ElastigroupAWSBeanstalkTerraformResource) OnCreate( importedGroup *aws.Group, resourceData *schema.ResourceData, meta interface{}) (*aws.Group, error)
func (*ElastigroupAWSBeanstalkTerraformResource) OnRead ¶ added in v1.5.0
func (res *ElastigroupAWSBeanstalkTerraformResource) OnRead( elastigroup *aws.Group, resourceData *schema.ResourceData, meta interface{}) error
func (*ElastigroupAWSBeanstalkTerraformResource) OnUpdate ¶ added in v1.5.0
func (res *ElastigroupAWSBeanstalkTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *aws.Group, error)
type ElastigroupAWSBeanstalkWrapper ¶ added in v1.5.0
type ElastigroupAWSBeanstalkWrapper struct { BeanstalkEnvironmentName string // Load balancer states StatusElbUpdated bool StatusTgUpdated bool StatusMlbUpdated bool // Block devices states StatusEphemeralBlockDeviceUpdated bool StatusEbsBlockDeviceUpdated bool // contains filtered or unexported fields }
func NewElastigroupAWSBeanstalkWrapper ¶ added in v1.5.0
func NewElastigroupAWSBeanstalkWrapper() *ElastigroupAWSBeanstalkWrapper
Spotinst elastigroup must have a wrapper struct. Reason is that there are multiple fields who share the same elastigroup API object e.g. LoadBalancersConfig fields and BlockDeviceMapping fields Wrapper struct intended to help reflecting these fields state properly into the elastigroup object.
func (*ElastigroupAWSBeanstalkWrapper) GetElastigroupAWSBeanstalk ¶ added in v1.5.0
func (egWrapper *ElastigroupAWSBeanstalkWrapper) GetElastigroupAWSBeanstalk() *aws.Group
func (*ElastigroupAWSBeanstalkWrapper) SetElastigroupAWSBeanstalk ¶ added in v1.5.0
func (egWrapper *ElastigroupAWSBeanstalkWrapper) SetElastigroupAWSBeanstalk(elastigroup *aws.Group)
type ElastigroupAzureTerraformResource ¶ added in v1.6.0
type ElastigroupAzureTerraformResource struct {
GenericResource // embedding
}
var ElastigroupAzureResource *ElastigroupAzureTerraformResource
func NewElastigroupAzureResource ¶ added in v1.6.0
func NewElastigroupAzureResource(fieldsMap map[FieldName]*GenericField) *ElastigroupAzureTerraformResource
func (*ElastigroupAzureTerraformResource) OnCreate ¶ added in v1.6.0
func (res *ElastigroupAzureTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*azure.Group, error)
func (*ElastigroupAzureTerraformResource) OnRead ¶ added in v1.6.0
func (res *ElastigroupAzureTerraformResource) OnRead( elastigroup *azure.Group, resourceData *schema.ResourceData, meta interface{}) error
func (*ElastigroupAzureTerraformResource) OnUpdate ¶ added in v1.6.0
func (res *ElastigroupAzureTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *azure.Group, error)
type ElastigroupAzureWrapper ¶ added in v1.6.0
type ElastigroupAzureWrapper struct {
// contains filtered or unexported fields
}
func NewElastigroupAzureWrapper ¶ added in v1.6.0
func NewElastigroupAzureWrapper() *ElastigroupAzureWrapper
Spotinst elastigroup must have a wrapper struct. Reason is that there are multiple fields who share the same elastigroup API object e.g. LoadBalancersConfig fields and BlockDeviceMapping fields Wrapper struct intended to help reflecting these fields state properly into the elastigroup object.
func (*ElastigroupAzureWrapper) GetElastigroup ¶ added in v1.6.0
func (egWrapper *ElastigroupAzureWrapper) GetElastigroup() *azure.Group
func (*ElastigroupAzureWrapper) SetElastigroup ¶ added in v1.6.0
func (egWrapper *ElastigroupAzureWrapper) SetElastigroup(elastigroup *azure.Group)
type ElastigroupGCPTerraformResource ¶ added in v1.6.0
type ElastigroupGCPTerraformResource struct {
GenericResource // embedding
}
var ElastigroupGCPResource *ElastigroupGCPTerraformResource
func NewElastigroupGCPResource ¶ added in v1.6.0
func NewElastigroupGCPResource(fieldMap map[FieldName]*GenericField) *ElastigroupGCPTerraformResource
NewElastigroupGCPResource creates a new GCP resource
func (*ElastigroupGCPTerraformResource) OnCreate ¶ added in v1.6.0
func (res *ElastigroupGCPTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*gcp.Group, error)
OnCreate is called when creating a new resource block and returns a new elastigroup or an error.
func (*ElastigroupGCPTerraformResource) OnRead ¶ added in v1.6.0
func (res *ElastigroupGCPTerraformResource) OnRead( elastigroup *gcp.Group, resourceData *schema.ResourceData, meta interface{}) error
OnRead is called when reading an existing resource and throws an error if it is unable to do so.
func (*ElastigroupGCPTerraformResource) OnUpdate ¶ added in v1.6.0
func (res *ElastigroupGCPTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *gcp.Group, error)
OnUpdate is called when updating an existing resource and returns an elastigroup with a bool indicating if had been updated, or an error.
type ElastigroupGCPWrapper ¶ added in v1.6.0
type ElastigroupGCPWrapper struct {
// contains filtered or unexported fields
}
func NewElastigroupGCPWrapper ¶ added in v1.6.0
func NewElastigroupGCPWrapper() *ElastigroupGCPWrapper
NewElastigroupGCPWrapper avoids parameter collisions and returns a GCP Elastigroup. Spotinst elastigroup must have a wrapper struct. The reason is that there are multiple fields that share the same elastigroup API object. the wrapper struct is intended to help reflect the field states into the elastigroup object properly.
func NewElastigroupGKEWrapper ¶ added in v1.6.0
func NewElastigroupGKEWrapper() *ElastigroupGCPWrapper
NewElastigroupGKEWrapper avoids parameter collisions and returns a GKE Elastigroup. Spotinst elastigroup must have a wrapper struct. The reason is that there are multiple fields that share the same elastigroup API object. the wrapper struct is intended to help reflect the field states into the elastigroup object properly.
func (*ElastigroupGCPWrapper) GetElastigroup ¶ added in v1.6.0
func (egWrapper *ElastigroupGCPWrapper) GetElastigroup() *gcp.Group
GetElastigroup returns a wrapped elastigroup
func (*ElastigroupGCPWrapper) SetElastigroup ¶ added in v1.6.0
func (egWrapper *ElastigroupGCPWrapper) SetElastigroup(elastigroup *gcp.Group)
SetElastigroup applies elastigroup fields to the elastigroup wrapper.
type ElastigroupGKETerraformResource ¶ added in v1.6.0
type ElastigroupGKETerraformResource struct {
GenericResource // embedding
}
var ElastigroupGKEResource *ElastigroupGKETerraformResource
func NewElastigroupGKEResource ¶ added in v1.6.0
func NewElastigroupGKEResource(fieldMap map[FieldName]*GenericField) *ElastigroupGKETerraformResource
NewElastigroupGKEResource creates a new GKE resource
func (*ElastigroupGKETerraformResource) OnCreate ¶ added in v1.6.0
func (res *ElastigroupGKETerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*gcp.Group, error)
OnCreate is called when creating a new resource block and returns a new elastigroup or an error.
func (*ElastigroupGKETerraformResource) OnImport ¶ added in v1.10.0
func (res *ElastigroupGKETerraformResource) OnImport( templateGroup *gcp.Group, resourceData *schema.ResourceData, meta interface{}) (*gcp.ImportGKEGroup, error)
func (*ElastigroupGKETerraformResource) OnMerge ¶ added in v1.10.0
func (res *ElastigroupGKETerraformResource) OnMerge( importedGroup *gcp.Group, resourceData *schema.ResourceData, meta interface{}) (*gcp.Group, error)
func (*ElastigroupGKETerraformResource) OnRead ¶ added in v1.6.0
func (res *ElastigroupGKETerraformResource) OnRead( elastigroup *gcp.Group, resourceData *schema.ResourceData, meta interface{}) error
OnRead is called when reading an existing resource and throws an error if it is unable to do so.
func (*ElastigroupGKETerraformResource) OnUpdate ¶ added in v1.6.0
func (res *ElastigroupGKETerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *gcp.Group, error)
OnUpdate is called when updating an existing resource and returns an elastigroup with a bool indicating if had been updated, or an error.
type ElastigroupGKEWrapper ¶ added in v1.6.0
type ElastigroupGKEWrapper struct { ClusterID string ClusterZoneName string // contains filtered or unexported fields }
func (*ElastigroupGKEWrapper) GetElastigroup ¶ added in v1.6.0
func (egWrapper *ElastigroupGKEWrapper) GetElastigroup() *gcp.Group
GetElastigroup returns a wrapped elastigroup
func (*ElastigroupGKEWrapper) SetElastigroup ¶ added in v1.6.0
func (egWrapper *ElastigroupGKEWrapper) SetElastigroup(elastigroup *gcp.Group)
SetElastigroup applies elastigroup fields to the elastigroup wrapper.
type ElastigroupTerraformResource ¶ added in v1.1.0
type ElastigroupTerraformResource struct {
GenericResource // embedding
}
var ElastigroupResource *ElastigroupTerraformResource
func NewElastigroupResource ¶
func NewElastigroupResource(fieldsMap map[FieldName]*GenericField) *ElastigroupTerraformResource
func (*ElastigroupTerraformResource) OnCreate ¶ added in v1.1.0
func (res *ElastigroupTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*aws.Group, error)
func (*ElastigroupTerraformResource) OnRead ¶ added in v1.1.0
func (res *ElastigroupTerraformResource) OnRead( elastigroup *aws.Group, resourceData *schema.ResourceData, meta interface{}) error
func (*ElastigroupTerraformResource) OnUpdate ¶ added in v1.1.0
func (res *ElastigroupTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *aws.Group, error)
type ElastigroupWrapper ¶ added in v1.1.0
type ElastigroupWrapper struct { // Load balancer states StatusElbUpdated bool StatusTgUpdated bool StatusMlbUpdated bool // Block devices states StatusEphemeralBlockDeviceUpdated bool StatusEbsBlockDeviceUpdated bool // contains filtered or unexported fields }
func NewElastigroupWrapper ¶ added in v1.1.0
func NewElastigroupWrapper() *ElastigroupWrapper
Spotinst elastigroup must have a wrapper struct. Reason is that there are multiple fields who share the same elastigroup API object e.g. LoadBalancersConfig fields and BlockDeviceMapping fields Wrapper struct intended to help reflecting these fields state properly into the elastigroup object.
func (*ElastigroupWrapper) GetElastigroup ¶ added in v1.1.0
func (egWrapper *ElastigroupWrapper) GetElastigroup() *aws.Group
func (*ElastigroupWrapper) SetElastigroup ¶ added in v1.1.0
func (egWrapper *ElastigroupWrapper) SetElastigroup(elastigroup *aws.Group)
type GKEClusterWrapper ¶ added in v1.12.0
type GKEClusterWrapper struct {
// contains filtered or unexported fields
}
func NewGKEClusterWrapper ¶ added in v1.12.0
func NewGKEClusterWrapper() *GKEClusterWrapper
func (*GKEClusterWrapper) GetCluster ¶ added in v1.12.0
func (clusterWrapper *GKEClusterWrapper) GetCluster() *gcp.Cluster
func (*GKEClusterWrapper) SetCluster ¶ added in v1.12.0
func (clusterWrapper *GKEClusterWrapper) SetCluster(cluster *gcp.Cluster)
type GenericField ¶
type GenericField struct {
// contains filtered or unexported fields
}
func NewGenericField ¶
func NewGenericField( resourceAffinity ResourceAffinity, fieldName FieldName, schema *schema.Schema, onRead onFieldRead, onCreate onFieldCreate, onUpdate onFieldUpdate, hasChangeCustom hasFieldChange) *GenericField
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Constructors
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
func (*GenericField) GetSchema ¶
func (field *GenericField) GetSchema() *schema.Schema
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Methods: GenericField
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
type GenericFields ¶
type GenericFields struct {
// contains filtered or unexported fields
}
func NewGenericFields ¶
func NewGenericFields(fieldsMap map[FieldName]*GenericField) *GenericFields
type GenericResource ¶
type GenericResource struct {
// contains filtered or unexported fields
}
func (*GenericResource) GetField ¶
func (res *GenericResource) GetField(fieldName FieldName) *GenericField
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Methods: GenericResource
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
func (*GenericResource) GetName ¶
func (res *GenericResource) GetName() string
func (*GenericResource) GetSchemaMap ¶
func (res *GenericResource) GetSchemaMap() map[string]*schema.Schema
type ImportGKEWrapper ¶ added in v1.6.0
type ImportGKEWrapper struct { ClusterID string ClusterZoneName string // contains filtered or unexported fields }
func NewImportGKEWrapper ¶ added in v1.6.0
func NewImportGKEWrapper() *ImportGKEWrapper
func (*ImportGKEWrapper) GetImport ¶ added in v1.6.0
func (egWrapper *ImportGKEWrapper) GetImport() *gcp.ImportGKEGroup
func (*ImportGKEWrapper) SetImport ¶ added in v1.6.0
func (egWrapper *ImportGKEWrapper) SetImport(elastigroup *gcp.ImportGKEGroup)
type LaunchSpecWrapper ¶ added in v1.11.0
type LaunchSpecWrapper struct {
// contains filtered or unexported fields
}
func NewLaunchSpecWrapper ¶ added in v1.11.0
func NewLaunchSpecWrapper() *LaunchSpecWrapper
func (*LaunchSpecWrapper) GetLaunchSpec ¶ added in v1.11.0
func (launchSpecWrapper *LaunchSpecWrapper) GetLaunchSpec() *aws.LaunchSpec
func (*LaunchSpecWrapper) SetLaunchSpec ¶ added in v1.11.0
func (launchSpecWrapper *LaunchSpecWrapper) SetLaunchSpec(launchSpec *aws.LaunchSpec)
type MRScalerAWSTerraformResource ¶ added in v1.7.0
type MRScalerAWSTerraformResource struct {
GenericResource // embedding
}
var MRScalerAWSResource *MRScalerAWSTerraformResource
func NewMRScalerAWSResource ¶ added in v1.7.0
func NewMRScalerAWSResource(fieldsMap map[FieldName]*GenericField) *MRScalerAWSTerraformResource
func (*MRScalerAWSTerraformResource) OnCreate ¶ added in v1.7.0
func (res *MRScalerAWSTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*mrscaler.Scaler, error)
func (*MRScalerAWSTerraformResource) OnRead ¶ added in v1.7.0
func (res *MRScalerAWSTerraformResource) OnRead( mrscaler *mrscaler.Scaler, resourceData *schema.ResourceData, meta interface{}) error
func (*MRScalerAWSTerraformResource) OnUpdate ¶ added in v1.7.0
func (res *MRScalerAWSTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *mrscaler.Scaler, error)
type MRScalerAWSWrapper ¶ added in v1.7.0
type MRScalerAWSWrapper struct {
// contains filtered or unexported fields
}
func NewMRScalerAWSWrapper ¶ added in v1.7.0
func NewMRScalerAWSWrapper() *MRScalerAWSWrapper
func (*MRScalerAWSWrapper) GetMRScalerAWS ¶ added in v1.7.0
func (mrsWrapper *MRScalerAWSWrapper) GetMRScalerAWS() *mrscaler.Scaler
func (*MRScalerAWSWrapper) SetMRScalerAWS ¶ added in v1.7.0
func (mrsWrapper *MRScalerAWSWrapper) SetMRScalerAWS(mrscaler *mrscaler.Scaler)
type MultaiBalancerTerraformResource ¶ added in v1.7.0
type MultaiBalancerTerraformResource struct {
GenericResource // embedding
}
var MultaiBalancerResource *MultaiBalancerTerraformResource
func NewMultaiBalancerResource ¶ added in v1.7.0
func NewMultaiBalancerResource(fieldMap map[FieldName]*GenericField) *MultaiBalancerTerraformResource
func (*MultaiBalancerTerraformResource) OnCreate ¶ added in v1.7.0
func (res *MultaiBalancerTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*multai.LoadBalancer, error)
func (*MultaiBalancerTerraformResource) OnRead ¶ added in v1.7.0
func (res *MultaiBalancerTerraformResource) OnRead( balancer *multai.LoadBalancer, resourceData *schema.ResourceData, meta interface{}) error
func (*MultaiBalancerTerraformResource) OnUpdate ¶ added in v1.7.0
func (res *MultaiBalancerTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *multai.LoadBalancer, error)
type MultaiBalancerWrapper ¶ added in v1.7.0
type MultaiBalancerWrapper struct {
// contains filtered or unexported fields
}
func NewMultaiBalancerWrapper ¶ added in v1.7.0
func NewMultaiBalancerWrapper() *MultaiBalancerWrapper
func (*MultaiBalancerWrapper) GetMultaiBalancer ¶ added in v1.7.0
func (mlbWrapper *MultaiBalancerWrapper) GetMultaiBalancer() *multai.LoadBalancer
func (*MultaiBalancerWrapper) SetMultaiBalancer ¶ added in v1.7.0
func (mlbWrapper *MultaiBalancerWrapper) SetMultaiBalancer(balancer *multai.LoadBalancer)
type MultaiDeploymentTerraformResource ¶ added in v1.7.0
type MultaiDeploymentTerraformResource struct {
GenericResource // embedding
}
var MultaiDeploymentResource *MultaiDeploymentTerraformResource
func NewMultaiDeploymentResource ¶ added in v1.7.0
func NewMultaiDeploymentResource(fieldMap map[FieldName]*GenericField) *MultaiDeploymentTerraformResource
func (*MultaiDeploymentTerraformResource) OnCreate ¶ added in v1.7.0
func (res *MultaiDeploymentTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*multai.Deployment, error)
func (*MultaiDeploymentTerraformResource) OnRead ¶ added in v1.7.0
func (res *MultaiDeploymentTerraformResource) OnRead( deployment *multai.Deployment, resourceData *schema.ResourceData, meta interface{}) error
func (*MultaiDeploymentTerraformResource) OnUpdate ¶ added in v1.7.0
func (res *MultaiDeploymentTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *multai.Deployment, error)
type MultaiDeploymentWrapper ¶ added in v1.7.0
type MultaiDeploymentWrapper struct {
// contains filtered or unexported fields
}
func NewMultaiDeploymentWrapper ¶ added in v1.7.0
func NewMultaiDeploymentWrapper() *MultaiDeploymentWrapper
func (*MultaiDeploymentWrapper) GetMultaiDeployment ¶ added in v1.7.0
func (mlbWrapper *MultaiDeploymentWrapper) GetMultaiDeployment() *multai.Deployment
func (*MultaiDeploymentWrapper) SetMultaiDeployment ¶ added in v1.7.0
func (mlbWrapper *MultaiDeploymentWrapper) SetMultaiDeployment(deployment *multai.Deployment)
type MultaiListenerTerraformResource ¶ added in v1.7.0
type MultaiListenerTerraformResource struct {
GenericResource // embedding
}
var MultaiListenerResource *MultaiListenerTerraformResource
func NewMultaiListenerResource ¶ added in v1.7.0
func NewMultaiListenerResource(fieldMap map[FieldName]*GenericField) *MultaiListenerTerraformResource
func (*MultaiListenerTerraformResource) OnCreate ¶ added in v1.7.0
func (res *MultaiListenerTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*multai.Listener, error)
func (*MultaiListenerTerraformResource) OnRead ¶ added in v1.7.0
func (res *MultaiListenerTerraformResource) OnRead( listener *multai.Listener, resourceData *schema.ResourceData, meta interface{}) error
func (*MultaiListenerTerraformResource) OnUpdate ¶ added in v1.7.0
func (res *MultaiListenerTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *multai.Listener, error)
type MultaiListenerWrapper ¶ added in v1.7.0
type MultaiListenerWrapper struct {
// contains filtered or unexported fields
}
func NewMultaiListenerWrapper ¶ added in v1.7.0
func NewMultaiListenerWrapper() *MultaiListenerWrapper
func (*MultaiListenerWrapper) GetMultaiListener ¶ added in v1.7.0
func (mlbWrapper *MultaiListenerWrapper) GetMultaiListener() *multai.Listener
func (*MultaiListenerWrapper) SetMultaiListener ¶ added in v1.7.0
func (mlbWrapper *MultaiListenerWrapper) SetMultaiListener(listener *multai.Listener)
type MultaiRoutingRuleTerraformResource ¶ added in v1.7.0
type MultaiRoutingRuleTerraformResource struct {
GenericResource // embedding
}
var MultaiRoutingRuleResource *MultaiRoutingRuleTerraformResource
func NewMultaiRoutingRuleResource ¶ added in v1.7.0
func NewMultaiRoutingRuleResource(fieldMap map[FieldName]*GenericField) *MultaiRoutingRuleTerraformResource
func (*MultaiRoutingRuleTerraformResource) OnCreate ¶ added in v1.7.0
func (res *MultaiRoutingRuleTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*multai.RoutingRule, error)
func (*MultaiRoutingRuleTerraformResource) OnRead ¶ added in v1.7.0
func (res *MultaiRoutingRuleTerraformResource) OnRead( routingRule *multai.RoutingRule, resourceData *schema.ResourceData, meta interface{}) error
func (*MultaiRoutingRuleTerraformResource) OnUpdate ¶ added in v1.7.0
func (res *MultaiRoutingRuleTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *multai.RoutingRule, error)
type MultaiRoutingRuleWrapper ¶ added in v1.7.0
type MultaiRoutingRuleWrapper struct {
// contains filtered or unexported fields
}
func NewMultaiRoutingRuleWrapper ¶ added in v1.7.0
func NewMultaiRoutingRuleWrapper() *MultaiRoutingRuleWrapper
func (*MultaiRoutingRuleWrapper) GetMultaiRoutingRule ¶ added in v1.7.0
func (mlbWrapper *MultaiRoutingRuleWrapper) GetMultaiRoutingRule() *multai.RoutingRule
func (*MultaiRoutingRuleWrapper) SetMultaiRoutingRule ¶ added in v1.7.0
func (mlbWrapper *MultaiRoutingRuleWrapper) SetMultaiRoutingRule(routingRule *multai.RoutingRule)
type MultaiTargetSetTerraformResource ¶ added in v1.7.0
type MultaiTargetSetTerraformResource struct {
GenericResource // embedding
}
var MultaiTargetSetResource *MultaiTargetSetTerraformResource
func NewMultaiTargetSetResource ¶ added in v1.7.0
func NewMultaiTargetSetResource(fieldMap map[FieldName]*GenericField) *MultaiTargetSetTerraformResource
func (*MultaiTargetSetTerraformResource) OnCreate ¶ added in v1.7.0
func (res *MultaiTargetSetTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*multai.TargetSet, error)
func (*MultaiTargetSetTerraformResource) OnRead ¶ added in v1.7.0
func (res *MultaiTargetSetTerraformResource) OnRead( targetSet *multai.TargetSet, resourceData *schema.ResourceData, meta interface{}) error
func (*MultaiTargetSetTerraformResource) OnUpdate ¶ added in v1.7.0
func (res *MultaiTargetSetTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *multai.TargetSet, error)
type MultaiTargetSetWrapper ¶ added in v1.7.0
type MultaiTargetSetWrapper struct {
// contains filtered or unexported fields
}
func NewMultaiTargetSetWrapper ¶ added in v1.7.0
func NewMultaiTargetSetWrapper() *MultaiTargetSetWrapper
func (*MultaiTargetSetWrapper) GetMultaiTargetSet ¶ added in v1.7.0
func (targetSetWrapper *MultaiTargetSetWrapper) GetMultaiTargetSet() *multai.TargetSet
func (*MultaiTargetSetWrapper) SetMultaiTargetSet ¶ added in v1.7.0
func (targetSetWrapper *MultaiTargetSetWrapper) SetMultaiTargetSet(targetSet *multai.TargetSet)
type MultaiTargetTerraformResource ¶ added in v1.7.0
type MultaiTargetTerraformResource struct {
GenericResource // embedding
}
var MultaiTargetResource *MultaiTargetTerraformResource
func NewMultaiTargetResource ¶ added in v1.7.0
func NewMultaiTargetResource(fieldMap map[FieldName]*GenericField) *MultaiTargetTerraformResource
func (*MultaiTargetTerraformResource) OnCreate ¶ added in v1.7.0
func (res *MultaiTargetTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*multai.Target, error)
func (*MultaiTargetTerraformResource) OnRead ¶ added in v1.7.0
func (res *MultaiTargetTerraformResource) OnRead( target *multai.Target, resourceData *schema.ResourceData, meta interface{}) error
func (*MultaiTargetTerraformResource) OnUpdate ¶ added in v1.7.0
func (res *MultaiTargetTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *multai.Target, error)
type MultaiTargetWrapper ¶ added in v1.7.0
type MultaiTargetWrapper struct {
// contains filtered or unexported fields
}
func NewMultaiTargetWrapper ¶ added in v1.7.0
func NewMultaiTargetWrapper() *MultaiTargetWrapper
func (*MultaiTargetWrapper) GetMultaiTarget ¶ added in v1.7.0
func (targetWrapper *MultaiTargetWrapper) GetMultaiTarget() *multai.Target
func (*MultaiTargetWrapper) SetMultaiTarget ¶ added in v1.7.0
func (targetWrapper *MultaiTargetWrapper) SetMultaiTarget(target *multai.Target)
type OceanAWSLaunchSpecTerraformResource ¶ added in v1.11.0
type OceanAWSLaunchSpecTerraformResource struct {
GenericResource // embedding
}
var OceanAWSLaunchSpecResource *OceanAWSLaunchSpecTerraformResource
func NewOceanAWSLaunchSpecResource ¶ added in v1.11.0
func NewOceanAWSLaunchSpecResource(fieldsMap map[FieldName]*GenericField) *OceanAWSLaunchSpecTerraformResource
func (*OceanAWSLaunchSpecTerraformResource) OnCreate ¶ added in v1.11.0
func (res *OceanAWSLaunchSpecTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*aws.LaunchSpec, error)
func (*OceanAWSLaunchSpecTerraformResource) OnRead ¶ added in v1.11.0
func (res *OceanAWSLaunchSpecTerraformResource) OnRead( launchSpec *aws.LaunchSpec, resourceData *schema.ResourceData, meta interface{}) error
func (*OceanAWSLaunchSpecTerraformResource) OnUpdate ¶ added in v1.11.0
func (res *OceanAWSLaunchSpecTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *aws.LaunchSpec, error)
type OceanAWSTerraformResource ¶ added in v1.6.0
type OceanAWSTerraformResource struct {
GenericResource // embedding
}
var OceanAWSResource *OceanAWSTerraformResource
func NewOceanAWSResource ¶ added in v1.6.0
func NewOceanAWSResource(fieldsMap map[FieldName]*GenericField) *OceanAWSTerraformResource
func (*OceanAWSTerraformResource) OnCreate ¶ added in v1.6.0
func (res *OceanAWSTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*aws.Cluster, error)
func (*OceanAWSTerraformResource) OnRead ¶ added in v1.6.0
func (res *OceanAWSTerraformResource) OnRead( cluster *aws.Cluster, resourceData *schema.ResourceData, meta interface{}) error
func (*OceanAWSTerraformResource) OnUpdate ¶ added in v1.6.0
func (res *OceanAWSTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *aws.Cluster, error)
type OceanGKETerraformResource ¶ added in v1.12.0
type OceanGKETerraformResource struct {
GenericResource // embedding
}
var OceanGKEResource *OceanGKETerraformResource
func NewOceanGKEResource ¶ added in v1.12.0
func NewOceanGKEResource(fieldsMap map[FieldName]*GenericField) *OceanGKETerraformResource
func (*OceanGKETerraformResource) OnCreate ¶ added in v1.12.0
func (res *OceanGKETerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*gcp.Cluster, error)
func (*OceanGKETerraformResource) OnRead ¶ added in v1.12.0
func (res *OceanGKETerraformResource) OnRead( cluster *gcp.Cluster, resourceData *schema.ResourceData, meta interface{}) error
func (*OceanGKETerraformResource) OnUpdate ¶ added in v1.12.0
func (res *OceanGKETerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *gcp.Cluster, error)
type ResourceAffinity ¶
type ResourceAffinity string
type ResourceName ¶
type ResourceName string
const (
ElastigroupAWSBeanstalkResourceName ResourceName = "spotinst_elastigroup_aws_beanstalk"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
ElastigroupAwsResourceName ResourceName = "spotinst_elastigroup_aws"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
ElastigroupAzureResourceName ResourceName = "spotinst_elastigroup_azure"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
ElastigroupGCPResourceName ResourceName = "spotinst_elastigroup_gcp"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
ElastigroupGKEResourceName ResourceName = "spotinst_elastigroup_gke"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
MRScalerAWSResourceName ResourceName = "spotinst_mrscaler_aws"
)
const (
MultaiBalancerResourceName ResourceName = "spotinst_multai_balancer"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
MultaiDeploymentResourceName ResourceName = "spotinst_multai_deployment"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
MultaiListenerResourceName ResourceName = "spotinst_multai_listener"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
MultaiRoutingRuleResourceName ResourceName = "spotinst_multai_routing_rule"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
MultaiTargetResourceName ResourceName = "spotinst_multai_target"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
MultaiTargetSetResourceName ResourceName = "spotinst_multai_target_set"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
OceanAWSLaunchSpecResourceName ResourceName = "spotinst_ocean_aws_launch_spec"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
OceanAWSResourceName ResourceName = "spotinst_ocean_aws"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
OceanGKEResourceName ResourceName = "spotinst_ocean_gke"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
const (
SubscriptionResourceName ResourceName = "spotinst_subscription"
)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Variables
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
type SubscriptionTerraformResource ¶ added in v1.1.0
type SubscriptionTerraformResource struct {
GenericResource // embedding
}
var SubscriptionResource *SubscriptionTerraformResource
func NewSubscriptionResource ¶
func NewSubscriptionResource( fieldsMap map[FieldName]*GenericField) *SubscriptionTerraformResource
func (*SubscriptionTerraformResource) OnCreate ¶ added in v1.1.0
func (res *SubscriptionTerraformResource) OnCreate( resourceData *schema.ResourceData, meta interface{}) (*subscription.Subscription, error)
func (*SubscriptionTerraformResource) OnRead ¶ added in v1.1.0
func (res *SubscriptionTerraformResource) OnRead( subscription *subscription.Subscription, resourceData *schema.ResourceData, meta interface{}) error
func (*SubscriptionTerraformResource) OnUpdate ¶ added in v1.1.0
func (res *SubscriptionTerraformResource) OnUpdate( resourceData *schema.ResourceData, meta interface{}) (bool, *subscription.Subscription, error)
Source Files ¶
- common_elastigroup_aws.go
- common_elastigroup_aws_beanstalk.go
- common_elastigroup_azure.go
- common_elastigroup_gcp.go
- common_elastigroup_gke.go
- common_mrscaler_aws.go
- common_multai_balancer.go
- common_multai_deployment.go
- common_multai_listener.go
- common_multai_routing_rule.go
- common_multai_target.go
- common_multai_target_set.go
- common_ocean_aws.go
- common_ocean_aws_launch_spec.go
- common_ocean_gke.go
- common_spotinst_resource.go
- common_subscription.go
- consts.go