glesys

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ErtiaUserAgent = "ERTIA: Frictionless Kubernetes"
View Source
const (
	IPv4 = "A"
)

Variables

View Source
var DefaultGlesysNode = glesys.CreateServerParams{
	Bandwidth:    100,
	CampaignCode: "",
	CPU:          8,
	DataCenter:   "Falkenberg",
	Memory:       12288,
	Platform:     "KVM",
	Storage:      150,
	IPv4:         "any",
	IPv6:         "any",
	Template:     "debian-11",
}

Functions

This section is empty.

Types

type DNSProvider added in v0.0.4

type DNSProvider struct {
	Client *glesys.Client
}

func NewDNSProvider added in v0.0.4

func NewDNSProvider(cfg *ertia.Project) *DNSProvider

func (*DNSProvider) CreateRecord added in v0.0.4

func (p *DNSProvider) CreateRecord(ctx context.Context, cfg *ertia.Project) (*ertia.Project, error)

func (*DNSProvider) Name added in v0.0.4

func (p *DNSProvider) Name() string

type GlesysKeyProvider

type GlesysKeyProvider struct {
	Client *glesys.Client
}

func NewKeyProvider

func NewKeyProvider(cfg *cfg.Project) *GlesysKeyProvider

func (*GlesysKeyProvider) CreateKey

func (p *GlesysKeyProvider) CreateKey(ctx context.Context, cfg *cfg.Project, key *cfg.SSHKey) (*cfg.Project, error)

func (*GlesysKeyProvider) DeleteKey

func (p *GlesysKeyProvider) DeleteKey(ctx context.Context, cfg *cfg.Project) (*cfg.Project, error)

func (*GlesysKeyProvider) Name

func (p *GlesysKeyProvider) Name() string

func (*GlesysKeyProvider) SyncKeys

func (p *GlesysKeyProvider) SyncKeys(ctx context.Context, cfg *cfg.Project) (*cfg.Project, error)

type GlesysNodeProvider

type GlesysNodeProvider struct {
	Client *glesys.Client
}

func NewNodeProvider

func NewNodeProvider(cfg *ertia.Project) *GlesysNodeProvider

func (*GlesysNodeProvider) CreateNode

func (p *GlesysNodeProvider) CreateNode(ctx context.Context, cfg *ertia.Project, node *ertia.Node) (*ertia.Project, error)

func (*GlesysNodeProvider) DeleteNode

func (p *GlesysNodeProvider) DeleteNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)

func (*GlesysNodeProvider) Name

func (p *GlesysNodeProvider) Name() string

func (*GlesysNodeProvider) ReplaceNode

func (p *GlesysNodeProvider) ReplaceNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)

func (*GlesysNodeProvider) RestartNode

func (p *GlesysNodeProvider) RestartNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)

func (*GlesysNodeProvider) StartNode

func (p *GlesysNodeProvider) StartNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)

func (*GlesysNodeProvider) StopNode

func (p *GlesysNodeProvider) StopNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)

func (*GlesysNodeProvider) SyncDependencies

func (p *GlesysNodeProvider) SyncDependencies(ctx context.Context, cfg *ertia.Project) (*ertia.Project, error)

func (*GlesysNodeProvider) SyncNodes

func (p *GlesysNodeProvider) SyncNodes(ctx context.Context, cfg *ertia.Project) (*ertia.Project, error)

Jump to

Keyboard shortcuts

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