service

package
v0.0.0-...-4402e7d Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsiblePlaybookServicer

type AnsiblePlaybookServicer interface {
	GenerateID() string
	Run(ctx context.Context, task *entity.Task) error
}

AnsiblePlaybookServicer represents the service to run an Ansible playbook

type GetProjectServicer

type GetProjectServicer interface {
	GetProject(id string) (*entity.Project, error)
	GetProjectsList() ([]*entity.Project, error)
}

GetProjectServicer represents the service to get a task

type GetTaskServicer

type GetTaskServicer interface {
	GetTask(id string) (*entity.Task, error)
}

GetTaskServicer represents the service to get a task

type WorkspaceBuilder

type WorkspaceBuilder interface {
	WithTask(task *entity.Task) WorkspaceBuilder
	Build() Workspacer
}

WorkspaceBuilder interface to build a workspace

type Workspacer

type Workspacer interface {
	Prepare() error
	Cleanup() error
	GetWorkingDir() (string, error)
}

Workspacer interface to manage a workspace

Jump to

Keyboard shortcuts

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