storage

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(prefix Prefix, layer *configv1alpha1.TerraformLayer) string

func NotFound

func NotFound(err error) bool

Types

type Prefix

type Prefix string
const (
	LastPlannedArtifactBin  Prefix = "plannedArtifactBin"
	RunMessage              Prefix = "runMessage"
	LastPlannedArtifactJson Prefix = "plannedArtifactJson"
	LastPlanResult          Prefix = "planResult"
	LastPrettyPlan          Prefix = "prettyPlan"
)

type Storage

type Storage interface {
	Get(key string) ([]byte, error)
	Set(key string, value []byte, ttl int) error
	Delete(key string) error
}

type StorageError

type StorageError struct {
	Err error
	Nil bool
}

func (*StorageError) Error

func (s *StorageError) Error() string

func (*StorageError) NotFound

func (c *StorageError) NotFound() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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