Documentation
¶
Index ¶
- Constants
- Variables
- func FormatDefaultHealthScopeName(appName string) string
- type AppFile
- func (app *AppFile) BuildOAM(ns string, io cmdutil.IOStreams, tm template.Manager, slience bool) ([]*v1alpha2.Component, *v1alpha2.ApplicationConfiguration, []oam.Object, error)
- func (af *AppFile) GetServices() map[string]Service
- func (app *AppFile) RenderOAM(ns string, io cmdutil.IOStreams, tm template.Manager, slience bool) ([]*v1alpha2.Component, *v1alpha2.ApplicationConfiguration, []oam.Object, error)
- type Build
- type Docker
- type Push
- type Service
- func (s Service) GetBuild() *Build
- func (s Service) GetConfig() map[string]interface{}
- func (s Service) GetType() string
- func (s Service) GetUserConfigName() string
- func (s Service) RenderService(tm template.Manager, name, ns string, cg configGetter) (*v1alpha2.ApplicationConfigurationComponent, *v1alpha2.Component, error)
Constants ¶
View Source
const DefaultAppfilePath = "./vela.yaml"
View Source
const DefaultWorkloadType = "webservice"
Variables ¶
View Source
var (
ErrImageNotDefined = errors.New("image not defined")
)
Functions ¶
func FormatDefaultHealthScopeName ¶ added in v0.0.9
Types ¶
type AppFile ¶
type AppFile struct { Name string `json:"name"` CreateTime time.Time `json:"createTime,omitempty"` UpdateTime time.Time `json:"updateTime,omitempty"` Services map[string]Service `json:"services"` Secrets map[string]string `json:"secrets,omitempty"` // contains filtered or unexported fields }
func LoadFromFile ¶
func NewAppFile ¶
func NewAppFile() *AppFile
func (*AppFile) BuildOAM ¶
func (app *AppFile) BuildOAM(ns string, io cmdutil.IOStreams, tm template.Manager, slience bool) ( []*v1alpha2.Component, *v1alpha2.ApplicationConfiguration, []oam.Object, error)
BuildOAM renders Appfile into AppConfig, Components. It also builds images for services if defined.
func (*AppFile) GetServices ¶
type Service ¶
type Service map[string]interface{}
func (Service) GetUserConfigName ¶ added in v0.0.9
func (Service) RenderService ¶
func (s Service) RenderService(tm template.Manager, name, ns string, cg configGetter) (*v1alpha2.ApplicationConfigurationComponent, *v1alpha2.Component, error)
RenderService render all capabilities of a service to CUE values of a Component. It outputs a Component which will be marshaled as standalone Component and also returned AppConfig Component section.
Click to show internal directories.
Click to hide internal directories.