state

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeighlinerNs Heighliner namespace
	HeighlinerNs = "heighliner"
)

Variables

This section is empty.

Functions

func GetCache added in v0.2.0

func GetCache() string

GetCache returns the path to the cache directory.

func GetHln added in v0.2.1

func GetHln() string

GetHln returns the .hln dir.

func GetTemp added in v0.2.0

func GetTemp() string

GetTemp returns the path to the temp directory.

Types

type ConfigMapState added in v0.3.0

type ConfigMapState struct {
	ClientSet *kubernetes.Clientset
}

ConfigMapState state using k8s configmap as backend

func (*ConfigMapState) DeleteOutputAndTFProvider added in v0.3.6

func (c *ConfigMapState) DeleteOutputAndTFProvider(appName string) error

DeleteOutputAndTFProvider delete output and tf provider configMap

func (*ConfigMapState) ListApps added in v0.3.0

func (c *ConfigMapState) ListApps() ([]string, error)

ListApps list all heighliner applications

func (*ConfigMapState) LoadOutput added in v0.3.0

func (c *ConfigMapState) LoadOutput(appName string) (*app.Output, error)

LoadOutput load output from configmap

func (*ConfigMapState) LoadTFProvider added in v0.3.0

func (c *ConfigMapState) LoadTFProvider(appName string) (string, error)

LoadTFProvider Load tf provider from configmap

func (*ConfigMapState) SaveOutputAndTFProvider added in v0.3.0

func (c *ConfigMapState) SaveOutputAndTFProvider(appName string) error

SaveOutputAndTFProvider Save output and tf provider to configmap

type LocalFileState added in v0.3.0

type LocalFileState struct {
}

LocalFileState State using local file as backend

func (*LocalFileState) DeleteOutputAndTFProvider added in v0.3.6

func (l *LocalFileState) DeleteOutputAndTFProvider(appName string) error

DeleteOutputAndTFProvider delete state file

func (*LocalFileState) ListApps added in v0.3.0

func (l *LocalFileState) ListApps() ([]string, error)

ListApps only list app in current dir

func (*LocalFileState) LoadOutput added in v0.3.0

func (l *LocalFileState) LoadOutput(appName string) (*app.Output, error)

LoadOutput load output

func (*LocalFileState) LoadTFProvider added in v0.3.0

func (l *LocalFileState) LoadTFProvider(appName string) (string, error)

LoadTFProvider No need in Local File State

func (*LocalFileState) SaveOutputAndTFProvider added in v0.3.0

func (l *LocalFileState) SaveOutputAndTFProvider(appName string) error

SaveOutputAndTFProvider save output and tf provider

type State added in v0.3.0

type State interface {
	ListApps() ([]string, error)
	LoadOutput(appName string) (*app.Output, error)
	LoadTFProvider(appName string) (string, error)
	SaveOutputAndTFProvider(appName string) error
	DeleteOutputAndTFProvider(appName string) error
}

State Heighliner application state

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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