evecompute

package
v0.0.0-...-8cfc233 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package evecompute provides all the logic to bring a eve-ng lab to a cloud service.

This package only support Google cloud for now.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceFunctions

type ServiceFunctions interface {
	IsImageCreated(string, string) bool
	CreateImage(string, *compute.Image) error
	DeleteImage(string, string) error
	CreateInstance(string, string, *compute.Instance) error
	InsertFirewallRule(string, *compute.Firewall) error
	DeleteFirewallRules(string) error
	LookupExternalIP(string, string, string) (net.Addr, error)
	InstanceStatus(string, string, string) string
	DeleteInstance(string, string, string) error
	StopInstance(string, string, string) error
	StartInstance(string, string, string) error
}

ServiceFunctions defines the ServiceFunctions operation for cloud service.

func New

func New() (ServiceFunctions, error)

New handles the creation of a new cloud service api client. For now we only support google cloud.

Jump to

Keyboard shortcuts

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