server

package
v0.0.0-...-deba36d Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager = schema.ResourceManager{
	Name:              "servers",
	ResourcePrototype: &Server{},
	GroupPrototype:    &ServerGroup{},
	Provision: func(group interface{}, resource interface{}, l schema.Logger) error {
		return nil
	},
	FindUnused: func(shouldExist map[interface{}][]string, decommisionRoot *commandtree.Command, l schema.Logger) ([]string, error) {
		return []string{}, nil
	},
}

Manager is the main entry point for this resource type

Functions

This section is empty.

Types

type Server

type Server struct {
	Name          string
	PublicIP      schema.Template `required:"true" defaultdescription:"The public ip to connect to the server with"`
	SSHPrivateKey schema.Template `required:"true" defaultdescription:"The private key used to authenticate against to the server"`
	SSHPublicKey  schema.Template `required:"true" defaultdescription:"The public key used to authenticate "`
	// contains filtered or unexported fields
}

func (*Server) OpenConnection

func (s *Server) OpenConnection() (schema.ServerConnection, error)

type ServerGroup

type ServerGroup struct {
}

func (*ServerGroup) Validate

func (g *ServerGroup) Validate() error

Jump to

Keyboard shortcuts

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