Documentation
¶
Index ¶
- Constants
- Variables
- func CreateLogFile() (*os.File, error)
- func Details(appName string) (application.Application, error)
- func GetAccessToken() string
- func Recreate(appName string) error
- func Refresh(appName string) error
- func Register(app *application.Application) error
- func RemoveApplication(appName string) error
- func Setup() error
- func ShutDown() error
- func StoreAccessToken(token string) error
- func StoreLog(f *os.File, d *[]byte) error
- func Update(app *application.Application) error
- type AppList
- type AppStatus
- type LogsStreamSessions
Constants ¶
View Source
const MELTCD_ACCESS_TOKEN = "access_token.txt" //nolint
View Source
const MELTCD_APPLICATIONS_FILE = "applications.json" //nolint
View Source
const MELTCD_AUTH_FILE = "auth.json" //nolint
View Source
const MELTCD_DIR = ".meltcd" //nolint
View Source
const MELTCD_LOG_FILE = "general.log" //nolint
View Source
const MELTCD_REPOSITORY_FILE = "repositories.json" //nolint
Variables ¶
View Source
var Applications []*application.Application
Functions ¶
func CreateLogFile ¶
func Details ¶
func Details(appName string) (application.Application, error)
func GetAccessToken ¶
func GetAccessToken() string
func Register ¶
func Register(app *application.Application) error
func RemoveApplication ¶
func Setup ¶
func Setup() error
Setup will setup require settings to make use of MeltCD like setting up admin password in docker secret setting up docker volume for persistent storage
fill the Applications from the stored file
initialize a new docker client
func StoreAccessToken ¶
func Update ¶
func Update(app *application.Application) error
TODO: update atomic parts only specify things you need go update
Types ¶
type LogsStreamSessions ¶
LogsStreamSessions
var CurrentSession LogsStreamSessions
CurrentSession Value to be used by both API and CORE
func (*LogsStreamSessions) AddSession ¶
func (l *LogsStreamSessions) AddSession(s *chan []byte)
func (*LogsStreamSessions) RemoveSession ¶
func (l *LogsStreamSessions) RemoveSession(s *chan []byte)
Click to show internal directories.
Click to hide internal directories.