remote

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppStateFile

type AppStateFile struct {
	Path                  string
	Name                  string
	Updated               string
	EnvironmentStateGraph []environment.EnvironmentState
	ByteContent           []byte
	StringContent         string
}

LodestarFile

func NewAppStateFile

func NewAppStateFile(repository *LodestarRepository, path string, name string) (*AppStateFile, error)

func (*AppStateFile) GetByteContent

func (a *AppStateFile) GetByteContent() []byte

func (*AppStateFile) GetStringContent

func (a *AppStateFile) GetStringContent() string

func (*AppStateFile) Output

func (a *AppStateFile) Output() error

func (*AppStateFile) Print

func (a *AppStateFile) Print()

func (*AppStateFile) UpdateEnvironmentStateGraph

func (a *AppStateFile) UpdateEnvironmentStateGraph(env string, keys map[string]string) (bool, error)

func (*AppStateFile) UpdateFile

func (a *AppStateFile) UpdateFile() error

type AppStateGraph

type AppStateGraph struct {
	Updated               string                         `yaml:"updated"`
	EnvironmentStateGraph []environment.EnvironmentState `yaml:"environmentStateGraph"`
}

type LodestarFile

type LodestarFile interface {
	Print()
	Output() error
	GetByteContent() []byte
	GetStringContent() string
}

type LodestarRepository

type LodestarRepository struct {
	Url         string
	Credentials auth.GitCredentials
	FileSystem  billy.Filesystem
	Storage     *memory.Storage
	Repository  *git.Repository
	Worktree    *git.Worktree
}

func NewLodestarRepository

func NewLodestarRepository(url string, credentials auth.GitCredentials) (*LodestarRepository, error)

func (*LodestarRepository) CommitFiles

func (r *LodestarRepository) CommitFiles(commitMessage string, updatedFiles ...LodestarFile) error

func (*LodestarRepository) Push

func (r *LodestarRepository) Push() error

type ManagementFile

type ManagementFile struct {
	Name          string
	Path          string
	ByteContent   []byte
	StringContent string
}

func NewManagementFile

func NewManagementFile(env *environment.Environment, repository *LodestarRepository) (*ManagementFile, error)

func (*ManagementFile) GetByteContent

func (m *ManagementFile) GetByteContent() []byte

func (*ManagementFile) GetKeyValues

func (m *ManagementFile) GetKeyValues(keys []string) (map[string]string, error)

func (*ManagementFile) GetStringContent

func (m *ManagementFile) GetStringContent() string

func (*ManagementFile) Output

func (m *ManagementFile) Output() error

func (*ManagementFile) Print

func (m *ManagementFile) Print()

func (*ManagementFile) UpdateFileContents

func (m *ManagementFile) UpdateFileContents(keysMap map[string]string) (bool, error)

Jump to

Keyboard shortcuts

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