slug

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package slug is used to create Terraform slugs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slug

type Slug struct {
	SlugPath string
	SHASum   []byte
	Size     int64
}

Slug is a tar.gz file containing a Terraform configuration

func NewSlug

func NewSlug(srcDir string, slugPath string) (*Slug, error)

NewSlug creates a slug from the srcDir and outputs it to the slugPath

func (*Slug) Open

func (s *Slug) Open() (io.ReadCloser, error)

Open opens the slug file for reading

Jump to

Keyboard shortcuts

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