Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultCredentialsFile() string
- func DefaultProfile() string
- func NewCloud(client awsClient.Interface, infraID, region string, opts ...CloudOption) api.Cloud
- func NewCloudFromConfig(cfg *aws.Config, infraID, region string, opts ...CloudOption) api.Cloud
- func NewCloudFromSettings(credentialsFile, profile, infraID, region string, opts ...CloudOption) (api.Cloud, error)
- func NewOcpGatewayDeployer(cloud api.Cloud, msDeployer ocp.MachineSetDeployer, instanceType string) (api.GatewayDeployer, error)
- type CloudOption
Constants ¶
View Source
const ( ControlPlaneSecurityGroupIDKey = "controlPlaneSecurityGroupID" WorkerSecurityGroupIDKey = "workerSecurityGroupID" PublicSubnetListKey = "PublicSubnetList" VPCIDKey = "VPCID" )
Variables ¶
View Source
var PreferredInstances = []string{"c5d.large", "m5n.large"}
Functions ¶
func DefaultCredentialsFile ¶ added in v0.12.0
func DefaultCredentialsFile() string
DefaultCredentialsFile returns the default credentials file name.
func DefaultProfile ¶ added in v0.12.0
func DefaultProfile() string
DefaultProfile returns the default profile name.
func NewCloud ¶
NewCloud creates a new api.Cloud instance which can prepare AWS for Submariner to be deployed on it.
func NewCloudFromConfig ¶ added in v0.12.0
NewCloudFromConfig creates a new api.Cloud instance based on an AWS configuration which can prepare AWS for Submariner to be deployed on it.
func NewCloudFromSettings ¶ added in v0.12.0
func NewCloudFromSettings(credentialsFile, profile, infraID, region string, opts ...CloudOption) (api.Cloud, error)
NewCloudFromSettings creates a new api.Cloud instance using the given credentials file and profile which can prepare AWS for Submariner to be deployed on it.
func NewOcpGatewayDeployer ¶
func NewOcpGatewayDeployer(cloud api.Cloud, msDeployer ocp.MachineSetDeployer, instanceType string) (api.GatewayDeployer, error)
NewOcpGatewayDeployer returns a GatewayDeployer capable deploying gateways using OCP. If the supplied cloud is not an awsCloud, an error is returned.
Types ¶
type CloudOption ¶ added in v0.17.3
type CloudOption func(*awsCloud)
func WithControlPlaneSecurityGroup ¶ added in v0.17.3
func WithControlPlaneSecurityGroup(id string) CloudOption
func WithPublicSubnetList ¶ added in v0.17.3
func WithPublicSubnetList(id []string) CloudOption
func WithVPCName ¶ added in v0.17.3
func WithVPCName(name string) CloudOption
func WithWorkerSecurityGroup ¶ added in v0.17.3
func WithWorkerSecurityGroup(id string) CloudOption
Source Files ¶
Click to show internal directories.
Click to hide internal directories.