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
Click to show internal directories.
Click to hide internal directories.