Documentation ¶
Index ¶
- Variables
- func AppendStatusDeploymentID(resource tkoutil.Resource, deploymentId string)
- func GetSite(package_ tkoutil.Package, siteName string) (tkoutil.Resource, bool)
- func GetSiteID(preparationContext *preparation.Context, name string) (string, bool)
- func GetSiteIDs(preparationContext *preparation.Context, name string) ([]string, bool)
- func GetSpecProvisionIfNotFound(spec *ard.Node, resource tkoutil.Resource) bool
- func GetStatusSiteID(resource tkoutil.Resource) (string, bool)
- func GetTemplateID(preparationContext *preparation.Context, name string) (string, bool)
- func PreparePlacement(context contextpkg.Context, preparationContext *preparation.Context) (bool, tkoutil.Package, error)
- func PrepareSite(context contextpkg.Context, preparationContext *preparation.Context) (bool, tkoutil.Package, error)
- func PrepareTOSCA(context contextpkg.Context, preparationContext *preparation.Context) (bool, util.Package, error)
- func SetStatusSiteID(resource tkoutil.Resource, siteId string)
- type Deployment
- type TOSCAProperty
- type TOSCAResource
Constants ¶
This section is empty.
Variables ¶
View Source
var PlacementGVK = tkoutil.NewGVK("topology.nephio.org", "v1alpha1", "Placement")
View Source
var SiteGVK = tkoutil.NewGVK("topology.nephio.org", "v1alpha1", "Site")
View Source
var SitesGVK = tkoutil.NewGVK("topology.nephio.org", "v1alpha1", "Sites")
View Source
var TOSCAGVK = util.NewGVK("topology.nephio.org", "v1alpha1", "TOSCA")
View Source
var TemplateGVK = tkoutil.NewGVK("topology.nephio.org", "v1alpha1", "Template")
Functions ¶
func GetSiteID ¶
func GetSiteID(preparationContext *preparation.Context, name string) (string, bool)
TODO: cache result
func GetSiteIDs ¶
func GetSiteIDs(preparationContext *preparation.Context, name string) ([]string, bool)
TODO: cache result
func GetTemplateID ¶
func GetTemplateID(preparationContext *preparation.Context, name string) (string, bool)
TODO: cache result
func PreparePlacement ¶
func PreparePlacement(context contextpkg.Context, preparationContext *preparation.Context) (bool, tkoutil.Package, error)
(preparation.PrepareFunc signature)
func PrepareSite ¶
func PrepareSite(context contextpkg.Context, preparationContext *preparation.Context) (bool, tkoutil.Package, error)
(preparation.PrepareFunc signature)
func PrepareTOSCA ¶
func PrepareTOSCA(context contextpkg.Context, preparationContext *preparation.Context) (bool, util.Package, error)
(preparation.PrepareFunc signature)
func SetStatusSiteID ¶
Types ¶
type Deployment ¶
type TOSCAProperty ¶
type TOSCAResource ¶
type TOSCAResource struct { ID string Name string TemplateName string SiteName string Properties map[string]*TOSCAProperty MergePackage util.Package }
func NewTOSCAResource ¶
func NewTOSCAResource(vertex *clout.Vertex) *TOSCAResource
func (*TOSCAResource) FillPropertyValues ¶
func (self *TOSCAResource) FillPropertyValues(clout *clout.Clout)
func (*TOSCAResource) NewToscaProperty ¶
func (self *TOSCAResource) NewToscaProperty(name string, value ard.Value)
func (*TOSCAResource) ToPackage ¶
func (self *TOSCAResource) ToPackage() util.Package
Click to show internal directories.
Click to hide internal directories.