module

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package module is reponsible for registry modules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleter

func NewDeleter(app otf.Application) *deleter

Types

type PublishModuleVersionOptions

type PublishModuleVersionOptions struct {
	ModuleID   string
	Version    string
	Ref        string
	Identifier string
	ProviderID string
}

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

func (p *Publisher) PublishFromEvent(ctx context.Context, event cloud.VCSEvent) error

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

PublishVersion publishes a module version, retrieving its contents from a repository and uploading it to the module store.

Jump to

Keyboard shortcuts

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