s3

package
v0.4.0-1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendS3

type BackendS3 struct {
	Bucket string `yaml:"bucket"`
	Region string `yaml:"region"`
	// contains filtered or unexported fields
}

BackendS3 - describe s3 backend for interface package.backend.

func (*BackendS3) GetBackendBytes

func (b *BackendS3) GetBackendBytes(infraName, moduleName string) ([]byte, error)

GetBackendBytes generate terraform backend config.

func (*BackendS3) GetBackendHCL

func (b *BackendS3) GetBackendHCL(infraName, moduleName string) (*hclwrite.File, error)

GetBackendHCL generate terraform backend config.

func (*BackendS3) GetRemoteStateHCL

func (b *BackendS3) GetRemoteStateHCL(infraName, moduleName string) ([]byte, error)

GetRemoteStateHCL generate terraform remote state for this backend.

func (*BackendS3) Name

func (b *BackendS3) Name() string

Name return name.

func (*BackendS3) Provider

func (b *BackendS3) Provider() string

Provider return name.

func (*BackendS3) State

func (b *BackendS3) State() map[string]interface{}

type Factory

type Factory struct{}

Factory factory for s3 backends.

func (*Factory) New

func (f *Factory) New(config []byte, name string) (project.Backend, error)

New creates the new s3 backend.

Jump to

Keyboard shortcuts

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