Documentation ¶
Index ¶
- type Provider
- func (p *Provider) CreateDNSRecord(ctx context.Context, subDomain string, IP string) (*common.CreateDNSRecordResponse, 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) 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 ¶
This section is empty.
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 GCP
func (*Provider) CreateK8s ¶
func (p *Provider) CreateK8s(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateK8sResponse, error)
CreateK8s creates a new cluster on GCE
func (*Provider) CreateServer ¶
func (p *Provider) CreateServer(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateServerResponse, error)
CreateServer creates a droplet on GCP TODO reimplement waiting for IP using a ticker
func (*Provider) CreateServerGroup ¶
func (p *Provider) CreateServerGroup(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateServerGroupResponse, error)
CreateServerGroup unimplemented for GCE
func (*Provider) CreateStaticIP ¶
func (p *Provider) CreateStaticIP(ctx context.Context, name string, req *common.StaticIPRequest) (*common.CreateStaticIPResponse, error)
CreateStaticIP creates a static IP on GCE
func (*Provider) RemoveDNSRecord ¶
func (p *Provider) RemoveDNSRecord(ctx context.Context, subDomain *common.CreateDNSRecordResponse) error
RemoveDNSRecord removes a DNS A Record from GCP
func (*Provider) RemoveServer ¶
RemoveServer removes a droplet on GCP
func (*Provider) RemoveServerGroup ¶
func (p *Provider) RemoveServerGroup(ctx context.Context, group *common.CreateServerGroupResponse) error
RemoveServerGroup unimplemented for GCE
func (*Provider) RemoveStaticIP ¶
func (p *Provider) RemoveStaticIP(ctx context.Context, staticIP *common.CreateStaticIPResponse) error
RemoveStaticIP removes a global static IP on GCE
Click to show internal directories.
Click to hide internal directories.