Documentation ¶
Index ¶
- Constants
- Variables
- func SetProviderType(ct CloudType)
- type CloudProvider
- type CloudType
- type DefaultCloudProvider
- func (p *DefaultCloudProvider) GenerateDefaultNetwork(networkParameters map[string]interface{}, mode NetworkMode) *models_cloudbreak.NetworkV2Request
- func (p *DefaultCloudProvider) GenerateDefaultSecurityGroup(node Node) *models_cloudbreak.SecurityGroupV2Request
- func (p *DefaultCloudProvider) GenerateDefaultTemplate() *models_cloudbreak.TemplateV2Request
- func (p *DefaultCloudProvider) GetCredentialParameters(func(string) string, func(string) bool) (map[string]interface{}, error)
- func (p *DefaultCloudProvider) SkippedFields() map[string]bool
- type NetworkMode
- type Node
Constants ¶
View Source
const ( AWS = CloudType("AWS") AZURE = CloudType("AZURE") GCP = CloudType("GCP") OPENSTACK = CloudType("OPENSTACK") YARN = CloudType("YARN") )
View Source
const ( REGION_FIELD = "region" AVAILABILITY_ZONE_FIELD = "availabilityZone" )
Variables ¶
View Source
var CloudProviders = make(map[CloudType]CloudProvider)
Functions ¶
func SetProviderType ¶
func SetProviderType(ct CloudType)
Types ¶
type CloudProvider ¶
type CloudProvider interface { GetName() *string GetCredentialParameters(func(string) string, func(string) bool) (map[string]interface{}, error) GetNetworkParamatersTemplate(NetworkMode) map[string]interface{} GetInstanceGroupParamatersTemplate(node Node) map[string]interface{} GetParamatersTemplate() map[string]string SkippedFields() map[string]bool GenerateDefaultTemplate() *models_cloudbreak.TemplateV2Request GenerateDefaultNetwork(networkParameters map[string]interface{}, mode NetworkMode) *models_cloudbreak.NetworkV2Request GenerateDefaultSecurityGroup(node Node) *models_cloudbreak.SecurityGroupV2Request }
func GetProvider ¶
func GetProvider() CloudProvider
type DefaultCloudProvider ¶
type DefaultCloudProvider struct { }
func (*DefaultCloudProvider) GenerateDefaultNetwork ¶
func (p *DefaultCloudProvider) GenerateDefaultNetwork(networkParameters map[string]interface{}, mode NetworkMode) *models_cloudbreak.NetworkV2Request
func (*DefaultCloudProvider) GenerateDefaultSecurityGroup ¶
func (p *DefaultCloudProvider) GenerateDefaultSecurityGroup(node Node) *models_cloudbreak.SecurityGroupV2Request
func (*DefaultCloudProvider) GenerateDefaultTemplate ¶
func (p *DefaultCloudProvider) GenerateDefaultTemplate() *models_cloudbreak.TemplateV2Request
func (*DefaultCloudProvider) GetCredentialParameters ¶
func (*DefaultCloudProvider) SkippedFields ¶
func (p *DefaultCloudProvider) SkippedFields() map[string]bool
type NetworkMode ¶
type NetworkMode int
const ( NEW_NETWORK_NEW_SUBNET NetworkMode = iota EXISTING_NETWORK_NEW_SUBNET EXISTING_NETWORK_EXISTING_SUBNET LEGACY_NETWORK NO_NETWORK )
Click to show internal directories.
Click to hide internal directories.