module

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	//Clone the module, specifying the cache directory as a parameter
	Clone(string) error
	//Update the module, specifying the cache directory as a parameter
	Update(string) error
}

Module interface defining operations that can be performed on a module

type TerraformModule

type TerraformModule struct {
	Repo   string `yaml:"repo,omitempty"`
	Branch string `yaml:"branch,omitempty"`
	Tag    string `yaml:"tag,omitempty"`
	Path   string `yaml:"path,omitempty"`
}

TerraformModule is an implimentation of Module for Terraform Modules hosted in git repos

func (*TerraformModule) Clone

func (m *TerraformModule) Clone(cachePath string) error

Clone will clone the module and checkout the specified branch/tag

func (*TerraformModule) Update

func (m *TerraformModule) Update(cachePath string) error

Update will update the local cache with the latest changes for the module branch/tag

Jump to

Keyboard shortcuts

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