Documentation
¶
Index ¶
- Constants
- Variables
- type AppFile
- func (app *AppFile) BuildOAM(ns string, io cmdutil.IOStreams, tm template.Manager) ([]*v1alpha2.Component, *v1alpha2.ApplicationConfiguration, error)
- func (af *AppFile) GetServices() map[string]Service
- func (app *AppFile) RenderOAM(ns string, io cmdutil.IOStreams, tm template.Manager) ([]*v1alpha2.Component, *v1alpha2.ApplicationConfiguration, error)
- type Build
- type Docker
- type Push
- type Service
Constants ¶
View Source
const DefaultAppfilePath = "./vela.yml"
View Source
const DefaultWorkloadType = "webservice"
Variables ¶
View Source
var (
ErrImageNotDefined = errors.New("image not defined")
)
Functions ¶
This section is empty.
Types ¶
type AppFile ¶
type AppFile struct { Name string `json:"name"` Version string `json:"version"` CreateTime time.Time `json:"createTime,omitempty"` UpdateTime time.Time `json:"updateTime,omitempty"` Services map[string]Service `json:"services"` Secrets map[string]string `json:"secrets"` }
func LoadFromFile ¶
func NewAppFile ¶
func NewAppFile() *AppFile
func (*AppFile) BuildOAM ¶
func (app *AppFile) BuildOAM(ns string, io cmdutil.IOStreams, tm template.Manager) ( []*v1alpha2.Component, *v1alpha2.ApplicationConfiguration, 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) RenderService ¶
func (s Service) RenderService(tm template.Manager, name, ns, image string) ( *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.