commons

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
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 creation"
	FieldCreateNotAllowedPattern = "field [%v] can only be changed post creation"

	ProviderToken        FieldName = "token"
	ProviderAccount      FieldName = "account"
	ProviderFeatureFlags FieldName = "feature_flags"

	Subscription                         ResourceAffinity = "Subscription"
	ElastigroupAWSBeanstalk              ResourceAffinity = "ElastigroupAWSBeanstalk"
	ElastigroupAWSBeanstalkScheduledTask ResourceAffinity = "ElastigroupAWSBeanstalk_Scheduled_Task"

	OceanAWS                    ResourceAffinity = "Ocean_AWS"
	OceanAWSInstanceTypes       ResourceAffinity = "Ocean_AWS_Instance_Types"
	OceanAWSAutoScaling         ResourceAffinity = "Ocean_AWS_Auto_Scaling"
	OceanAWSStrategy            ResourceAffinity = "Ocean_AWS_Strategy"
	OceanAWSScheduling          ResourceAffinity = "Ocean_AWS_Scheduling"
	OceanAWSLaunchConfiguration ResourceAffinity = "Ocean_AWS_Launch_Configuration"

	OceanAWSLaunchSpec ResourceAffinity = "Ocean_AWS_Launch_Spec"

	OceanGKE                 ResourceAffinity = "Ocean_GKE"
	OceanGKEImport           ResourceAffinity = "Ocean_GKE_Import"
	OceanGKEImportScheduling ResourceAffinity = "Ocean_GKE_Import_Scheduling"
	OceanGKEImportAutoScaler ResourceAffinity = "Ocean_GKE_Import_Auto_Scaler"
	OceanGKEInstanceTypes    ResourceAffinity = "Ocean_GKE_Instance_Types"
	OceanGKEAutoScaling      ResourceAffinity = "Ocean_GKE_Auto_Scaling"
	OceanGKEStrategy         ResourceAffinity = "Ocean_GKE_Strategy"
	OceanGKELaunchSpec       ResourceAffinity = "Ocean_GKE_Launch_Spec"
	OceanGKELaunchSpecImport ResourceAffinity = "Ocean_GKE_Launch_Spec_Import"
	OceanGKENetworkInterface ResourceAffinity = "Ocean_GKE_Network_Interface"

	OceanECS                    ResourceAffinity = "Ocean_ECS"
	OceanECSAutoScaler          ResourceAffinity = "Ocean_ECS_Auto_Scaler"
	OceanECSInstanceTypes       ResourceAffinity = "Ocean_ECS_Instance_Types"
	OceanECSLaunchSpecification ResourceAffinity = "Ocean_ECS_Launch_Specification"
	OceanECSStrategy            ResourceAffinity = "Ocean_ECS_Strategy"
	OceanECSScheduling          ResourceAffinity = "Ocean_ECS_Scheduling"

	OceanECSLaunchSpec ResourceAffinity = "Ocean_ECS_Launch_Spec"

	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"

	ManagedInstanceAWS                    ResourceAffinity = "Managed_Instance_AWS"
	ManagedInstanceAWSStrategy            ResourceAffinity = "Managed_Instance_AWS_Strategy"
	ManagedInstanceAWSPersistence         ResourceAffinity = "Managed_Instance_AWS_Persistence"
	ManagedInstanceAWSHealthCheck         ResourceAffinity = "Managed_Instance_AWS_HealthCheck"
	ManagedInstanceAWSIntegrations        ResourceAffinity = "Managed_Instance_AWS_Integrations"
	ManagedInstanceAWSCompute             ResourceAffinity = "Managed_Instance_AWS_Compute"
	ManagedInstanceAWSLaunchSpecification ResourceAffinity = "Managed_Instance_AWS_Launch_Specification"
	ManagedInstanceAWSNetworkInterfaces   ResourceAffinity = "Managed_Instance_AWS_Network_Interfaces"
	ManagedInstanceAWSScheduling          ResourceAffinity = "Managed_Instance_AWS_Scheduling"
	ManagedInstanceAWSComputeInstanceType ResourceAffinity = "Managed_Instance_AWS_Compute_Instance_Type"

	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"
	ElastigroupGCPScheduledTask       ResourceAffinity = "Elastigroup_GCP_Scheduled_Task"
	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"
	MRScalerAWSTerminationPolicies ResourceAffinity = "MRScaler_AWS_Termination_Policies"

	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"

	HealthCheck ResourceAffinity = "Health_Check"

	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

func ToJson

func ToJson(object interface{}) (string, error)

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 ECSClusterWrapper added in v1.13.4

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

func NewECSClusterWrapper added in v1.13.4

func NewECSClusterWrapper() *ECSClusterWrapper

func (*ECSClusterWrapper) GetECSCluster added in v1.13.4

func (clusterWrapper *ECSClusterWrapper) GetECSCluster() *aws.ECSCluster

func (*ECSClusterWrapper) SetECSCluster added in v1.13.4

func (clusterWrapper *ECSClusterWrapper) SetECSCluster(cluster *aws.ECSCluster)

type ECSLaunchSpecWrapper added in v1.13.4

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

func NewLaunchSpecECSWrapper added in v1.13.4

func NewLaunchSpecECSWrapper() *ECSLaunchSpecWrapper

func (*ECSLaunchSpecWrapper) GetLaunchSpec added in v1.13.4

func (launchSpecWrapper *ECSLaunchSpecWrapper) GetLaunchSpec() *aws.ECSLaunchSpec

func (*ECSLaunchSpecWrapper) SetLaunchSpec added in v1.13.4

func (launchSpecWrapper *ECSLaunchSpecWrapper) SetLaunchSpec(launchSpec *aws.ECSLaunchSpec)

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 FieldName

type FieldName string

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 GKEImportClusterWrapper added in v1.13.4

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

func NewGKEImportClusterWrapper added in v1.13.4

func NewGKEImportClusterWrapper() *GKEImportClusterWrapper

func (*GKEImportClusterWrapper) GetCluster added in v1.13.4

func (clusterWrapper *GKEImportClusterWrapper) GetCluster() *gcp.Cluster

func (*GKEImportClusterWrapper) SetCluster added in v1.13.4

func (clusterWrapper *GKEImportClusterWrapper) SetCluster(cluster *gcp.Cluster)

type GKELaunchSpecImportWrapper added in v1.13.4

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

func NewGKELaunchSpecImportWrapper added in v1.13.4

func NewGKELaunchSpecImportWrapper() *GKELaunchSpecImportWrapper

func (*GKELaunchSpecImportWrapper) GetLaunchSpec added in v1.13.4

func (launchSpecImportWrapper *GKELaunchSpecImportWrapper) GetLaunchSpec() *gcp.LaunchSpec

func (*GKELaunchSpecImportWrapper) SetLaunchSpec added in v1.13.4

func (launchSpecImportWrapper *GKELaunchSpecImportWrapper) SetLaunchSpec(launchSpecImport *gcp.LaunchSpec)

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 HealthCheckTerraformResource added in v1.14.3

type HealthCheckTerraformResource struct {
	GenericResource // embedding
}
var HealthCheckResource *HealthCheckTerraformResource

func NewHealthCheckResource added in v1.14.3

func NewHealthCheckResource(fieldMap map[FieldName]*GenericField) *HealthCheckTerraformResource

NewHealthCheckResource creates a new HealthCheck resource

func (*HealthCheckTerraformResource) OnCreate added in v1.14.3

func (res *HealthCheckTerraformResource) OnCreate(
	resourceData *schema.ResourceData,
	meta interface{}) (*healthcheck.HealthCheck, error)

OnCreate is called when creating a new resource block and returns a new HealthCheck or an error.

func (*HealthCheckTerraformResource) OnRead added in v1.14.3

func (res *HealthCheckTerraformResource) OnRead(
	healthCheck *healthcheck.HealthCheck,
	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 (*HealthCheckTerraformResource) OnUpdate added in v1.14.3

func (res *HealthCheckTerraformResource) OnUpdate(
	resourceData *schema.ResourceData,
	meta interface{}) (bool, *healthcheck.HealthCheck, error)

OnUpdate is called when updating an existing resource and returns an healthCheck with a bool indicating if had been updated, or an error.

type HealthCheckWrapper added in v1.14.3

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

func NewHealthCheckWrapper added in v1.14.3

func NewHealthCheckWrapper() *HealthCheckWrapper

NewElastigroupGCPWrapper avoids parameter collisions and returns a HealthCheck. Spotinst HealthCheck must have a wrapper struct. the wrapper struct is intended to help reflect the field states into the HealthCheck object properly.

func (*HealthCheckWrapper) GetHealthCheck added in v1.14.3

func (hcWrapper *HealthCheckWrapper) GetHealthCheck() *healthcheck.HealthCheck

GetElastigroup returns a wrapped elastigroup

func (*HealthCheckWrapper) SetHealthCheck added in v1.14.3

func (hcWrapper *HealthCheckWrapper) SetHealthCheck(healthCheck *healthcheck.HealthCheck)

SetElastigroup applies elastigroup fields to the elastigroup wrapper.

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 LaunchSpecGKEWrapper added in v1.13.4

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

func NewLaunchSpecGKEWrapper added in v1.13.4

func NewLaunchSpecGKEWrapper() *LaunchSpecGKEWrapper

func (*LaunchSpecGKEWrapper) GetLaunchSpec added in v1.13.4

func (launchSpecWrapper *LaunchSpecGKEWrapper) GetLaunchSpec() *gcp.LaunchSpec

func (*LaunchSpecGKEWrapper) SetLaunchSpec added in v1.13.4

func (launchSpecWrapper *LaunchSpecGKEWrapper) SetLaunchSpec(launchSpec *gcp.LaunchSpec)

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 LogFormat

type LogFormat string

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 ManagedInstanceTerraformResource added in v1.14.1

type ManagedInstanceTerraformResource struct {
	GenericResource // embedding
}
var ManagedInstanceResource *ManagedInstanceTerraformResource

func NewManagedInstanceResource added in v1.14.1

func NewManagedInstanceResource(fieldsMap map[FieldName]*GenericField) *ManagedInstanceTerraformResource

func (*ManagedInstanceTerraformResource) OnCreate added in v1.14.1

func (res *ManagedInstanceTerraformResource) OnCreate(
	resourceData *schema.ResourceData,
	meta interface{}) (*aws.ManagedInstance, error)

func (*ManagedInstanceTerraformResource) OnRead added in v1.14.1

func (res *ManagedInstanceTerraformResource) OnRead(
	managedInstance *aws.ManagedInstance,
	resourceData *schema.ResourceData,
	meta interface{}) error

func (*ManagedInstanceTerraformResource) OnUpdate added in v1.14.1

func (res *ManagedInstanceTerraformResource) OnUpdate(
	resourceData *schema.ResourceData,
	meta interface{}) (bool, *aws.ManagedInstance, error)

type MangedInstanceAWSWrapper added in v1.14.1

type MangedInstanceAWSWrapper struct {

	// Load balancer states
	StatusElbUpdated bool
	StatusTgUpdated  bool
	StatusMlbUpdated bool

	// Block devices states
	StatusEphemeralBlockDeviceUpdated bool
	StatusEbsBlockDeviceUpdated       bool
	// contains filtered or unexported fields
}

func NewManagedInstanceWrapper added in v1.14.1

func NewManagedInstanceWrapper() *MangedInstanceAWSWrapper

func (*MangedInstanceAWSWrapper) GetManagedInstance added in v1.14.1

func (miWrapper *MangedInstanceAWSWrapper) GetManagedInstance() *aws.ManagedInstance

func (*MangedInstanceAWSWrapper) SetManagedInstance added in v1.14.1

func (miWrapper *MangedInstanceAWSWrapper) SetManagedInstance(mangedInstance *aws.ManagedInstance)

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 OceanECSLaunchSpecTerraformResource added in v1.13.4

type OceanECSLaunchSpecTerraformResource struct {
	GenericResource // embedding
}
var OceanECSLaunchSpecResource *OceanECSLaunchSpecTerraformResource

func NewOceanECSLaunchSpecResource added in v1.13.4

func NewOceanECSLaunchSpecResource(fieldsMap map[FieldName]*GenericField) *OceanECSLaunchSpecTerraformResource

func (*OceanECSLaunchSpecTerraformResource) OnCreate added in v1.13.4

func (res *OceanECSLaunchSpecTerraformResource) OnCreate(
	resourceData *schema.ResourceData,
	meta interface{}) (*aws.ECSLaunchSpec, error)

func (*OceanECSLaunchSpecTerraformResource) OnRead added in v1.13.4

func (res *OceanECSLaunchSpecTerraformResource) OnRead(
	launchSpec *aws.ECSLaunchSpec,
	resourceData *schema.ResourceData,
	meta interface{}) error

func (*OceanECSLaunchSpecTerraformResource) OnUpdate added in v1.13.4

func (res *OceanECSLaunchSpecTerraformResource) OnUpdate(
	resourceData *schema.ResourceData,
	meta interface{}) (bool, *aws.ECSLaunchSpec, error)

type OceanECSTerraformResource added in v1.13.4

type OceanECSTerraformResource struct {
	GenericResource // embedding
}
var OceanECSResource *OceanECSTerraformResource

func NewOceanECSResource added in v1.13.4

func NewOceanECSResource(fieldsMap map[FieldName]*GenericField) *OceanECSTerraformResource

func (*OceanECSTerraformResource) OnCreate added in v1.13.4

func (res *OceanECSTerraformResource) OnCreate(
	resourceData *schema.ResourceData,
	meta interface{}) (*aws.ECSCluster, error)

func (*OceanECSTerraformResource) OnRead added in v1.13.4

func (res *OceanECSTerraformResource) OnRead(
	cluster *aws.ECSCluster,
	resourceData *schema.ResourceData,
	meta interface{}) error

func (*OceanECSTerraformResource) OnUpdate added in v1.13.4

func (res *OceanECSTerraformResource) OnUpdate(
	resourceData *schema.ResourceData,
	meta interface{}) (bool, *aws.ECSCluster, error)

type OceanGKEImportTerraformResource added in v1.13.4

type OceanGKEImportTerraformResource struct {
	GenericResource // embedding
}
var OceanGKEImportResource *OceanGKEImportTerraformResource

func NewOceanGKEImportResource added in v1.13.4

func NewOceanGKEImportResource(fieldsMap map[FieldName]*GenericField) *OceanGKEImportTerraformResource

func (*OceanGKEImportTerraformResource) OnCreate added in v1.13.4

func (res *OceanGKEImportTerraformResource) OnCreate(
	importedCluster *gcp.Cluster,
	resourceData *schema.ResourceData,
	meta interface{}) (*gcp.Cluster, error)

func (*OceanGKEImportTerraformResource) OnRead added in v1.13.4

func (res *OceanGKEImportTerraformResource) OnRead(
	cluster *gcp.Cluster,
	resourceData *schema.ResourceData,
	meta interface{}) error

func (*OceanGKEImportTerraformResource) OnUpdate added in v1.13.4

func (res *OceanGKEImportTerraformResource) OnUpdate(
	resourceData *schema.ResourceData,
	meta interface{}) (bool, *gcp.Cluster, error)

type OceanGKELaunchSpecImportTerraformResource added in v1.13.4

type OceanGKELaunchSpecImportTerraformResource struct {
	GenericResource // embedding
}
var OceanGKELaunchSpecImportResource *OceanGKELaunchSpecImportTerraformResource

func NewOceanGKELaunchSpecImportResource added in v1.13.4

func NewOceanGKELaunchSpecImportResource(fieldsMap map[FieldName]*GenericField) *OceanGKELaunchSpecImportTerraformResource

func (*OceanGKELaunchSpecImportTerraformResource) OnCreate added in v1.13.4

func (res *OceanGKELaunchSpecImportTerraformResource) OnCreate(
	importedLaunchSpec *gcp.LaunchSpec,
	resourceData *schema.ResourceData,
	meta interface{}) (*gcp.LaunchSpec, error)

func (*OceanGKELaunchSpecImportTerraformResource) OnRead added in v1.13.4

func (res *OceanGKELaunchSpecImportTerraformResource) OnRead(
	launchSpec *gcp.LaunchSpec,
	resourceData *schema.ResourceData,
	meta interface{}) error

func (*OceanGKELaunchSpecImportTerraformResource) OnUpdate added in v1.13.4

func (res *OceanGKELaunchSpecImportTerraformResource) OnUpdate(
	resourceData *schema.ResourceData,
	meta interface{}) (bool, *gcp.LaunchSpec, error)

type OceanGKELaunchSpecTerraformResource added in v1.13.4

type OceanGKELaunchSpecTerraformResource struct {
	GenericResource // embedding
}
var OceanGKELaunchSpecResource *OceanGKELaunchSpecTerraformResource

func NewOceanGKELaunchSpecResource added in v1.13.4

func NewOceanGKELaunchSpecResource(fieldsMap map[FieldName]*GenericField) *OceanGKELaunchSpecTerraformResource

func (*OceanGKELaunchSpecTerraformResource) OnCreate added in v1.13.4

func (res *OceanGKELaunchSpecTerraformResource) OnCreate(
	resourceData *schema.ResourceData,
	meta interface{}) (*gcp.LaunchSpec, error)

func (*OceanGKELaunchSpecTerraformResource) OnRead added in v1.13.4

func (res *OceanGKELaunchSpecTerraformResource) OnRead(
	launchSpec *gcp.LaunchSpec,
	resourceData *schema.ResourceData,
	meta interface{}) error

func (*OceanGKELaunchSpecTerraformResource) OnUpdate added in v1.13.4

func (res *OceanGKELaunchSpecTerraformResource) OnUpdate(
	resourceData *schema.ResourceData,
	meta interface{}) (bool, *gcp.LaunchSpec, 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 (
	HealthCheckResourceName ResourceName = "spotinst_health_check"
)
const (
	MRScalerAWSResourceName ResourceName = "spotinst_mrscaler_aws"
)
const (
	ManagedInstanceAWSResourceName ResourceName = "spotinst_managed_instance_aws"
)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Variables

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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 (
	OceanECSLaunchSpecResourceName ResourceName = "spotinst_ocean_ecs_launch_spec"
)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Variables

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

const (
	OceanECSResourceName ResourceName = "spotinst_ocean_ecs"
)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Variables

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

const (
	OceanGKEImportResourceName ResourceName = "spotinst_ocean_gke_import"
)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Variables

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

const (
	OceanGKELaunchSpecImportResourceName ResourceName = "spotinst_ocean_gke_launch_spec_import"
)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Variables

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

const (
	OceanGKELaunchSpecResourceName ResourceName = "spotinst_ocean_gke_launch_spec"
)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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)

Jump to

Keyboard shortcuts

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