cloud

package
v2.7.3-rc.60+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

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]interface{}
	SkippedFields() map[string]bool
	GenerateDefaultTemplate() *models_cloudbreak.TemplateV2Request
	GenerateDefaultNetwork(networkParameters map[string]interface{}, mode NetworkMode) *models_cloudbreak.NetworkV2Request
	GenerateNetworkRequestFromNetworkResponse(response *models_cloudbreak.NetworkResponse) *models_cloudbreak.NetworkV2Request
	GenerateDefaultSecurityGroup(node Node) *models_cloudbreak.SecurityGroupV2Request
}

func GetProvider

func GetProvider() CloudProvider

type CloudStorageType

type CloudStorageType int
const (
	WASB CloudStorageType = iota
	ADLS
	S3
	GCS
	NO_CLOUD_STORAGE
)

type CloudType

type CloudType string

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) GenerateNetworkRequestFromNetworkResponse

func (p *DefaultCloudProvider) GenerateNetworkRequestFromNetworkResponse(response *models_cloudbreak.NetworkResponse) *models_cloudbreak.NetworkV2Request

func (*DefaultCloudProvider) GetCredentialParameters

func (p *DefaultCloudProvider) GetCredentialParameters(func(string) string, func(string) bool) (map[string]interface{}, error)

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
	SHARED_NETWORK
	NO_NETWORK
)

type Node

type Node struct {
	Name      string
	GroupType string
	Count     int32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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