Documentation ¶
Index ¶
- func NewClient() *ec2.EC2
- func NewRouter() *route53.Route53
- type Provider
- func (p *Provider) CreateDNSRecord(ctx context.Context, subDomain string, IP string) (*common.CreateDNSRecordResponse, error)
- func (p *Provider) CreateHostedZone(ctx context.Context, server *common.CreateServerResponse) error
- func (p *Provider) CreateIPAddress(ctx context.Context, instanceID string) (*ec2.AllocateAddressOutput, *ec2.AssociateAddressOutput, error)
- func (p *Provider) CreateK8s(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateK8sResponse, error)
- func (p *Provider) CreateServer(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateServerResponse, error)
- func (p *Provider) CreateServerGroup(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateServerGroupResponse, error)
- func (p *Provider) CreateStaticIP(ctx context.Context, name string, req *common.StaticIPRequest) (*common.CreateStaticIPResponse, error)
- func (p *Provider) RemoveDNSRecord(ctx context.Context, subDomain *common.CreateDNSRecordResponse) error
- func (p *Provider) RemoveHostedZone(ctx context.Context) error
- func (p *Provider) RemoveIPAddress(ctx context.Context) error
- func (p *Provider) RemoveK8s(ctx context.Context, k8s *common.CreateK8sResponse) error
- func (p *Provider) RemoveServer(ctx context.Context, server *common.CreateServerResponse) error
- func (p *Provider) RemoveServerGroup(ctx context.Context, group *common.CreateServerGroupResponse) error
- func (p *Provider) RemoveStaticIP(ctx context.Context, staticIP *common.CreateStaticIPResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements common.CloudProvider
func NewProvider ¶
NewProvider returns a new Provider instance
func (*Provider) CreateDNSRecord ¶
func (p *Provider) CreateDNSRecord(ctx context.Context, subDomain string, IP string) (*common.CreateDNSRecordResponse, error)
CreateDNSRecord creates a DNS A Record on AWS
func (*Provider) CreateHostedZone ¶
CreateHostedZone creates a Route53 HostedZone
func (*Provider) CreateIPAddress ¶
func (p *Provider) CreateIPAddress(ctx context.Context, instanceID string) (*ec2.AllocateAddressOutput, *ec2.AssociateAddressOutput, error)
CreateIPAddress allocates and associates an Elastic IP to a server instance
func (*Provider) CreateK8s ¶
func (p *Provider) CreateK8s(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateK8sResponse, error)
CreateK8s unimplemented for AWS
func (*Provider) CreateServer ¶
func (p *Provider) CreateServer(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateServerResponse, error)
CreateServer creates an EC2 instance on AWS
func (*Provider) CreateServerGroup ¶
func (p *Provider) CreateServerGroup(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateServerGroupResponse, error)
CreateServerGroup unimplemented for AWS
func (*Provider) CreateStaticIP ¶
func (p *Provider) CreateStaticIP(ctx context.Context, name string, req *common.StaticIPRequest) (*common.CreateStaticIPResponse, error)
CreateStaticIP unimplemented for AWS
func (*Provider) RemoveDNSRecord ¶
func (p *Provider) RemoveDNSRecord(ctx context.Context, subDomain *common.CreateDNSRecordResponse) error
RemoveDNSRecord removes a DNS A Record from AWS
func (*Provider) RemoveHostedZone ¶
RemoveHostedZone removes an empty Route53 HostedZone
func (*Provider) RemoveIPAddress ¶
RemoveIPAddress dissociates and releases an Elastic IP
func (*Provider) RemoveServer ¶
RemoveServer removes an EC2 instance on AWS
func (*Provider) RemoveServerGroup ¶
func (p *Provider) RemoveServerGroup(ctx context.Context, group *common.CreateServerGroupResponse) error
RemoveServerGroup unimplemented for AWS
func (*Provider) RemoveStaticIP ¶
func (p *Provider) RemoveStaticIP(ctx context.Context, staticIP *common.CreateStaticIPResponse) error
RemoveStaticIP unimplemented for AWS