Documentation ¶
Index ¶
- Constants
- Variables
- func CloudName(region models.Region) string
- func CloudType(region models.Region) string
- func CreateVersionDate() *string
- func DefaultTransport() gohttp.RoundTripper
- func EscapeUrlParm(urlParm string) string
- func FunctionClient(c *bluemix.Config) (*whisk.Client, error)
- func GenerateBoundToCRN(region models.Region, accountID string) crn.CRN
- func GetNext(next interface{}) string
- func GetTags(d *schema.ResourceData, meta interface{}) error
- func GetTagsUsingCRN(meta interface{}, resourceCRN string) (*schema.Set, error)
- func HashInt(v interface{}) int
- func InvokeDataSourceValidator(resourceName, identifier string) schema.SchemaValidateFunc
- func InvokeValidator(resourceName, identifier string) schema.SchemaValidateFunc
- func NewQualifiedNameError(entityName string, err error) error
- func Provider() terraform.ResourceProvider
- func UpdateTags(d *schema.ResourceData, meta interface{}) error
- func UpdateTagsUsingCRN(oldList, newList interface{}, meta interface{}, resourceCRN string) error
- func WaitForClusterAvailable(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
- func WaitForClusterAvailableForFeatureUpdate(cluster string, timeout time.Duration, meta interface{}, ...) (interface{}, error)
- func WaitForClusterCreation(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
- func WaitForClusterVersionUpdate(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
- func WaitForEvaultAvailable(d *schema.ResourceData, meta interface{}, timeout string) (interface{}, error)
- func WaitForNoActiveTransactions(id int, d *schema.ResourceData, meta interface{}) (interface{}, error)
- func WaitForOrderCompletion(receipt *datatypes.Container_Product_Order_Receipt, meta interface{}) (datatypes.Billing_Order_Item, error)
- func WaitForStorageAvailable(d *schema.ResourceData, meta interface{}) (interface{}, error)
- func WaitForStorageUpdate(d *schema.ResourceData, meta interface{}) (interface{}, error)
- func WaitForSubnetAvailable(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
- func WaitForUpgradeTransactionsToAppear(d *schema.ResourceData, meta interface{}) (interface{}, error)
- func WaitForV2WorkerZoneDeleted(clusterNameOrID, workerPoolNameOrID, zone string, meta interface{}, ...) (interface{}, error)
- func WaitForVSAvailable(d *schema.ResourceData, meta interface{}, timeout time.Duration) (interface{}, error)
- func WaitForVirtualGuestAvailable(id int, d *schema.ResourceData, meta interface{}) (interface{}, error)
- func WaitForVpcClusterVersionUpdate(d *schema.ResourceData, meta interface{}, target v2.ClusterTargetHeader) (interface{}, error)
- func WaitForVpcWorkerDelete(clusterNameOrID, workerPoolNameOrID string, meta interface{}, ...) (interface{}, error)
- func WaitForWorkerAvailable(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
- func WaitForWorkerAvailableForFeatureUpdate(cluster string, timeout time.Duration, meta interface{}, ...) (interface{}, error)
- func WaitForWorkerDelete(clusterNameOrID, workerPoolNameOrID string, meta interface{}, ...) (interface{}, error)
- func WaitForWorkerNormal(clusterNameOrID, workerPoolNameOrID string, meta interface{}, ...) (interface{}, error)
- func WaitForWorkerPoolAvailable(d *schema.ResourceData, meta interface{}, ...) (interface{}, error)
- func WaitForWorkerZoneDeleted(clusterNameOrID, workerPoolNameOrID, zone string, meta interface{}, ...) (interface{}, error)
- func WaitForWorkerZoneNormal(clusterNameOrID, workerPoolNameOrID, zone string, meta interface{}, ...) (interface{}, error)
- type ClientSession
- type Config
- type CsEntry
- type FunctionIdentifier
- type Map
- type Params
- type QualifiedName
- type ResourceValidator
- type Session
- type UserConfig
- type ValidateSchema
- type ValidatorDict
- type ValueConstraintType
- type ValueType
Constants ¶
const ( CRN = "crn" CreatedAt = "created_at" ProvisioningStatus = "provisioning_status" )
const ( IBMComputeTimeFormat = string("2006-01-02T15:04:05-07:00") IBMCOMPUTE_SCALE_POLICY_TRIGGER_TYPE_ID_RESOURCE_USE = 1 IBMCOMPUTE_SCALE_POLICY_TRIGGER_TYPE_ID_REPEATING = 2 IBMCOMPUTE_SCALE_POLICY_TRIGGER_TYPE_ID_ONE_TIME = 3 )
const ( // MEMBER ... MEMBER = "MEMEBER" // ACCESS ... ACCESS = "access" NOACCESS = "noacess" VIEWONLY = "viewonly" BASICUSER = "basicuser" SUPERUSER = "superuser" MANAGER = "manager" AUDITOR = "auditor" BILLINGMANANGER = "billingmanager" DEVELOPER = "developer" )
const ( // SCALING ... SCALING = "scaling" // HEALTHY ... HEALTHY = "healthy" // DELETING ... DELETING = "deleting" )
const ( LB_LARGE_150000_CONNECTIONS = 150000 LB_SMALL_15000_CONNECTIONS = 15000 LbLocalPackageType = "ADDITIONAL_SERVICES_LOAD_BALANCER" )
const ( PACKAGE_ID_APPLICATION_DELIVERY_CONTROLLER = 192 DELIMITER = "_" )
const ( AdditionalServicesGlobalIpAddressesPackageType = "ADDITIONAL_SERVICES_GLOBAL_IP_ADDRESSES" GlobalIpMask = "id,ipAddress[ipAddress,id,note],destinationIpAddress[ipAddress]" )
const ( AdditionalServicesPackageType = "ADDITIONAL_SERVICES" AdditionalServicesNetworkVlanPackageType = "ADDITIONAL_SERVICES_NETWORK_VLAN" VlanMask = "id,name,primaryRouter[datacenter[name]],primaryRouter[hostname],vlanNumber," + "billingItem[recurringFee],guestNetworkComponentCount,subnets[networkIdentifier,cidr,subnetType],tagReferences[id,tag[name]]" )
const ( AdditionalSSLServicesPackageType = "ADDITIONAL_SERVICES" AdditionalServicesSSLCertificatePackageType = "ADDITIONAL_SERVICES_SSL_CERTIFICATE" SSLMask = "id" )
const ( //ResourceControllerURL ... ResourceControllerURL = "resource_controller_url" //ResourceName ... ResourceName = "resource_name" //ResourceCRN ... ResourceCRN = "resource_crn" //ResourceStatus ... ResourceStatus = "resource_status" //ResourceGroupName ... ResourceGroupName = "resource_group_name" //RelatedCRN ... RelatedCRN = "related_crn" )
const (
BareMetalMask = "globalIdentifier,hostname,domain,bandwidthAllocation,provisionDate,id," +
"primaryIpAddress,primaryBackendIpAddress,privateNetworkOnlyFlag," +
"notes,userData[value],tagReferences[id,tag[name]]," +
"allowedNetworkStorage[id,nasType]," +
"hourlyBillingFlag," +
"datacenter[id,name,longName]," +
"primaryNetworkComponent[primarySubnet[networkVlan[id,primaryRouter,vlanNumber],id],maxSpeed," +
"primaryIpAddressRecord[id]," +
"primaryVersion6IpAddressRecord[subnet,id]]," +
"primaryBackendNetworkComponent[primarySubnet[networkVlan[id,primaryRouter,vlanNumber],id]," +
"primaryIpAddressRecord[id]," +
"maxSpeed,redundancyEnabledFlag]," +
"memoryCapacity,powerSupplyCount," +
"operatingSystem[softwareLicense[softwareDescription[referenceCode]]]"
)
const DefaultServiceURL = "https://us-south.functions.cloud.ibm.com"
DefaultServiceURL is the default URL to make service requests to.
const (
FwHardwareDedicatedPackageType = "ADDITIONAL_SERVICES_FIREWALL"
)
const (
FwHardwarePackageType = "ADDITIONAL_SERVICES_FIREWALL"
)
const GATEWAY_APPLIANCE_CLUSTER = "NETWORK_GATEWAY_APPLIANCE_CLUSTER"
const HEALTH_CHECK_TYPE_HTTP_CUSTOM = "HTTP-CUSTOM"
const (
ID = "id"
)
const NOT_FOUND = "SoftLayer_Exception_Network_LBaaS_ObjectNotFound"
const PUBLIC_SUBNET_TYPE = "public"
const RetryAPIDelay = 5 * time.Second
RetryDelay
const (
SubnetMask = "id,addressSpace,subnetType,version,ipAddressCount," +
"networkIdentifier,cidr,note,endPointIpAddress[ipAddress],networkVlan[id],totalIpAddresses"
)
const (
VPX_VERSION_10_1 = "10.1"
)
Variables ¶
var BluemixRegion string
BluemixRegion ...
var IBMComputeAutoScaleGroupObjectMask = []string{
"id",
"name",
"minimumMemberCount",
"maximumMemberCount",
"cooldown",
"status[keyName]",
"regionalGroup[id,name]",
"terminationPolicy[keyName]",
"virtualGuestMemberTemplate[blockDeviceTemplateGroup,primaryNetworkComponent[networkVlan[id]],primaryBackendNetworkComponent[networkVlan[id]]]",
"loadBalancers[id,port,virtualServerId,healthCheck[id]]",
"networkVlans[id,networkVlanId,networkVlan[vlanNumber,primaryRouter[hostname]]]",
"loadBalancers[healthCheck[healthCheckTypeId,type[keyname],attributes[value,type[id,keyname]]]]",
}
var IBMComputeAutoScalePolicyObjectMask = []string{
"cooldown",
"id",
"name",
"scaleActions",
"scaleGroupId",
"oneTimeTriggers",
"repeatingTriggers",
"resourceUseTriggers.watches",
"triggers",
}
Functions ¶
func CreateVersionDate ¶ added in v1.8.0
func CreateVersionDate() *string
CreateVersionDate requires mandatory version attribute. Any date from 2019-12-13 up to the currentdate may be provided. Specify the current date to request the latest version.
func DefaultTransport ¶ added in v1.11.2
func DefaultTransport() gohttp.RoundTripper
DefaultTransport ...
func EscapeUrlParm ¶ added in v0.15.0
convert CRN to be url safe
func FunctionClient ¶ added in v0.7.0
FunctionClient ...
func GenerateBoundToCRN ¶ added in v0.10.0
func GetTags ¶ added in v0.15.1
func GetTags(d *schema.ResourceData, meta interface{}) error
func GetTagsUsingCRN ¶ added in v0.17.0
func InvokeDataSourceValidator ¶ added in v1.13.0
func InvokeDataSourceValidator(resourceName, identifier string) schema.SchemaValidateFunc
func InvokeValidator ¶ added in v1.5.2
func InvokeValidator(resourceName, identifier string) schema.SchemaValidateFunc
This is the main validation function. This function will be used in all the provider code.
func NewQualifiedNameError ¶ added in v0.7.0
NewQualifiedNameError(entityName, err) returns specific whisk error
for invalid qualified names.
func Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a terraform.ResourceProvider.
func UpdateTags ¶ added in v0.15.1
func UpdateTags(d *schema.ResourceData, meta interface{}) error
func UpdateTagsUsingCRN ¶ added in v0.17.0
func WaitForClusterAvailable ¶
func WaitForClusterAvailable(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
WaitForClusterAvailable Waits for cluster creation
func WaitForClusterAvailableForFeatureUpdate ¶ added in v0.16.0
func WaitForClusterAvailableForFeatureUpdate(cluster string, timeout time.Duration, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
WaitForClusterAvailable Waits for cluster creation
func WaitForClusterCreation ¶ added in v0.19.1
func WaitForClusterCreation(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
func WaitForClusterVersionUpdate ¶ added in v0.8.0
func WaitForClusterVersionUpdate(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
WaitForClusterVersionUpdate Waits for cluster creation
func WaitForEvaultAvailable ¶ added in v0.15.0
func WaitForEvaultAvailable(d *schema.ResourceData, meta interface{}, timeout string) (interface{}, error)
Waits for storage provisioning
func WaitForNoActiveTransactions ¶
func WaitForNoActiveTransactions(id int, d *schema.ResourceData, meta interface{}) (interface{}, error)
WaitForNoActiveTransactions Wait for no active transactions
func WaitForOrderCompletion ¶
func WaitForOrderCompletion( receipt *datatypes.Container_Product_Order_Receipt, meta interface{}) (datatypes.Billing_Order_Item, error)
func WaitForStorageAvailable ¶
func WaitForStorageAvailable(d *schema.ResourceData, meta interface{}) (interface{}, error)
Waits for storage provisioning
func WaitForStorageUpdate ¶ added in v0.21.0
func WaitForStorageUpdate(d *schema.ResourceData, meta interface{}) (interface{}, error)
Waits for storage update
func WaitForSubnetAvailable ¶
func WaitForSubnetAvailable(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
func WaitForUpgradeTransactionsToAppear ¶
func WaitForUpgradeTransactionsToAppear(d *schema.ResourceData, meta interface{}) (interface{}, error)
WaitForUpgradeTransactionsToAppear Wait for upgrade transactions
func WaitForV2WorkerZoneDeleted ¶ added in v1.9.0
func WaitForVSAvailable ¶ added in v0.10.0
func WaitForVSAvailable(d *schema.ResourceData, meta interface{}, timeout time.Duration) (interface{}, error)
WaitForVirtualGuestAvailable Waits for virtual guest creation
func WaitForVirtualGuestAvailable ¶
func WaitForVirtualGuestAvailable(id int, d *schema.ResourceData, meta interface{}) (interface{}, error)
WaitForVirtualGuestAvailable Waits for virtual guest creation
func WaitForVpcClusterVersionUpdate ¶ added in v0.24.0
func WaitForVpcClusterVersionUpdate(d *schema.ResourceData, meta interface{}, target v2.ClusterTargetHeader) (interface{}, error)
WaitForVpcClusterVersionUpdate Waits for cluster creation
func WaitForVpcWorkerDelete ¶ added in v0.19.0
func WaitForWorkerAvailable ¶
func WaitForWorkerAvailable(d *schema.ResourceData, meta interface{}, target v1.ClusterTargetHeader) (interface{}, error)
WaitForWorkerAvailable Waits for worker creation
func WaitForWorkerAvailableForFeatureUpdate ¶ added in v0.16.0
func WaitForWorkerDelete ¶ added in v0.11.0
func WaitForWorkerNormal ¶ added in v0.11.0
func WaitForWorkerPoolAvailable ¶ added in v0.19.0
func WaitForWorkerPoolAvailable(d *schema.ResourceData, meta interface{}, clusterNameOrID, workerPoolNameOrID string, timeout time.Duration, target v2.ClusterTargetHeader) (interface{}, error)
WaitForWorkerPoolAvailable Waits for worker creation
func WaitForWorkerZoneDeleted ¶ added in v0.11.0
func WaitForWorkerZoneNormal ¶ added in v0.11.0
Types ¶
type ClientSession ¶
type ClientSession interface { BluemixSession() (*bxsession.Session, error) BluemixAcccountAPI() (accountv2.AccountServiceAPI, error) BluemixAcccountv1API() (accountv1.AccountServiceAPI, error) BluemixUserDetails() (*UserConfig, error) ContainerAPI() (containerv1.ContainerServiceAPI, error) VpcContainerAPI() (containerv2.ContainerServiceAPI, error) CisAPI() (cisv1.CisServiceAPI, error) FunctionClient() (*whisk.Client, error) GlobalSearchAPI() (globalsearchv2.GlobalSearchServiceAPI, error) GlobalTaggingAPI() (globaltaggingv3.GlobalTaggingServiceAPI, error) ICDAPI() (icdv4.ICDServiceAPI, error) IAMAPI() (iamv1.IAMServiceAPI, error) IAMPAPAPI() (iampapv1.IAMPAPAPI, error) IAMPAPAPIV2() (iampapv2.IAMPAPAPIV2, error) IAMUUMAPI() (iamuumv1.IAMUUMServiceAPI, error) IAMUUMAPIV2() (iamuumv2.IAMUUMServiceAPIv2, error) MccpAPI() (mccpv2.MccpServiceAPI, error) ResourceCatalogAPI() (catalog.ResourceCatalogAPI, error) ResourceManagementAPI() (management.ResourceManagementAPI, error) ResourceManagementAPIv2() (managementv2.ResourceManagementAPIv2, error) ResourceControllerAPI() (controller.ResourceControllerAPI, error) ResourceControllerAPIV2() (controllerv2.ResourceControllerAPIV2, error) SoftLayerSession() *slsession.Session IBMPISession() (*ibmpisession.IBMPISession, error) SchematicsAPI() (schematics.SchematicsServiceAPI, error) UserManagementAPI() (usermanagementv2.UserManagementAPI, error) CertificateManagerAPI() (certificatemanager.CertificateManagerServiceAPI, error) VpcClassicV1API() (*vpcclassic.VpcClassicV1, error) VpcV1API() (*vpc.VpcV1, error) APIGateway() (*apigateway.ApiGatewayControllerApiV1, error) PrivateDnsClientSession() (*dns.DnsSvcsV1, error) CosConfigV1API() (*cosconfig.ResourceConfigurationV1, error) DirectlinkV1API() (*dl.DirectLinkV1, error) TransitGatewayV1API() (*tg.TransitGatewayApisV1, error) HpcsEndpointAPI() (hpcs.HPCSV2, error) IAMNamespaceAPI() (*ns.IbmCloudFunctionsNamespaceAPIV1, error) CisZonesV1ClientSession() (*ciszonesv1.ZonesV1, error) CisDNSRecordClientSession() (*cisdnsrecordsv1.DnsRecordsV1, error) CisGLBHealthCheckClientSession() (*cisglbhealthcheckv1.GlobalLoadBalancerMonitorV1, error) CisRLClientSession() (*cisratelimitv1.ZoneRateLimitsV1, error) CisEdgeFunctionClientSession() (*cisedgefunctionv1.EdgeFunctionsApiV1, error) // contains filtered or unexported methods }
ClientSession ...
type Config ¶
type Config struct { //BluemixAPIKey is the Bluemix api key BluemixAPIKey string //Bluemix region Region string //Resource group id ResourceGroup string //Bluemix API timeout BluemixTimeout time.Duration //Softlayer end point url SoftLayerEndpointURL string //Softlayer API timeout SoftLayerTimeout time.Duration // Softlayer User Name SoftLayerUserName string // Softlayer API Key SoftLayerAPIKey string //Retry Count for API calls //Unexposed in the schema at this point as they are used only during session creation for a few calls //When sdk implements it we an expose them for expected behaviour //https://github.com/softlayer/softlayer-go/issues/41 RetryCount int //Constant Retry Delay for API calls RetryDelay time.Duration // FunctionNameSpace ... FunctionNameSpace string //Riaas End point RiaasEndPoint string //Generation Generation int //IAM Token IAMToken string //IAM Refresh Token IAMRefreshToken string // PowerService Instance PowerServiceInstance string // Zone Zone string }
Config stores user provider input
func (*Config) ClientSession ¶
ClientSession configures and returns a fully initialized ClientSession
type FunctionIdentifier ¶ added in v1.5.2
type FunctionIdentifier int
ValidateFunc is honored only when the schema's Type is set to TypeInt, TypeFloat, TypeString, TypeBool, or TypeMap. It is ignored for all other types. enum to list all the validator functions supported by this tool.
const ( IntBetween FunctionIdentifier = iota IntAtLeast IntAtMost ValidateAllowedStringValue StringLenBetween ValidateIPorCIDR ValidateAllowedIntValue ValidateRegexpLen ValidateRegexp ValidateNoZeroValues ValidateJSONString ValidateJSONParam ValidateBindedPackageName )
func (FunctionIdentifier) String ¶ added in v1.5.2
func (i FunctionIdentifier) String() string
Use stringer tool to generate this later.
type Map ¶ added in v1.1.0
Map is a wrapper around map[string]string that provides some helpers above it that assume the map is in the format that flatmap expects (the result of Flatten).
All modifying functions such as Delete are done in-place unless otherwise noted.
func Flatten ¶ added in v1.1.0
Flatten takes a structure and turns into a flat map[string]string.
Within the "thing" parameter, only primitive values are allowed. Structs are not supported. Therefore, it can only be slices, maps, primitives, and any combination of those together.
See the tests for examples of what inputs are turned into.
func (Map) Merge ¶ added in v1.1.0
Merge merges the contents of the other Map into this one.
This merge is smarter than a simple map iteration because it will fully replace arrays and other complex structures that are present in this map with the other map's. For example, if this map has a 3 element "foo" list, and m2 has a 2 element "foo" list, then the result will be that m has a 2 element "foo" list.
type Params ¶ added in v0.15.0
type Params struct { Version string `json:"version,omitempty"` KeyProtectKey string `json:"key_protect_key,omitempty"` BackUpEncryptionCRN string `json:"backup_encryption_key_crn,omitempty"` Memory int `json:"members_memory_allocation_mb,omitempty"` Disk int `json:"members_disk_allocation_mb,omitempty"` CPU int `json:"members_cpu_allocation_count,omitempty"` KeyProtectInstance string `json:"key_protect_instance,omitempty"` ServiceEndpoints string `json:"service-endpoints,omitempty"` BackupID string `json:"backup-id,omitempty"` RemoteLeaderID string `json:"remote_leader_id,omitempty"` PITRDeploymentID string `json:"point_in_time_recovery_deployment_id,omitempty"` PITRTimeStamp string `json:"point_in_time_recovery_time,omitempty"` }
type QualifiedName ¶ added in v0.7.0
type QualifiedName struct { EntityName string // pkg+entity // contains filtered or unexported fields }
func NewQualifiedName ¶ added in v0.7.0
func NewQualifiedName(name string) (*QualifiedName, error)
NewQualifiedName(name) initializes and constructs a (possibly fully qualified)
QualifiedName struct. NOTE: If the given qualified name is None, then this is a default qualified name and it is resolved from properties. NOTE: If the namespace is missing from the qualified name, the namespace is also resolved from the property file.
Examples:
foo => qualifiedName {namespace: "_", entityName: foo} pkg/foo => qualifiedName {namespace: "_", entityName: pkg/foo} /ns/foo => qualifiedName {namespace: ns, entityName: foo} /ns/pkg/foo => qualifiedName {namespace: ns, entityName: pkg/foo}
func (*QualifiedName) GetEntity ¶ added in v0.7.0
func (qualifiedName *QualifiedName) GetEntity() string
GetEntity() returns the name of entity in qualifiedName without a leading '/'
func (*QualifiedName) GetEntityName ¶ added in v0.7.0
func (qualifiedName *QualifiedName) GetEntityName() string
GetEntityName() returns the entity name ([package/]entity) of qualifiedName
without a leading '/'
func (*QualifiedName) GetFullQualifiedName ¶ added in v0.7.0
func (qualifiedName *QualifiedName) GetFullQualifiedName() string
GetFullQualifiedName() returns a full qualified name in proper string format
from qualifiedName with proper syntax.
Example: /namespace/[package/]entity
func (*QualifiedName) GetNamespace ¶ added in v0.7.0
func (qualifiedName *QualifiedName) GetNamespace() string
GetNamespace() returns the name of the namespace in qualifiedName without
a leading '/'
func (*QualifiedName) GetPackageName ¶ added in v0.7.0
func (qualifiedName *QualifiedName) GetPackageName() string
GetPackageName() returns the package name from qualifiedName without a
leading '/'
type ResourceValidator ¶ added in v1.5.2
type ResourceValidator struct { // This is the resource name - Found in provider.go of IBM Terraform provider. // Ex: ibm_compute_monitor, ibm_compute_bare_metal, ibm_compute_dedicated_host, ibm_cis_global_load_balancer etc., ResourceName string // Array of validator objects. Each object refers to one parameter in the resource provider. Schema []ValidateSchema }
type Session ¶
type Session struct { // SoftLayerSesssion is the the SoftLayer session used to connect to the SoftLayer API SoftLayerSession *slsession.Session // BluemixSession is the the Bluemix session used to connect to the Bluemix API BluemixSession *bxsession.Session }
Session stores the information required for communication with the SoftLayer and Bluemix API
type UserConfig ¶ added in v0.6.0
type UserConfig struct {
// contains filtered or unexported fields
}
UserConfig ...
type ValidateSchema ¶ added in v1.5.2
type ValidateSchema struct { //This is the parameter name. //Ex: private_subnet in ibm_compute_bare_metal resource Identifier string // this is similar to schema.ValueType Type ValueType // The actual validation function that needs to be invoked. // Ex: IntBetween, validateAllowedIntValue, validateAllowedStringValue ValidateFunctionIdentifier FunctionIdentifier MinValue string MaxValue string AllowedValues string //Comma separated list of strings. Matches string Regexp string MinValueLength int MaxValueLength int // Is this nullable Nullable bool Optional bool Required bool Default interface{} ForceNew bool }
Schema is used to describe the validation schema.
func (ValidateSchema) GetValue ¶ added in v1.5.2
func (vs ValidateSchema) GetValue(valueConstraint ValueConstraintType) interface{}
utility functions - Move to different package
func (ValidateSchema) Zero ¶ added in v1.5.2
func (vs ValidateSchema) Zero() interface{}
Zero returns the zero value for a type.
type ValidatorDict ¶ added in v1.5.2
type ValidatorDict struct { ResourceValidatorDictionary map[string]*ResourceValidator DataSourceValidatorDictionary map[string]*ResourceValidator }
type ValueConstraintType ¶ added in v1.5.2
type ValueConstraintType int
Type of constraints required for validation
const ( MinValue ValueConstraintType = iota MaxValue MinValueLength MaxValueLength AllowedValues MatchesValue )
func (ValueConstraintType) String ¶ added in v1.5.2
func (i ValueConstraintType) String() string
Use Stringer tool to generate this later.
Source Files ¶
- config.go
- config_functions.go
- data_source_ibm_account.go
- data_source_ibm_api_gateway.go
- data_source_ibm_app.go
- data_source_ibm_app_domain_private.go
- data_source_ibm_app_domain_shared.go
- data_source_ibm_app_route.go
- data_source_ibm_certificate_manager_certificate.go
- data_source_ibm_certificate_manager_certificates.go
- data_source_ibm_cis.go
- data_source_ibm_cis_dns_records.go
- data_source_ibm_cis_domain.go
- data_source_ibm_cis_edge_functions_actions.go
- data_source_ibm_cis_edge_functions_triggers.go
- data_source_ibm_cis_firewall.go
- data_source_ibm_cis_healthchecks.go
- data_source_ibm_cis_ip_addresses.go
- data_source_ibm_cis_rate_limit.go
- data_source_ibm_compute_bare_metal.go
- data_source_ibm_compute_image_template.go
- data_source_ibm_compute_placement_group.go
- data_source_ibm_compute_ssh_key.go
- data_source_ibm_compute_vm_instance.go
- data_source_ibm_container_addons.go
- data_source_ibm_container_alb.go
- data_source_ibm_container_alb_cert.go
- data_source_ibm_container_bind_service.go
- data_source_ibm_container_cluster.go
- data_source_ibm_container_cluster_config.go
- data_source_ibm_container_cluster_versions.go
- data_source_ibm_container_cluster_worker.go
- data_source_ibm_container_vpc_alb.go
- data_source_ibm_container_vpc_cluster.go
- data_source_ibm_container_vpc_cluster_worker.go
- data_source_ibm_container_vpc_worker_pool.go
- data_source_ibm_container_worker_pool.go
- data_source_ibm_cos_bucket.go
- data_source_ibm_database.go
- data_source_ibm_dl_gateway.go
- data_source_ibm_dl_gateways.go
- data_source_ibm_dl_locations.go
- data_source_ibm_dl_offering_speeds.go
- data_source_ibm_dl_port.go
- data_source_ibm_dl_ports.go
- data_source_ibm_dl_routers.go
- data_source_ibm_dns_domain.go
- data_source_ibm_dns_domain_registration.go
- data_source_ibm_dns_secondary.go
- data_source_ibm_event_streams_topic.go
- data_source_ibm_function_action.go
- data_source_ibm_function_namespace.go
- data_source_ibm_function_package.go
- data_source_ibm_function_rule.go
- data_source_ibm_function_trigger.go
- data_source_ibm_iam_access_group.go
- data_source_ibm_iam_auth_token.go
- data_source_ibm_iam_role_actions.go
- data_source_ibm_iam_roles.go
- data_source_ibm_iam_service_id.go
- data_source_ibm_iam_service_policy.go
- data_source_ibm_iam_user_policy.go
- data_source_ibm_iam_user_profile.go
- data_source_ibm_iam_users.go
- data_source_ibm_is_floating_ip.go
- data_source_ibm_is_flow_logs.go
- data_source_ibm_is_image.go
- data_source_ibm_is_images.go
- data_source_ibm_is_instance.go
- data_source_ibm_is_instance_group.go
- data_source_ibm_is_instance_group_manager.go
- data_source_ibm_is_instance_group_manager_policies.go
- data_source_ibm_is_instance_group_manager_policy.go
- data_source_ibm_is_instance_group_managers.go
- data_source_ibm_is_instance_profile.go
- data_source_ibm_is_instance_profiles.go
- data_source_ibm_is_instance_templates.go
- data_source_ibm_is_instances.go
- data_source_ibm_is_lb.go
- data_source_ibm_is_lb_profiles.go
- data_source_ibm_is_lbs.go
- data_source_ibm_is_public_gateway.go
- data_source_ibm_is_region.go
- data_source_ibm_is_security_group.go
- data_source_ibm_is_ssh_key.go
- data_source_ibm_is_subnet.go
- data_source_ibm_is_subnets.go
- data_source_ibm_is_volume.go
- data_source_ibm_is_vpc.go
- data_source_ibm_is_zone.go
- data_source_ibm_is_zones.go
- data_source_ibm_kms_key.go
- data_source_ibm_kms_keys.go
- data_source_ibm_kp_key.go
- data_source_ibm_lbaas.go
- data_source_ibm_network_vlan.go
- data_source_ibm_org.go
- data_source_ibm_org_quota.go
- data_source_ibm_pi_cloud_instance.go
- data_source_ibm_pi_image.go
- data_source_ibm_pi_images.go
- data_source_ibm_pi_instance.go
- data_source_ibm_pi_instance_ip.go
- data_source_ibm_pi_key.go
- data_source_ibm_pi_network.go
- data_source_ibm_pi_network_port.go
- data_source_ibm_pi_public_network.go
- data_source_ibm_pi_snapshot.go
- data_source_ibm_pi_snapshots.go
- data_source_ibm_pi_tenant.go
- data_source_ibm_pi_volume.go
- data_source_ibm_pi_volumes.go
- data_source_ibm_private_dns_permitted_network.go
- data_source_ibm_private_dns_resource_records.go
- data_source_ibm_private_dns_zones.go
- data_source_ibm_resource_group.go
- data_source_ibm_resource_instance.go
- data_source_ibm_resource_key.go
- data_source_ibm_resource_quota.go
- data_source_ibm_schematics_output.go
- data_source_ibm_schematics_state.go
- data_source_ibm_schematics_workspace.go
- data_source_ibm_security_group.go
- data_source_ibm_service_instance.go
- data_source_ibm_service_key.go
- data_source_ibm_service_plan.go
- data_source_ibm_space.go
- data_source_ibm_tg_gateway.go
- data_source_ibm_tg_gateways.go
- data_source_ibm_tg_location.go
- data_source_ibm_tg_locations.go
- diff_supress_funcs.go
- flatten.go
- map.go
- provider.go
- qualified_name.go
- resource_ibm_api_gateway_endpoint.go
- resource_ibm_api_gateway_endpoint_subscription.go
- resource_ibm_app.go
- resource_ibm_app_domain_private.go
- resource_ibm_app_domain_shared.go
- resource_ibm_app_route.go
- resource_ibm_cdn.go
- resource_ibm_certificate_manager_import.go
- resource_ibm_certificate_manager_order.go
- resource_ibm_cis.go
- resource_ibm_cis_dns_record.go
- resource_ibm_cis_domain.go
- resource_ibm_cis_domain_settings.go
- resource_ibm_cis_edge_functions_action.go
- resource_ibm_cis_edge_functions_trigger.go
- resource_ibm_cis_firewall.go
- resource_ibm_cis_global_load_balancer.go
- resource_ibm_cis_healthcheck.go
- resource_ibm_cis_origin_pool.go
- resource_ibm_cis_rate_limit.go
- resource_ibm_compute_autoscale_group.go
- resource_ibm_compute_autoscale_policy.go
- resource_ibm_compute_bare_metal.go
- resource_ibm_compute_dedicated_host.go
- resource_ibm_compute_monitor.go
- resource_ibm_compute_placement_group.go
- resource_ibm_compute_provisioning_hook.go
- resource_ibm_compute_ssh_key.go
- resource_ibm_compute_ssl_certificate.go
- resource_ibm_compute_user.go
- resource_ibm_compute_vm_instance.go
- resource_ibm_container_addons.go
- resource_ibm_container_alb.go
- resource_ibm_container_alb_cert.go
- resource_ibm_container_bind_service.go
- resource_ibm_container_cluster.go
- resource_ibm_container_cluster_feature.go
- resource_ibm_container_vpc_alb.go
- resource_ibm_container_vpc_cluster.go
- resource_ibm_container_vpc_worker_pool.go
- resource_ibm_container_worker_pool.go
- resource_ibm_container_worker_pool_zone_attachment.go
- resource_ibm_cos_bucket.go
- resource_ibm_database.go
- resource_ibm_dl_gateway.go
- resource_ibm_dl_gateway_virtual_connection.go
- resource_ibm_dns_domain.go
- resource_ibm_dns_domain_registration_nameservers.go
- resource_ibm_dns_record.go
- resource_ibm_dns_reverse_record.go
- resource_ibm_dns_secondary.go
- resource_ibm_event_streams_topic.go
- resource_ibm_firewall.go
- resource_ibm_firewall_policy.go
- resource_ibm_firewall_shared.go
- resource_ibm_function_action.go
- resource_ibm_function_namespace.go
- resource_ibm_function_package.go
- resource_ibm_function_rule.go
- resource_ibm_function_trigger.go
- resource_ibm_iam_access_group.go
- resource_ibm_iam_access_group_dynamic_rule.go
- resource_ibm_iam_access_group_members.go
- resource_ibm_iam_access_group_policy.go
- resource_ibm_iam_authorization_policy.go
- resource_ibm_iam_authorization_policy_detach.go
- resource_ibm_iam_custom_role.go
- resource_ibm_iam_service_id.go
- resource_ibm_iam_service_policy.go
- resource_ibm_iam_user_invite.go
- resource_ibm_iam_user_policy.go
- resource_ibm_iam_user_settings.go
- resource_ibm_ipsec_vpn.go
- resource_ibm_is_floating_ip.go
- resource_ibm_is_flow_log.go
- resource_ibm_is_ike_policy.go
- resource_ibm_is_image.go
- resource_ibm_is_instance.go
- resource_ibm_is_instance_group.go
- resource_ibm_is_instance_group_manager.go
- resource_ibm_is_instance_group_manager_policy.go
- resource_ibm_is_instance_template.go
- resource_ibm_is_ipsec_policy.go
- resource_ibm_is_lb.go
- resource_ibm_is_lb_listener.go
- resource_ibm_is_lb_listener_policy.go
- resource_ibm_is_lb_listener_policy_rule.go
- resource_ibm_is_lb_pool.go
- resource_ibm_is_lb_pool_member.go
- resource_ibm_is_networkacls.go
- resource_ibm_is_public_gateway.go
- resource_ibm_is_security_group.go
- resource_ibm_is_security_group_network_interface_attachment.go
- resource_ibm_is_security_group_rule.go
- resource_ibm_is_ssh_key.go
- resource_ibm_is_subnet.go
- resource_ibm_is_volume.go
- resource_ibm_is_vpc.go
- resource_ibm_is_vpc_address_prefix.go
- resource_ibm_is_vpc_route.go
- resource_ibm_is_vpn_gateway.go
- resource_ibm_is_vpn_gateway_connections.go
- resource_ibm_kms_key.go
- resource_ibm_kp_key.go
- resource_ibm_lb.go
- resource_ibm_lb_service.go
- resource_ibm_lb_service_group.go
- resource_ibm_lb_vpx.go
- resource_ibm_lb_vpx_ha.go
- resource_ibm_lb_vpx_service.go
- resource_ibm_lb_vpx_vip.go
- resource_ibm_lbaas.go
- resource_ibm_lbaas_health_monitor.go
- resource_ibm_lbaas_server_instance_attachment.go
- resource_ibm_multi_vlan_firewall.go
- resource_ibm_network_gateway.go
- resource_ibm_network_gateway_vlan_attachment.go
- resource_ibm_network_interface_sg_attachment.go
- resource_ibm_network_public_ip.go
- resource_ibm_network_vlan.go
- resource_ibm_network_vlan_spanning.go
- resource_ibm_object_storage_account.go
- resource_ibm_org.go
- resource_ibm_pi_capture.go
- resource_ibm_pi_image.go
- resource_ibm_pi_instance.go
- resource_ibm_pi_key.go
- resource_ibm_pi_network.go
- resource_ibm_pi_network_port.go
- resource_ibm_pi_network_port_attach.go
- resource_ibm_pi_operations.go
- resource_ibm_pi_snapshot.go
- resource_ibm_pi_volume.go
- resource_ibm_pi_volume_attach.go
- resource_ibm_private_dns_permitted_network.go
- resource_ibm_private_dns_resource_record.go
- resource_ibm_private_dns_zones.go
- resource_ibm_resource_group.go
- resource_ibm_resource_instance.go
- resource_ibm_resource_key.go
- resource_ibm_securitygroup.go
- resource_ibm_securitygroup_rule.go
- resource_ibm_service_instance.go
- resource_ibm_service_key.go
- resource_ibm_space.go
- resource_ibm_ssl_certificate.go
- resource_ibm_storage_block.go
- resource_ibm_storage_evault.go
- resource_ibm_storage_file.go
- resource_ibm_subnet.go
- resource_ibm_tg_gateway.go
- resource_ibm_tg_gateway_connection.go
- structures.go
- validators.go