...
1 package libdevfile
2
3 import (
4 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
5 "github.com/devfile/library/v2/pkg/devfile/parser"
6 )
7
8
9 type containerComponent struct {
10 component v1alpha2.Component
11 devfileObj parser.DevfileObj
12 }
13
14 var _ component = (*containerComponent)(nil)
15
16 func newContainerComponent(devfileObj parser.DevfileObj, component v1alpha2.Component) *containerComponent {
17 return &containerComponent{
18 component: component,
19 devfileObj: devfileObj,
20 }
21 }
22
23 func (e *containerComponent) CheckValidity() error {
24 return nil
25 }
26
27 func (e *containerComponent) Apply(handler Handler, kind v1alpha2.CommandGroupKind) error {
28 return nil
29 }
30
View as plain text