Documentation ¶
Index ¶
- Constants
- Variables
- type DNSProvider
- type GlesysKeyProvider
- func (p *GlesysKeyProvider) CreateKey(ctx context.Context, cfg *cfg.Project, key *cfg.SSHKey) (*cfg.Project, error)
- func (p *GlesysKeyProvider) DeleteKey(ctx context.Context, cfg *cfg.Project) (*cfg.Project, error)
- func (p *GlesysKeyProvider) Name() string
- func (p *GlesysKeyProvider) SyncKeys(ctx context.Context, cfg *cfg.Project) (*cfg.Project, error)
- type GlesysNodeProvider
- func (p *GlesysNodeProvider) CreateNode(ctx context.Context, cfg *ertia.Project, node *ertia.Node) (*ertia.Project, error)
- func (p *GlesysNodeProvider) DeleteNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)
- func (p *GlesysNodeProvider) Name() string
- func (p *GlesysNodeProvider) ReplaceNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)
- func (p *GlesysNodeProvider) RestartNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)
- func (p *GlesysNodeProvider) StartNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)
- func (p *GlesysNodeProvider) StopNode(ctx context.Context, cfg *ertia.Project, nodeId string) (*ertia.Project, error)
- func (p *GlesysNodeProvider) SyncDependencies(ctx context.Context, cfg *ertia.Project) (*ertia.Project, error)
- func (p *GlesysNodeProvider) SyncNodes(ctx context.Context, cfg *ertia.Project) (*ertia.Project, error)
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 (*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) Name ¶
func (p *GlesysKeyProvider) Name() string
type GlesysNodeProvider ¶
type GlesysNodeProvider struct {
Client *glesys.Client
}
func NewNodeProvider ¶
func NewNodeProvider(cfg *ertia.Project) *GlesysNodeProvider
func (*GlesysNodeProvider) CreateNode ¶
func (*GlesysNodeProvider) DeleteNode ¶
func (*GlesysNodeProvider) Name ¶
func (p *GlesysNodeProvider) Name() string
func (*GlesysNodeProvider) ReplaceNode ¶
func (*GlesysNodeProvider) RestartNode ¶
func (*GlesysNodeProvider) SyncDependencies ¶
Click to show internal directories.
Click to hide internal directories.