Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigMapDriverName = "ConfigMap"
ConfigMapDriverName is local storage driver name
View Source
const LocalDriverName = "Local"
LocalDriverName is local storage driver name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
Application is an implementation level object for Appfile, all vela commands will access AppFile from Appliction struct here.
func NewApplication ¶
func NewApplication(f *appfile.AppFile, tm template.Manager) *Application
NewApplication will create application object
func (*Application) Validate ¶
func (app *Application) Validate() error
Validate will validate whether an Appfile is valid.
type ConfigMap ¶
type ConfigMap struct {
Driver
}
ConfigMap Storage
func NewConfigMapStorage ¶
func NewConfigMapStorage() *ConfigMap
NewConfigMapStorage get storage client of ConfigMap type
func (*ConfigMap) Get ¶
func (c *ConfigMap) Get(envName, appName string) (*Application, error)
Get applications from configmap storage
type Driver ¶
type Driver interface {
// List applications
List(envName string) ([]*Application, error)
// Save application
Save(app *Application, envName string) error
// Delete application
Delete(envName, appName string) error
// Get application
Get(envName, appName string) (*Application, error)
// Name of storage driver
Name() string
}
Driver is mutli implement interface
type Local ¶
type Local struct {
Driver
}
Local Storage
func NewLocalStorage ¶
func NewLocalStorage() *Local
NewLocalStorage get storage client of Local type
func (*Local) Get ¶
func (l *Local) Get(envName, appName string) (*Application, error)
Get application from local storage
Click to show internal directories.
Click to hide internal directories.