Documentation ¶
Index ¶
- func ByPath(i, j *Module) int
- type Module
- type Service
- func (s *Service) CreateTask(mod *Module, opts task.CreateOptions) (*task.Task, error)
- func (s *Service) Format(moduleID resource.ID) (*task.Task, error)
- func (s *Service) Get(id resource.ID) (*Module, error)
- func (s *Service) GetByPath(path string) (*Module, error)
- func (s *Service) Init(moduleID resource.ID) (*task.Task, error)
- func (s *Service) List() []*Module
- func (s *Service) Reload() (added []string, removed []string, err error)
- func (s *Service) SetCurrent(moduleID, workspaceID resource.ID) error
- func (s *Service) Validate(moduleID resource.ID) (*task.Task, error)
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Module ¶
type Module struct { resource.Common // Pug working directory Workdir internal.Workdir // Path relative to pug working directory Path string // The module's current workspace. CurrentWorkspaceID *resource.ID }
Module is a terraform root module.
func New ¶
New constructs a module. Workdir is the pug working directory, and path is the module path relative to the working directory.
type Service ¶
func NewService ¶
func NewService(opts ServiceOptions) *Service
func (*Service) CreateTask ¶
TODO: move this logic into task.Create
Click to show internal directories.
Click to hide internal directories.