Documentation
¶
Overview ¶
Package module is reponsible for registry modules
Index ¶
- func NewDeleter(app otf.Application) *deleter
- type PublishModuleVersionOptions
- type Publisher
- func (p *Publisher) PublishFromEvent(ctx context.Context, event cloud.VCSEvent) error
- func (p *Publisher) PublishModule(ctx context.Context, opts otf.PublishModuleOptions) (*otf.Module, error)
- func (p *Publisher) PublishVersion(ctx context.Context, opts PublishModuleVersionOptions) (*otf.Module, *otf.ModuleVersion, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleter ¶
func NewDeleter(app otf.Application) *deleter
Types ¶
type Publisher ¶
type Publisher struct {
*otf.ModuleVersionUploader
otf.HookService // for registering and unregistering connections to webhooks
}
Publisher publishes terraform modules.
func NewPublisher ¶
func NewPublisher(app otf.Application) *Publisher
func (*Publisher) PublishFromEvent ¶
PublishFromEvent publishes a module version in response to a vcs event.
func (*Publisher) PublishModule ¶
func (p *Publisher) PublishModule(ctx context.Context, opts otf.PublishModuleOptions) (*otf.Module, error)
PublishModule publishes a new module from a VCS repository, enumerating through its git tags and releasing a module version for each tag.
func (*Publisher) PublishVersion ¶
func (p *Publisher) PublishVersion(ctx context.Context, opts PublishModuleVersionOptions) (*otf.Module, *otf.ModuleVersion, error)
PublishVersion publishes a module version, retrieving its contents from a repository and uploading it to the module store.
Click to show internal directories.
Click to hide internal directories.