Documentation
¶
Index ¶
- type Driver
- func (p *Driver) CheckIfInstanceActive(id string) (bool, error)
- func (p *Driver) CheckIfInstanceExists(id string) (bool, error)
- func (p *Driver) CreateInstance(id string, platform string) error
- func (p *Driver) DestroyInstances(ids []string) error
- func (p *Driver) ExecInstance(id string, script string) error
- func (p *Driver) GetArtifact(id string, artifact storage.Artifact) (out []byte, err error)
- func (p *Driver) PutArtifact(id string, artifact storage.Artifact, input []byte) error
- func (p *Driver) StopInstance(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func New ¶
Establish connection to LXD server.
FIXME: Currently just using the Unix socket because that's the easiest. Will get more advanced later once further requirements and use cases are clear.
func (*Driver) CheckIfInstanceActive ¶
func (*Driver) CheckIfInstanceExists ¶
func (*Driver) DestroyInstances ¶
func (*Driver) GetArtifact ¶
Get Artifact from Act instance.
func (*Driver) PutArtifact ¶
Put (upload) Artifact into Act instance.
func (*Driver) StopInstance ¶
Click to show internal directories.
Click to hide internal directories.