tfgcp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package tfgcp implements a Laforge Builder module for generating terraform configurations that target Google Compute Platform.

Index

Constants

View Source
const (
	ID          = `tfgcp`
	Name        = `Terraform GCP Builder`
	Description = `generates terraform configurations that isolate teams into VPCs on Google Compute Platform`
	Author      = `Alex Levinson <github.com/gen0cide>`
	Version     = `0.0.2`
)

Definition of builder meta-data.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerraformGCPBuilder

type TerraformGCPBuilder struct {
	sync.RWMutex

	// Required for the Builder interface
	Base *core.Laforge

	// A place to store the templates
	Library *templates.Library
}

TerraformGCPBuilder implements a laforge builder that packages an environment into a terraform configuration targeting GCP with each team isolated into their own VPC.

func New

func New() *TerraformGCPBuilder

New creates an empty TerraformGCPBuilder

func (*TerraformGCPBuilder) Author

func (t *TerraformGCPBuilder) Author() string

Author implements the Builder interface (author's name and contact info)

func (*TerraformGCPBuilder) CheckRequirements

func (t *TerraformGCPBuilder) CheckRequirements() error

CheckRequirements implements the Builder interface

func (*TerraformGCPBuilder) Description

func (t *TerraformGCPBuilder) Description() string

Description implements the Builder interface (returns the builder's description)

func (*TerraformGCPBuilder) GenerateScripts

func (t *TerraformGCPBuilder) GenerateScripts() error

GenerateScripts implements the Builder interface

func (*TerraformGCPBuilder) Get

func (t *TerraformGCPBuilder) Get(key string) string

Get retrieves an element from the embedded KV store

func (*TerraformGCPBuilder) ID

func (t *TerraformGCPBuilder) ID() string

ID implements the Builder interface (returns the ID of the builder - usually the go package name)

func (*TerraformGCPBuilder) Name

func (t *TerraformGCPBuilder) Name() string

Name implements the Builder interface (returns the name of the builder - usually titleized version of the type)

func (*TerraformGCPBuilder) PrepareAssets

func (t *TerraformGCPBuilder) PrepareAssets() error

PrepareAssets implements the Builder interface

func (*TerraformGCPBuilder) Render

func (t *TerraformGCPBuilder) Render() error

Render implements the Builder interface

func (*TerraformGCPBuilder) Set

func (t *TerraformGCPBuilder) Set(key string, val interface{})

Set assigns an element to the embedded KV store

func (*TerraformGCPBuilder) SetLaforge

func (t *TerraformGCPBuilder) SetLaforge(base *core.Laforge) error

SetLaforge implements the Builder interface

func (*TerraformGCPBuilder) StageDependencies

func (t *TerraformGCPBuilder) StageDependencies() error

StageDependencies implements the Builder interface

func (*TerraformGCPBuilder) Validations

func (t *TerraformGCPBuilder) Validations() validations.Validations

Validations implements the Builder interface (builder checks)

func (*TerraformGCPBuilder) Version

func (t *TerraformGCPBuilder) Version() string

Version implements the Builder interface (builder version)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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