Documentation ¶
Index ¶
- Constants
- type Compute
- type ComputeRequest
- type Request
- func (r *Request) Create(ctx *pulumi.Context, computeRequested ComputeRequest) (*Compute, error)
- func (r *Request) CustomIngressRules() []securityGroup.IngressRules
- func (r *Request) CustomSecurityGroups(ctx *pulumi.Context) ([]*ec2.SecurityGroup, error)
- func (r *Request) GetAMI(ctx *pulumi.Context) (*ec2.LookupAmiResult, error)
- func (r *Request) GetDedicatedHost(ctx *pulumi.Context) (*ec2.DedicatedHost, error)
- func (r *Request) GetName() string
- func (r *Request) GetPostScript() (string, error)
Constants ¶
View Source
const ( OutputHost string = "Host" OutputUsername string = "Username" OutputPrivateKey string = "PrivateKey" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compute ¶
type Compute struct { Specs *supportMatrix.SupportedHost Name string Username string Instance *ec2.Instance InstanceIP pulumi.StringOutput AWSKeyPair *ec2.KeyPair SG []*ec2.SecurityGroup // contains value if key is created within this module PrivateKey *tls.PrivateKey }
Related resources created within the compute asset
func (*Compute) OutputHost ¶
func (*Compute) OutputPrivateKey ¶
func (*Compute) OutputUsername ¶
type ComputeRequest ¶
type ComputeRequest interface { GetAMI(ctx *pulumi.Context) (*ec2.LookupAmiResult, error) GetDedicatedHost(ctx *pulumi.Context) (*ec2.DedicatedHost, error) // In case a host has any specific ingress rule, this ingress rule will take effect on a SG // with egress to all in case of specific SG it is required to define them within CustomSecurityGroups CustomIngressRules() []securityGroup.IngressRules CustomSecurityGroups(ctx *pulumi.Context) ([]*ec2.SecurityGroup, error) GetPostScript() (string, error) }
Methods to be implemented by any specific type of compute supported these methods implement specifics on each different type
type Request ¶
type Request struct { ProjecName string Specs *supportMatrix.SupportedHost Public bool BastionSG *ec2.SecurityGroup KeyPair *ec2.KeyPair VPC *ec2.Vpc AvailabilityZones []string Subnets []*ec2.Subnet SpotPrice string }
Composable resources and information provided to create a compute asset
func (*Request) CustomIngressRules ¶
func (r *Request) CustomIngressRules() []securityGroup.IngressRules
func (*Request) CustomSecurityGroups ¶
func (*Request) GetDedicatedHost ¶
func (*Request) GetPostScript ¶
Click to show internal directories.
Click to hide internal directories.