Documentation ¶
Index ¶
- type AppStateFile
- func (a *AppStateFile) GetByteContent() []byte
- func (a *AppStateFile) GetStringContent() string
- func (a *AppStateFile) Output() error
- func (a *AppStateFile) Print()
- func (a *AppStateFile) UpdateEnvironmentStateGraph(env string, keys map[string]string) (bool, error)
- func (a *AppStateFile) UpdateFile() error
- type AppStateGraph
- type LodestarFile
- type LodestarRepository
- type ManagementFile
- func (m *ManagementFile) GetByteContent() []byte
- func (m *ManagementFile) GetKeyValues(keys []string) (map[string]string, error)
- func (m *ManagementFile) GetStringContent() string
- func (m *ManagementFile) Output() error
- func (m *ManagementFile) Print()
- func (m *ManagementFile) UpdateFileContents(keysMap map[string]string) (bool, error)
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 (*AppStateFile) UpdateFile ¶
func (a *AppStateFile) UpdateFile() error
type AppStateGraph ¶
type AppStateGraph struct { Updated string `yaml:"updated"` EnvironmentStateGraph []environment.EnvironmentState `yaml:"environmentStateGraph"` }
type LodestarFile ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.